版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、思科CCNP交流群:69721386Heres 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 r
2、unning 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/
3、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
4、 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 15
5、1: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
6、 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
7、line. End with CNTL/Z.SF(config)# interface ethernet 0/0SF(config-if)# ip address SF(config-if)# no shutdownVerify I can ping my (physical) router:SF(config-if)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seco
8、nds:.!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
9、.0.0 SF(config)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , 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 heliu
10、m:$ ./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- for more i
11、nformation.*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 SF(config-if)# no shutdownSJ1# conf tEnter
12、configuration commands, one per line. End with CNTL/Z.SJ1(config)# int e0/1SJ1(config-if)# ip address SJ1(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
13、box.Lets verify we have connectivity:SJ1(config-if)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , 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
14、 segment with SJ2 and SJ3:SJ1(config-if)# int e0/0SJ1(config-if)# ip addr SJ1(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
15、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- 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
16、 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 SJ2(config-if)# no shutdownSJ2(config-if)# interface serial 1/0SJ2(config-if)# ip address 25
17、SJ2(config-if)# no shutdownVerify we can ping SJ1s Ethernet0/0 interface:SJ2(config-if)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds.!Success rate is 80 percent (4/5), round-trip min/avg/max = 4/6/8 msBring up SJ3N
18、ow 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 Us
19、age policy atwwwin- 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)
20、# ip address SJ3(config-if)# no shutdownSJ3(config-if)# interface serial 1/0SJ3(config-if)# ip address SJ3(config-if)# no shutdownVerify we can ping SJ1 and SJ2s Ethernet0/0 interfaces:SJ3(config-if)# do ping Type escape sequence to abort
21、.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.!Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 msSJ3(config-if)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.!Success rate is 80 perce
22、nt (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 Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/12/12 msGr
23、eat, full connectivity so far! Lets enable OSPF on SF and SJ1:SF(config-if)# router ospf 42SF(config-router)# network area 0SJ1(config-if)# router ospf 42SJ1(config-router)# network area 0SJ1(config-router)# network area 0Make sure the OSPF adja
24、cency between SF and SJ1 came up:SF(config-router)# do sh ip ospf neighNeighbor ID Pri State Dead Time Address Interface 1 FULL/BDR 00:00:36 Ethernet1/0Lets look at the routing table on SF:SF(config-router)# do sh ip route | begin GatewayGateway of last resort is to
25、network C /24 is directly connected, Ethernet0/0 /24 is subnetted, 2 subnetsO 110/20 via , 00:00:50, Ethernet1/0C is directly connected, Ethernet1/0S* /0 1/0 via Inject default route into OSPFSince SF has a route to the world,
26、 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 to network O*E2 /0 110/1 via , 00:00:44, Ethernet0/1 /8 is vari
27、ably subnetted, 4 subnets, 2 masksC /24 is directly connected, Ethernet0/1L /32 is directly connected, Ethernet0/1C /24 is directly connected, Ethernet0/0L /32 is directly connected, Ethernet0/0Configure default route on SJ2 and SJ3On SJ2 and SJ3, lets configu
28、re a default route towards SJ1:SJ2(config-if)# ip route SJ3(config-if)# ip route Make sure SF can talk to SJ2 and SJ3:SF(config-router)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout i
29、s 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/44/60 msSF(config-router)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/52/88 msConfig
30、ure 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 matchin
31、g the source addresses to match, of course:SF(config-if)# ip access-list standard NATSF(config-std-nacl)# permit 55SF(config-std-nacl)# permit 55SF(config-std-nacl)# permit 55Last, well use “ip nat ” to tell SF how to work its magic:SF(config-std
32、-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 Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/55/128 msSJ3(config)# do ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年阜阳太和县皮条孙镇招聘政府专职消防员1名考试备考试题及答案解析
- 2026广西来宾市忻城知府餐饮有限公司招聘财务人员1人考试参考题库及答案解析
- 2026江西赣州市于都县华硕矿业有限公司第一批招聘劳务派遣人员2人考试参考试题及答案解析
- 2026年南昌大学先进制造学院科研助理招聘1人考试备考题库及答案解析
- 2026浙江金华市武义县农业农村局招聘2人考试参考试题及答案解析
- 2026广东深圳龙华区人力资源局招聘见习人员4人考试参考题库及答案解析
- 2026湖北恩施州宣恩县松坪幼儿园招聘2人考试参考试题及答案解析
- 2026安徽铜陵交投公路运营有限责任公司劳务派遣收费员招聘考试备考试题及答案解析
- 2026湖北特种设备检验检测研究院孝感分院招聘编外人员1人考试备考题库及答案解析
- 2026年滁州来安县公开引进紧缺教育人才14名考试参考题库及答案解析
- 2025年广东中考历史试卷真题解读及答案讲评课件
- 输血反应的紧急处理和护理原则
- 商户二次装修安全施工
- 全膝关节置换术患者心理因素关联探究:疼痛信念、自我效能与睡眠质量
- 后循环缺血护理常规课件
- T-HAS 148-2025 工厂化菌糠栽培双孢蘑菇技术规程
- 宇树科技在服务机器人市场的竞争策略 课件
- 农村兄弟二人分家协议书范文
- 两办意见八硬措施煤矿安全生产条例宣贯学习课件
- 高考3500词乱序版
- 【课内词汇背背背】鲁科版(三起 五四制) 小学英语 三年级(上册+下册) 词汇表(pdf版)
评论
0/150
提交评论