zsr-sw-01(vlan)#vtp client
zsr-sw-01(vlan)#exit
zsr-sw-1#configure terminal
zsr-sw-1(config)#int f0/1
zsr-sw-1(config-if)#switchport mode access
zsr-sw-1(config-if)#switchport access vlan 31
zsr-sw-1(config-if)#exit
zsr-sw-1(config)#int f0/2
。。。。。。
zsr-sw-1(config)#int f0/48
zsr-sw-1(config-if)#switchport mode access
zsr-sw-1(config-if)#switchport access vlan 31
zsr-sw-1(config-if)#exit
zsr-sw-01(config)#int g0/1
zsr-sw-01(config-if)#switchport mode trunk
zsr-sw-01(config-if)#switchport trunk encapsulation dot1q
zsr-sw-01(config-if)#switchport trunk allowed vlan all
zsr-sw-01 (config-if)#spantree cost 10
zsr-sw-01(config-if)#exit
zsr-sw-01(config)#int g0/2
zsr-sw-01(config-if)#switchport mode trunk
zsr-sw-01(config-if)#switchport trunk encapsulation dot1q
zsr-sw-01(config-if)#switchport trunk allowed vlan all
zsr-sw-01 (config-if)#spantree cost 20
zsr-sw-01(config-if)#exit
zsr-sw-01#write memory
3.3 局办公楼Catalyst 3548XL交换机配置方案
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#hostname yy-sw-01
yy-sw-01(config)#enable password test
yy-sw-01(config)#enable secret test
yy-sw-01(config)#banner motd % Welcome to the C3548 in the Yi Yang Fen Ju %
yy-sw-01(config)#line vty 0 4
yy-sw-01(config.line)#login
yy-sw-01(config.line)#password test
yy-sw-01(config.line)#exit
yy-sw-01(config)#int vlan 1
yy-sw-01(config-if)#ip address 10.234.180.26 255.255.255.0
yy-sw-01(config-if)#exit
yy-sw-01(config)#ip default.gateway 10.234.180.234
yy-sw-01(config)#end
yy-sw-01#vlan database
yy-sw-01(vlan)#vtp domain Corp_Net
yy-sw-01(vlan)#vtp client
yy-sw-01(vlan)#exit
yy-sw-1#configure terminal
yy-sw-1(config)#int f0/1
yy-sw-1(config-if)#switchport mode access
[责任编辑:editor]
最新相关文章
发表评论