第一步:交换机恢复出厂设置
switch#set default
switch#write
switch#reload
第二步:给交换机设置IP地址即管理IP。
switch#config
switch(Config)#interface vlan 1
switch(Config-If-Vlan1)#ip address 192.168.1.2 255.255.255.0
switch(Config-If-Vlan1)#no shutdown
switch(Config-If-Vlan1)#exit
switch(Config)#exit
第三步:创建vlan100和vlan200。
switch(Config)#
switch(Config)#vlan 100
switch(Config-Vlan100)#exit
switch(Config)#vlan 200
switch(Config-Vlan200)#exit
switch(Config)#
验证配置:
switch#show vlan
VLAN Name Type Media Ports
---- ------------ ---------- --------- ---------------------------------------- 1 default Static ENET Ethernet0/0/1 Ethernet0/0/2 Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/10 Ethernet0/0/11 Ethernet0/0/12 Ethernet0/0/13 Ethernet0/0/14 Ethernet0/0/15 Ethernet0/0/16 Ethernet0/0/17 Ethernet0/0/18 Ethernet0/0/19 Ethernet0/0/20 Ethernet0/0/21 Ethernet0/0/22 Ethernet0/0/23 Ethernet0/0/24
100 VLAN0100 Static ENET !已经创建了vlan100,vlan100中没有端口; 200 VLAN0200 Static ENET !已经创建了vlan200,vlan200中没有端口;
第四步:给vlan100和vlan200添加端口。
switch(Config)#vlan 100 !进入vlan 100
switch(Config-Vlan100)#switchport interface ethernet 0/0/1-8
!给vlan100加入端口1-8
Set the port Ethernet0/0/1 access vlan 100 successfully
Set the port Ethernet0/0/2 access vlan 100 successfully
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库计算机网络课程设计报告-校园网网络构建方案设计和实现[1](4)在线全文阅读。
相关推荐: