欢迎来到三一文库! | 帮助中心 三一文库31doc.com 一个上传文档投稿赚钱的网站
三一文库
全部分类
  • 研究报告>
  • 工作总结>
  • 合同范本>
  • 心得体会>
  • 工作报告>
  • 党团相关>
  • 幼儿/小学教育>
  • 高等教育>
  • 经济/贸易/财会>
  • 建筑/环境>
  • 金融/证券>
  • 医学/心理学>
  • ImageVerifierCode 换一换
    首页 三一文库 > 资源分类 > DOC文档下载  

    思科模拟器搭建教程.doc

    • 资源ID:10285865       资源大小:111KB        全文页数:16页
    • 资源格式: DOC        下载积分:4
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录   微博登录  
    二维码
    微信扫一扫登录
    下载资源需要4
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    思科模拟器搭建教程.doc

    Heres an example topology for Cisco IOU to help you get started:In this example, SF is an IOU instance running on host “solaris”. IOUlive is also running on this host, bridging SFs Ethernet0/0 interface to my physical network (and to the world).SJ1, SJ2, and SJ3 are IOU instances running on host “helium”.The Ethernet1/0 interface on SF is connected to Ethernet0/1 on SJ1 are connected, even though they are on separate physical hosts.The Ethernet0/0 interfaces on SJ1, SJ2, and SJ3 are connected, sharing a common network segment.Last, SJ2 and SJ3 are connected via their Serial1/0 interfaces.Hopefully, this should be good enough to demonstrate the various options for connecting IOU instances.The NETMAP fileWhen connecting IOU instances across physical hosts, the hosts should share a common NETMAP file. If it isnt possible to use NFS, youll need to duplicate the file on each host. Im not running NFS at home, so Ive simply copied the file over to both hosts.The IOU instance IDs are assigned as follows: SF : 100 SF : 199 (IOUlive) SJ1 : 151 SJ2 : 152 SJ3 : 153Heres what my NETMAP file looks like: 100:0solaris 199:0solaris100:1solaris 151:16helium151:0helium 152:0helium 153:0helium152:1helium 153:1heliumConnect SF to the real worldIll start by firing up the SF router on solaris:$ ./unix-js-m 100IOS On Unix - Cisco Systems confidential, internal use onlyPort 0 is connected to: 199:0solarisPort 16 is connected to: 151:16helium.output snipped.Next, Ill startup IOUlive so that SF is connected to my physical network:$ ./ioulive /dev/hme0 199Port 0 is connected to: 100:0solaris/dev/hme0 is the NIC on solaris that is connected to my network.Ill bring up the Ethernet0/0 interface on SF:SF# conf tEnter configuration commands, one per line. End with CNTL/Z.SF(config)# interface ethernet 0/0SF(config-if)# ip address 203.0.113.2 255.255.255.0SF(config-if)# no shutdownVerify I can ping my (physical) router:SF(config-if)# do ping 203.0.113.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 203.0.113.1, timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/33/40 msSo SF, an IOU instance, has connectivity with my physical router at home, a Cisco 1811. Just for good measure, lets add a default route and see if we can ping hosts on the Internet:SF(config-if)# exitSF(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1SF(config)# do ping 4.2.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 4.2.2.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 40/50/72 msLooks like were all set!Bring up SJ1Now lets bring up the SJ1 IOU instance on helium:$ ./i86bi_linux-ipbase-ms -e 1 -s 0 151*IOS On Unix - Cisco Systems confidential, internal use onlyUnder no circumstances is this software to be provided to anynon Cisco staff or customers. To do so is likely to resultin disciplinary action. Please refer to the IOU Usage policy atwwwin-iou.cisco.com for more information.*Port 0/0 is connected to: 152:0helium 153:0heliumPort 0/1 is connected to: 100:1solaris.output snipped.Connect SJ1 to SF Now that SJ1 is up, lets get it connected to the SF router:SF(config)# int e1/0SF(config-if)# ip addr 10.0.0.1 255.255.255.0SF(config-if)# no shutdownSJ1# conf tEnter configuration commands, one per line. End with CNTL/Z.SJ1(config)# int e0/1SJ1(config-if)# ip address 10.0.0.2 255.255.255.0SJ1(config-if)# no shutdownNote that SF is running on the physical host “solaris”, a Solaris 8/SPARC box, and SJ1 is running on the physical host “helium”, an Ubuntu 10.04/x86 box.Lets verify we have connectivity:SJ1(config-if)# do ping 10.0.0.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/28/40 msNow well bring up the Ethernet0/0 interface on SJ1 that shares a segment with SJ2 and SJ3:SJ1(config-if)# int e0/0SJ1(config-if)# ip addr 10.123.123.1 255.255.255.0SJ1(config-if)# no shutdownBring up SJ2Lets bring up the SJ2 instance:$ ./i86bi_linux-ipbase-ms -e 1 -s 1 152*IOS On Unix - Cisco Systems confidential, internal use onlyUnder no circumstances is this software to be provided to anynon Cisco staff or customers. To do so is likely to resultin disciplinary action. Please refer to the IOU Usage policy atwwwin-iou.cisco.com for more information.*Port 0/0 is connected to: 151:0helium 153:0heliumPort 1/0 is connected to: 153:1helium.output snipped.Lets configure the Ethernet0/0 and Serial1/0 interfaces:SJ2# conf tEnter configuration commands, one per line. End with CNTL/Z.SJ2(config)# interface ethernet 0/0SJ2(config-if)# ip address 10.123.123.2 255.255.255.0SJ2(config-if)# no shutdownSJ2(config-if)# interface serial 1/0SJ2(config-if)# ip address 10.10.23.2 255.255.255.0SJ2(config-if)# no shutdownVerify we can ping SJ1s Ethernet0/0 interface:SJ2(config-if)# do ping 10.123.123.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.123.123.1, timeout is 2 seconds.!Success rate is 80 percent (4/5), round-trip min/avg/max = 4/6/8 msBring up SJ3Now well bring up the SJ3 router:$ ./i86bi_linux-ipbase-ms -e 1 -s 1 153*IOS On Unix - Cisco Systems confidential, internal use onlyUnder no circumstances is this software to be provided to anynon Cisco staff or customers. To do so is likely to resultin disciplinary action. Please refer to the IOU Usage policy atwwwin-iou.cisco.com for more information.*Port 0/0 is connected to: 151:0helium 152:0heliumPort 1/0 is connected to: 152:1helium.output snipped.Configure Ethernet0/0 and Serial1/0:SJ3# conf tEnter configuration commands, one per line. End with CNTL/Z.SJ3(config)# interface ethernet 0/0SJ3(config-if)# ip address 10.123.123.3 255.255.255.0SJ3(config-if)# no shutdownSJ3(config-if)# interface serial 1/0SJ3(config-if)# ip address 10.10.23.3 255.255.255.0SJ3(config-if)# no shutdownVerify we can ping SJ1 and SJ2s Ethernet0/0 interfaces:SJ3(config-if)# do ping 10.123.123.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.123.123.1, timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 msSJ3(config-if)# do ping 10.123.123.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.123.123.2, timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 msVerify we can ping SJ2 over the Serial1/0 interface:SJ3(config-if)# do ping 10.10.23.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.23.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/12/12 msGreat, full connectivity so far! Lets enable OSPF on SF and SJ1:SF(config-if)# router ospf 42SF(config-router)# network 10.0.0.1 0.0.0.0 area 0SJ1(config-if)# router ospf 42SJ1(config-router)# network 10.0.0.2 0.0.0.0 area 0SJ1(config-router)# network 10.123.123.1 0.0.0.0 area 0Make sure the OSPF adjacency between SF and SJ1 came up:SF(config-router)# do sh ip ospf neighNeighbor ID Pri State Dead Time Address Interface10.123.123.1 1 FULL/BDR 00:00:36 10.0.0.2 Ethernet1/0Lets look at the routing table on SF:SF(config-router)# do sh ip route | begin GatewayGateway of last resort is 203.0.113.1 to network 0.0.0.0C 203.0.113.0/24 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 2 subnetsO 10.123.123.0 110/20 via 10.0.0.2, 00:00:50, Ethernet1/0C 10.0.0.0 is directly connected, Ethernet1/0S* 0.0.0.0/0 1/0 via 203.0.113.1Inject default route into OSPFSince SF has a route to the world, lets inject a default route there into OSPF:SF(config-router)# default-information originateMake sure it shows up on SJ1:SJ1(config-router)# do sh ip route | begin GatewayGateway of last resort is 10.0.0.1 to network 0.0.0.0O*E2 0.0.0.0/0 110/1 via 10.0.0.1, 00:00:44, Ethernet0/1 10.0.0.0/8 is variably subnetted, 4 subnets, 2 masksC 10.0.0.0/24 is directly connected, Ethernet0/1L 10.0.0.2/32 is directly connected, Ethernet0/1C 10.123.123.0/24 is directly connected, Ethernet0/0L 10.123.123.1/32 is directly connected, Ethernet0/0Configure default route on SJ2 and SJ3On SJ2 and SJ3, lets configure a default route towards SJ1:SJ2(config-if)# ip route 0.0.0.0 0.0.0.0 10.123.123.1SJ3(config-if)# ip route 0.0.0.0 0.0.0.0 10.123.123.1Make sure SF can talk to SJ2 and SJ3:SF(config-router)# do ping 10.123.123.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.123.123.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/44/60 msSF(config-router)# do ping 10.123.123.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.123.123.3, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/52/88 msConfigure NAT on SFNow that we have full connectivity, lets configure NAT on the SF router so that SJ1, SJ2, and SJ3 can talk to the outside world:SF(config-router)# interface ethernet 0/0SF(config-if)# ip nat outsideSF(config-if)# interface ethernet 1/0SF(config-if)# ip nat insideWell need an ACL matching the source addresses to match, of course:SF(config-if)# ip access-list standard NATSF(config-std-nacl)# permit 10.0.0.0 0.0.0.255SF(config-std-nacl)# permit 10.123.123.0 0.0.0.255SF(config-std-nacl)# permit 10.10.23.0 0.0.0.255Last, well use “ip nat ” to tell SF how to work its magic:SF(config-std-nacl)# ip nat inside source list NAT int e0/0 overloadVerify connectivityAt this point, all routers should have connectivity to the outside world. Lets verify from SJ2 and SJ3 by pinging a couple of well-known public DNS servers:SJ2(config)# do ping 4.2.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 4.2.2.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/55/128 msSJ3(config)# do ping 8.8.8.8Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 80/100/120 msLooks like everything is working properly.Verify Internet connectivityLast, just for good measure, lets connect to the web server this site runs on and issue a request:SJ3(config)# do telnet 206.125.175.18 80Trying 206.125.175.18, 80 . OpenHEAD / HTTP/1.0HTTP/1.0 200 OKDate: Sat, 22 Jan 2011 22:52:01 GMTServer: Apache/2.2.17 (FreeBSD) mod_ssl/2.2.17 OpenSSL/0.9.8nX-Pingback: http:/evilrouters.net/xmlrpc.phpLink: <http:/wp.me/nzh6> rel=shortlinkConnection: closeContent-Type: text/html; charset=UTF-8Connection to 206.125.175.18 closed by foreign hostSummaryThis post demonstrated a number of concepts that should be useful for those wanting to use IOU.First, we showed how the routers connect “physically”.Second, we showed how to construct a working NETMAP file to match our topology.Third, we started up our IOU instances and connect them across hosts and to the outside world.Fourth, we configured our routers (even configuring OSPF).Last, we showed how to verify we had connectivity with the outside world.I hope this post was helpful. I welcome your feedback in the comments section below!

    注意事项

    本文(思科模拟器搭建教程.doc)为本站会员(土8路)主动上传,三一文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    经营许可证编号:宁ICP备18001539号-1

    三一文库
    收起
    展开