利用单臂路由实现vlan间的通信.doc
文本预览下载声明
2011年3月13日星期日 我做的
前面配置有勿。
配置交换机1,2为trunk模式
sw1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
sw1(config)#int f0/11
sw1(config-if)#switchport mode trunk
sw2(config)#int f0/11
sw2(config-if)#switchport trunk encapsulation dot1q
sw2(config-if)#switchport mode trunk
sw2(config)#int f0/3
sw2(config-if)#switchport mode trunk
sw2(config-if)#switchport trunk encapsulation dot1q
配vtp
sw1(config)#vtp mode server
sw1(config)#vtp domain lzh
Changing VTP domain name from zhangle to lzh
sw1(config)#vtp password 123{配不上密码}
sw2#vlan database
sw2(vlan)#vtp client
sw2(vlan)#vtp domain lzh2
Changing VTP domain name from NULL to lzh2
sw2(vlan)#vtp passw
sw2(vlan)#vtp password 123456
Setting device VLAN database password to 123456.
sw1#vlan database (注:2950的交换机只能在database下加密)
sw1(vlan)#vtp password 123
Setting device VLAN datab
se password to 123.
sw1(vlan)#vtp pruning
Pruning switched ON
sw1(vlan)#vtp pruning ?
v2-mode Set the administrative domain to V2 mode.
cr
sw1(vlan)#vtp pruning v2-mode
Pruning already switched on.
V2 mode enabled.
sw1(vlan)#exit
(配vlan)(配完SW1在SW2上看不出同步?)
sw1#vlan database(早期的交换机要进入database中)
sw1(vlan)#vlan 10 name IT
APPLY completed.
Exiting....
(在SW1是的与PC1相连的接口上配接入模式并划入一个VLAN中)
sw1#conf t
sw1(config)#int f0/3
sw1(config-if)#switchport mode access
sw1(config-if)#switchport access vlan 10
sw1(config-if)#end
sw1#
05:31:30: %SYS-5-CONFIG_I: Configured from console by console
sw1#sh vlan bri
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/12
10 IT active Fa0/3
11 VLAN0011 active
12 VLAN0012 active
13 VLAN0013 active
显示全部