版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、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 “he
2、lium”.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.hopef
3、ully, 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 runn
4、ing 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:0hel
5、ium 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
6、 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 cnt
7、l/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 seconds:.!success rate
8、 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 203.0
9、.113.1sf(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 helium:$ ./i86bi_linux-
10、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 information.*port 0
11、/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 configuration comm
12、ands, 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 box.lets verify we
13、 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 segment with sj2
14、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 software to be pro
15、vided 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 ethernet0/0 and s
16、erial1/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 sj2(con
17、fig-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 sj3now well bring up t
18、he 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
19、- 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.12
20、3.123.3 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.sending 5, 100-by
21、te 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 percent (4/5), round-tr
22、ip 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 msgreat, full connecti
23、vity 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 adjacency between sf a
24、nd 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 network c 2
25、0/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, lets inject a def
26、ault 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 variably subnetted, 4
27、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 configure a default route
28、 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 is 2 seconds:!succe
29、ss 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 msconfigure nat on sfnow t
30、hat 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 addre
31、sses 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-nacl)# ip nat ins
32、ide 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 mi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年衡东县事业单位真题
- 重组家庭小学生心理健康调查问卷
- 2026年矿山生态修复考试试卷及答案
- 神经炎症与疾病治疗新靶标
- 2026年城市垃圾分类考前押题及答案
- 2025年倡议书写作试题及答案
- 2026年春季学期高中生心理健康调查问卷(家长版)
- 社交媒体数据安全挑战
- 结核病疫苗递送系统的跨种属应用研究
- 2025 初中写作校园作文的生活场景捕捉课件
- 2026国家药品监督管理局药品和医疗器械审评检查京津冀分中心、华中分中心、西南分中心第一批编外招聘122人笔试参考题库及答案解析
- (二模)东北三省三校2026年高三第二次模拟考试 语文试卷(含答案及解析)
- 2026年青岛金家岭金融聚集区管理委员会公开选聘工作人员考试参考题库及答案解析
- (一模)江门市2026年高三高考模拟考试政治试卷(含答案详解)
- 河北省石家庄市2026届高三一模考试化学试卷(含答案)
- 2026年武汉警官职业学院单招职业技能考试题库带答案详解
- 我国专利执行责任保险法律制度的困境与突破:基于案例视角的深度剖析
- 人员被困应急预案(设备内部、深基坑、罐体等)
- 自然特征与农业课件2025-2026学年人教版八年级地理下册
- 涉密检查材料归档办法
- 初等变换初等矩阵教案
评论
0/150
提交评论