版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年新版执法证考试题及答案
- 2025年萌兔趣味测试题及答案
- 温州市洞头区社区网格工作人员考试题库及答案
- 2026年教师岗公基能力提升模拟题库(含答案)
- 2026年保安员考试题及答案
- 2026年清朝战争考试题及答案
- 2026年大学生村官招录考前模拟真题公基题库(附解析)
- 福州市鼓楼区(2025年)网格员考试试题及答案
- 2026年肿瘤学习题库含参考答案
- (2025年)富士康ipqc考试试题和答案
- DZ∕T 0273-2015 地质资料汇交规范(正式版)
- MOOC 职场英语-西南交通大学 中国大学慕课答案
- 联合办公协议书范本
- 三年级寒假阅读与写作专项提高资料汇编
- 高考地理一轮复习课件运用水循环环节及其影响因素分析相关现象++
- 人像摄影的造型技巧课件
- 抖音生活服务平台通案
- 广东工商职业技术大学辅导员考试真题2022
- 中考初中生物总复习消化系统循环系统呼吸系统泌尿系统复习课件
- 国家开放大学《应用概率统计》综合作业1-4参考答案
- YY/T 0681.4-2010无菌医疗器械包装试验方法第4部分:染色液穿透法测定透气包装的密封泄漏
评论
0/150
提交评论