下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 制造业设备维护保养标准与操作方案
- 大数据技术与数据挖掘操作手册
- 职场新人工作效率提升手册
- 项目资金使用规范及安全责任承诺书4篇
- 2026年初中数学与劳动教育的融合教学设计
- 2026年风电场风机智能化改造与预测性维护升级
- 2026年医疗设备仓库货架摆放标准
- 2026年处方药与非处方药管理培训
- 2026年老年辅助器具使用培训课程
- 2026年国际化岗位外语能力与跨文化适应
- 后勤教师面试题及答案大全
- 【语文】北京市朝阳区实验小学小学一年级下册期末试题
- 《金属材料及热处理(第三版)》课件-模块三 非合金钢
- 肺结节科普知识课件
- 教学信息员培训会
- 会议活动摄影全流程管理
- 通信光纤光缆生产线建设项目可行性研究报告
- 2025年吉林省委党校在职研究生招生考试(公共管理综合)历年参考题库含答案详解(5卷)
- 定点定价管理办法
- 晋江网格员管理办法
- 2025年江苏省苏州市中考历史试卷(含原卷+答案+解析)
评论
0/150
提交评论