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