正在加载图片...
Interface Switchport Mode Access Native Protected VLAN lists Fa0/24 Enabled Trunk isabled All 注意:交换机的 Trunk接口默认情况下支持所有WLAN。 步骤4.在交换机 SwitchB上创建Vlan10,并将0/5端口划分到vlan10中。 SwitchB#configure terminal SwitchB(config)#vlan 10 SwitchB(config-vlan)#name sales SwitchB(config-vlan)#exit SwitchB(config)#interface fastetherneto/5 SwitchB( config-if)# switchport access vlan10验证测试:验证已在 SwitchB上创建了Ⅵlan 10,并将0/5端口已划分到Van10中。 SwitchB# show vlan id10 VLAN Name status Ports 10 sales active Fao 步骤5.把交换机 SwitchB与交换机 SwitchA相连的端口(假设为0/24端口)定义为 tag vlan 模式 SwitchB(config)#interface fastethernet0/24 SwitchB(config-i f)#switchport mode trunk 验证测试:验证 fastethemet0/24端口已被设置为 tag vlan模式。 SwitchB#show interfaces fastEthemet 0/24 SWitchport Interface Switchport Mode Access Native Protected vLAn lists Fa0/24 Enabled Trunk 1 Disabled All 步骤6.验证PCI与PC3能互相通信,但PC2与PC3不能互相通信。 C:>ping192.168.10.30!在Pcl的命令行方式下验证能Ping通PC3 Pinging 1 92. 1 68. 1 0. 30 with 32 bytes of data: Reply from 192. 10. 30: bytes=32 time <10ms TtL=128 Reply from 192. 168. 10. 30: bytes=32 time<10ms TTL=128 Reply from 192. 168 30: bytes=32 time< Reply from 192. 168. 10. 30: bytes=32 time<10ms TTL=128 Ping statistics for 1 92. 1 68. 1 0. 30 Packets: Sent=4, Received=4, Lost=0(0%loss) Approximate round trip times in milli-seconds: Minimum=Oms, MaximumFOms, Average=Oms C:>ping192.168.10.30在PC2的命令行方式下验证不能Ping通PC3 Pinging 1 92. 1 68. 10. 30 with 32 bytes of data Request timed out Request timed out注意:交换机的 Trunk 接口默认情况下支持所有 VLAN。 步骤 4. 在交换机 SwitchB 上创建 Vlan 10,并将 O/5 端口划分到 Vlan 10 中。 SwitchB#configure terminal SwitchB(config)#vlan 10 SwitchB(config-vlan)#name sales SwitchB(config-vlan)#exit SwitchB(config)#interface fastethernet0/5 SwitchB(config-if)#switchport access vlan 10 验证测试:验证已在 SwitchB 上创建了 Vlan lO,并将 0/5 端口已划分到 Vlan 10 中。 SwitchB#show vlan id 10 步骤 5. 把交换机 SwitchB 与交换机 SwitchA 相连的端口(假设为 O/24 端口)定义为 tag vlan 模式。 SwitchB(config)#interface fastethernet0/24 SwitchB(config—i f)#switchport mode trunk 验证测试:验证 fastethemet O/24 端口已被设置为 tag vlan 模式。 SwitchB#show interfaces fastEthemet O/24 SWitchport 步骤 6. 验证 PCI 与 PC3 能互相通信,但 PC2 与 PC3 不能互相通信。 C:\>ping 1 92.168.10.30 !在 Pcl 的命令行方式下验证能 Ping 通 PC3 Pinging 1 92.1 68.1 0.30 with 32 bytes of data: · Reply from 192.168.10.30:bytes=32 time<10ms TTL=128 Reply from 192.168.10.30:bytes=32 time<10ms TTL=128 Reply from 192.168.10.30:bytes=32 time<10ms TTL=128 Reply from 192.168.10.30:bytes=32 time<10ms TTL=128 Ping statistics for 1 92.1 68.1 0.30: Packets:Sent=4,Received=4,Lost=O(O%loss), Approximate round trip times in milli—seconds: Minimum=0ms,Maximum=0ms,Average=0ms C:\>ping 192.168.10.30 !在 PC2 的命令行方式下验证不能 Ping 通 PC3 Pinging 1 92.1 68.10.30 with 32 bytes of data: Request timed out. Request timed out. Request timed out.
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有