使用gns3配置不同vlan间通讯_第1页
使用gns3配置不同vlan间通讯_第2页
使用gns3配置不同vlan间通讯_第3页
使用gns3配置不同vlan间通讯_第4页
使用gns3配置不同vlan间通讯_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、使用gns3配置不同vlan间通讯在gns3中用路由器模拟交换机,这里用r1,r2模拟交换机,r3,r4,r5模拟主机!详细配置过程:R1:r1#vlan database 创建vlan:r1(vlan)# vlan 10VLAN 10 added:Name: VLAN0010r1(vlan)# vlan 20VLAN 10 added:Name: VLAN0020r1(vlan)#exiAPPLY completed.Exiting.r1#r1#show vlan-switch 查看vlan的配置情况VLAN Name Status Ports- - - -1 default active

2、Fa0/2, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/1510 VLAN0010 active Fa0/120 VLAN0020 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp Br

3、dgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 1002 100310 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm -

4、0 0 r1# 将接口加入vlan,配置sviinterface FastEthernet0/0 switchport mode trunk no ip address! interface FastEthernet0/1 switchport access vlan 10 no ip addressinterface Vlan10 ip address 172.16.10.1 255.255.255.0!interface Vlan20 ip address 172.16.20.1 255.255.255.0r2:R2#vlan database 创建vlan:R2(vlan)# vlan

5、10VLAN 10 added:Name: VLAN0010R2(vlan)# vlan 20VLAN 10 added:Name: VLAN0020R2(vlan)#exiAPPLY completed.Exiting.R2# 将接口加入vlaninterface FastEthernet0/0 switchport access vlan 10 no ip address! interface FastEthernet0/1 switchport mode trunk no ip address! interface FastEthernet0/2 switchport access vl

6、an 20 no ip address! R3:no ip routing 关闭路由功能interface FastEthernet0/0 ip address 172.16.10.2 255.255.255.0ip default-gateway 172.16.10.1 配置默认网关R4:no ip routing 关闭路由功能interface FastEthernet0/0 ip address 172.16.10.3 255.255.255.0ip default-gateway 172.16.10.1 配置默认网关R5:no ip routing 关闭路由功能interface Fa

7、stEthernet0/0 ip address 172.16.20.2 255.255.255.0ip default-gateway 172.16.10.1 配置默认网关测试:r1#ping 172.16.10.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 msr1#ping 172.16.10.2Type

8、escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/17/56 msr1#ping 172.16.10.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.10.3, timeout is 2 seconds:!Success rate is 10

9、0 percent (5/5), round-trip min/avg/max = 4/16/48 msr1#ping 172.16.20.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.20.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msr1#ping 172.16.20.2Type escape sequence to abort.Sending 5, 10

10、0-byte ICMP Echos to 172.16.20.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/26/84 msr1#r3#ping 172.16.10.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.10.3, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg

11、/max = 8/19/52 msr3#ping 172.16.20.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.20.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/34/72 msr3#r3#sh ip int bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 172.16.10.2 YE

12、S manual up up r3#r4#sh ip int bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 172.16.10.3 YES manual up up r4#ping 172.16.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max

13、= 8/222/1008 msr4#ping 172.16.20.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.20.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/39/72 msr4#r5#sh ip int bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 172.16.20.2 YES manual up up r5#ping 172.16.10.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/ma

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论