当前位置:首页 > VLAN间路由单臂路由蒋亚龙DOC - 图文
VLAN间的路由—单臂路由
(3)查看交换机的VLAN和Trunk配置。
jiangyalong#show int f0/1 switchport //查看交换机的VLAN和trunk配置 Name: Fa0/1
Switchport: Enabled
Administrative Mode: dynamic auto Operational Mode: static access
Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: On Access Mode VLAN: 10 (VLAN0010) Trunking Native Mode VLAN: 1 (default) Voice VLAN: none
Administrative private-vlan host-association: none Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk private VLANs: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Appliance trust: none
(4)查看路由器的路由表。 Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
第13页 共17页
VLAN间的路由—单臂路由
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set
C 192.168.10.0/24 is directly connected, FastEthernet0/0.1 //子接口1的路由表
C 192.168.20.0/24 is directly connected, FastEthernet0/0.2 //子接口2的路由表
3.3测试及结果
(1)给PC0和PC1分配配置192.168.10.0/24 和 192.168.20.0/24网段内的IP地址,分别以192.168.10.1和192.168.20.1作为网关。如图3.3-1图3.3-2所示。
图3.3-1 PC0 IP配置
第14页 共17页
VLAN间的路由—单臂路由
图3.3-2 PC1 IP配置
(2)从PC0上ping所属的VLAN的网关,也是单臂路由上的子接口1的IP,如下图3.3-3所示VLAN 20的网关和PC1的结果,如下图3.3-3图7图8所示、说明配置单臂路由以后,网络已经全部实现互联互通。
图3.3-3 PC0 ping所属VLAN网关结果
(3)从PC0上pingVLAN 20的网关,也是单臂路由上的子接口2的IP,如下图3.3-4所示
图3.3-4 PC0 ping VLAN 20网关结果
(3)本实验的目的是通过单臂路由实现不同VLAN间的通信,PC0与PC1分别属于VLAN 10和VLAN 20,且是通过二层交换机进行的划分,现在通过三层设
第15页 共17页
VLAN间的路由—单臂路由
备单臂路由的子接口实现PC0与PC1的通信,通过PC0 ping PC1如下图3.3-4所示,证明实现了两者间的通信。
图8 PC0 ping PC1结果
第16页 共17页
VLAN间的路由—单臂路由
4结束语
通过这次的课程设计学习不仅加深了我对VLAN技术和实现VLAN间通信的单臂路由相关知识的了解,知道了VLAN能够实现网络的划分,确保局域网络的信息安全,并且VLAN的通信必须要经过三层为设备,带有路由功能的设备。也进一步对网络配置的基本原理有了一定的理解,能够较熟练地利用PacketTracer软件进行简单网络的基本配置。在老师及同学给予的帮助下学习解了到了很多网络配置方面的操作知识,例如网络配置的基本操作用语。
参考文献
[1] 蔡立军主编.计算机网络安全技术(第二版)中国水利水电出版社 [2] 王路群主编 计算机网络基础及应用电子工业出版社 [3] 石硕.计算机组网技术.北京:机械工业出版社,2003
[4] 毕学军.网络工程案例集锦.北京:北京希望电子出版社,2002
第17页 共17页
共分享92篇相关文档