2008三层交换与路由综合配置

上传人:飞****9 文档编号:150425573 上传时间:2020-11-06 格式:DOCX 页数:11 大小:263.01KB
返回 下载 相关 举报
2008三层交换与路由综合配置_第1页
第1页 / 共11页
2008三层交换与路由综合配置_第2页
第2页 / 共11页
2008三层交换与路由综合配置_第3页
第3页 / 共11页
2008三层交换与路由综合配置_第4页
第4页 / 共11页
2008三层交换与路由综合配置_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《2008三层交换与路由综合配置》由会员分享,可在线阅读,更多相关《2008三层交换与路由综合配置(11页珍藏版)》请在金锄头文库上搜索。

1、1作者:红盟过客 CCIE 理论 RHCEQQ :369136929msn :籍贯 :湖北宜昌。 有宜昌的朋友可以一起聊聊技术。杭州CCIE 联盟群 40576311时间:2008 年七月地点:浙江杭州软件:Visio 2007 CorelDRAW 12WPS 2005说明:一般情况下三台路由器。模拟器为原版的 Dynamips i顺序:R1 的 F0/0 接 R2 的 F0/0 ,R2 的 F1/1 接 R3 的 F1/1。在这里用 lookback 接口来模拟不同网段。路由器都为最小配置 cisco2501.IOS 是 12.0 以上。提醒一下:现在可以用 Dynamips 软件完全模拟所

2、有的实验。为了使实验更有价值,所写实验均在真实路由器上完成。已完成的实验手册2008 vpn 自学命令与配置手册 第一版2008 ospf 命令与配置手册实验笔记第二版2008 bgp 命令与配置手册实验笔记第二版2009 ISIS 命令与配置手册实验笔记 第一版2008 三层交换与路由综合配置案例RHCE5.0 实验手册华为 3600 交换机实验笔记BGP 设计与实现笔记JUNIPER NETSCREEN 防火墙基础实验杭州某中学断网解决办法模拟器配置,直接可以用。# Simple lab2autostart = Falselocalhost7200image = D:路由器 7200.bi

3、n# Full path to 7200 IOS image file. This isthe fully qualified path relative to the system running dynamips.ram = 128# Amount of Virtual RAM to allocate to each routerinstancenvram = 96# Size of NVRAMdisk0 = 64# Set size of PCMCIA ATA disk0disk1 = 64# Set size of PCMCIA ATA disk1cnfg = None# Config

4、uration file to import. This is the fully qualifiedpath relative to the system running dynamips.confreg = 0x2102# Set the configuration registerclock = 2# Clock divisor (should no longer been needed as ofdynamips 0.2.5 RC1)mmap = True# Set to false to use real memory rather than a disk filefor route

5、r vitural memory. Conserves RAM at the expense of performance. Defaults to Trueexec_area = 64# Set the exec area sizeROUTER r1model = 7200f2/0=NIO_gen_eth:DeviceNPF_CA4642AB-4C39-4131-9968-B653B0C61FD8#s1/0 = r2 s1/0f0/0 =r2 f0/13idlepc = 0x6072d4b4ROUTER r2model = 3640console = 2001image = D:路由器364

6、0.binslot0 = NM-16ESW注意这里是 16 个交换端口f0/14 = r3 f0/0f0/15 = r4 f0/0idlepc = 0x604ec6d8#f0/0 = r3 f0/0#s1/1 = r3 s1/13#idlepc = 0xffffffff80009f94ROUTER r3model = 7200#f2/0 = r4 f2/0#s1/0 = r4 s1/0idlepc = 0xffffffff8000ae84ROUTER r4model = 7200idlepc = 0x6072d2dc#f0/0 = r5 f0/0要求:分三个 vlan,vlan2,vlan3

7、vlan 100.Vlan100 与路器通信,vlan2 网关为 192.168.2.1 vlan3 为 192.168.3.1 vlan100 为 192.168.1.1,路由器 f0/0 接口为 192.168.1.1 。怎么配置才能让 pc1 pc2 能与外网通信。路由器配置与外网认为以配置好.配置命令r1(config)#int f0/0r1(config-if)#no shr1(config-if)#du fur1(config-if)#ip add 192.168.1.1 255.255.255.0r1(config-if)#no shr1(config-if)#endr1(con

8、fig)#int lo0r1(config-if)#ip add 1.1.1.1 255.255.255.0r1(config-if)#no shr1(config-if)#end配置 vlan,将端口分入 vlanr2#vlan dar2(vlan)#vlan 100 name 100VLAN 100 added:Name: 100r2(vlan)#vlan 2 name 2VLAN 2 modified:Name: 2r2(vlan)#vlan 3 name 3VLAN 3 added:4Name: 3r2(vlan)#exitAPPLY completed.Exiting.r2(conf

9、ig)#int vlan 100r2(config-if)#ip add 192.168.1.2 255.255.255.0r2(config-if)#no shr2(config-if)#int vlan 2r2(config-if)#no shr2(config-if)#ip add 192.168.2.1 255.255.255.0r2(config-if)#int vlan 3r2(config-if)#ip add 192.168.3.1 255.255.255.0 r2(config-if)#no shr2(config-if)#endr2(config)#int f0/13r2(

10、config-if)#no shr2(config-if)#du fur2(config-if)#sp 100r2(config-if)#swi mode accr2(config-if)#swi acc vlan 100r2(config-if)#endr2(config)#int f0/14r2(config-if)#no shr2(config-if)#du fur2(config-if)#sp 100r2(config-if)#swi mode accr2(config-if)#swi acc vlan 2r2(config-if)#int f0/15r2(config-if)#no

11、shr2(config-if)#du fur2(config-if)#sp 100r2(config-if)#swi mode accr2(config-if)#swi acc vlan 3r2(config-if)#endR3 模拟 pc,注意去路由功能,还有设置网关,地址。r3(config)#no ip routir3(config)#int f0/0r3(config-if)#no shr3(config-if)#du fu5r3(config-if)#ip add 192.168.2.2 255.255.255.0 r3(config-if)#endr3(config)#ip def

12、ault-g 192.168.2.1r4(config)#no ip routir4(config)#int f0/0r4(config-if)#no shr4(config-if)#du fur4(config-if)#ip add 192.168.3.2 255.255.255.0r4(config-if)#no shr4(config-if)#endr4(config)#ip default-g 192.168.3.1在这里设置完成,但是能 ping 通网关 ping 不通对 vlan2 的主机,原因没有打开交换机的路由功能。在高端交换机,路由功能是默认打开,但是 35 等是关闭。手工打

13、开。 r4#ping 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max =8/24/40 msr4#ping 192.168.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2seconds:.Success rate is 0 percent (0/5)r2(config)#ip routi路由功能打开,可以 ping 通 vlan 主机。r4#ping 192.168.2.2Type escape sequen

展开阅读全文
相关资源
相关搜索

当前位置:首页 > IT计算机/网络 > 计算机应用/办公自动化

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号