【测试目的】
1、拓扑配置:交换机为各个VLAN提供单独的物理链路实现VLAN成员的跨交换机通信
2、实验目的:了解跨交换机VLAN的内部主机之间通信机制
3、测试方法:PC3 ----ping---> PC4
【知识点】
无
【实验拓扑与配置】
交换机S1配置:
Switch(config)# Switch(config)#vlan 2 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#int fa0/1 Switch(config-if)#switchport access vlan 2 Switch(config-if)#int fa0/3 Switch(config-if)#switchport access vlan 2 Switch(config-if)#int fa0/2 Switch(config-if)#switchport access vlan 3 Switch(config-if)#int fa0/4 Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#exit Switch# Switch#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 2 VLAN0002 active Fa0/1, Fa0/3 3 VLAN0003 active Fa0/2, Fa0/4 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 0 0 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0
交换机S2配置:
Switch#conf t Switch(config)#vlan 2 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#int fa0/3 Switch(config-if)#switchport access vlan 2 Switch(config-if)#int fa0/4 Switch(config-if)#switchport access vlan 3 Switch(config-if)#int fa0/1 Switch(config-if)#switchport access vlan 2 Switch(config-if)#int fa0/2 Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#exit Switch#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 2 VLAN0002 active Fa0/1, Fa0/3 3 VLAN0003 active Fa0/2, Fa0/4 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 0 0 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm -
【过程跟踪】
剩余过程可参考“Packet Tracer 学网络通信1-3”。
【结果显示】