[原创] JunOS的入门实验基本连通性和静态路由_第1页
[原创] JunOS的入门实验基本连通性和静态路由_第2页
[原创] JunOS的入门实验基本连通性和静态路由_第3页
[原创] JunOS的入门实验基本连通性和静态路由_第4页
[原创] JunOS的入门实验基本连通性和静态路由_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

原创 JunOS的入门实验基本连通性和静态路由 原创JunOS的入门实验-基本连通性和静态路由按照论坛的帖子,下载了撒加的junos11.1,虚拟机添加了4个网络,都是customs(v0)拓扑是lo2.2.2.2|lo-R1-R2-R3-lo1.1.1.112.0.0.0/2423.0.0.0/243.3.3.3实验目标:让R1,R2,R3的5个网段全部互联1.1.1.02.2.2.03.3.3.012.0.0.023.0.0.0进入系统,输入cli进入命令行,首先show configuration发现好干净,连密码都没有设置,为了能够mit,于是先设置密码,密码好像不能纯字母rootconfigureeditroot#set systemroot-authentication plain-text-password Newpassword:Retype newpassword:editroot#mit mitplete然后rootshow configuration#Last mit:xx-12-2815:02:34UTC byroot version11.1R1.14;systemroot-authenticationencrypted-password$1$uYHboD/W$MLbxIUgzD1IaFKLOLiNBb1;#SECRET-DATAsysloguser*any emergency;file messagesany notice;authorization info;file interactive-mandsinteractive-mands any;开始配置网络接口root#set interfacesem1vlan-tagging root#set interfacesem2vlan-tagging root#set interfacesem3vlan-tagging我也不明白这是做什么。 很郁闷设置R1editroot#edit logical-systems R1root#set interfacesem1unit12vlan-id12edit logical-systems R1root#edit logical-systems R1root#set interfacesem1unit12family iaddress12.0.0.1/24root#set interfaceslo0.1family iaddress1.1.1.1/24edit logical-systems R1root#edit logical-systems R1R1设置完毕,开始设置R2root#upedit logical-systemsroot#edit R2edit logical-systems R2root#set interfacesem2unit12vlan-id12edit logical-systems R2root#edit logical-systems R2root#set interfacesem2unit12family iaddress12.0.0.2/24edit logical-systems R2root#set interfaceslo0.2family iaddress2.2.2.2/24edit logical-systems R2root#set interfacesem2unit23vlan-id23edit logical-systems R2root#set interfacesem2unit23family iaddress23.0.0.2/24edit logical-systems R2root#设置R3edit logical-systems R2root#exitedit logical-systemsroot#edit logical-systemsroot#edit R3root#set interfacesem3unit23vlan-id23edit logical-systems R3root#set interfacesem3unit23family iaddress23.0.0.3/24edit logical-systems R3root#set interfaceslo0.3family iaddress3.3.3.3/24edit logical-systems R3root#topeditroot#mit checkconfiguration checksueedsedit提交root#mit mitplete测试基本连通性editroot#exit Exitingconfiguration moderootrootping1.1.1.1logical-system R1PING1.1.1.1(1.1.1.1):56data bytes64bytes from1.1.1.1:icmp_seq=0ttl=64time=5.998ms64bytes from1.1.1.1:icmp_seq=1ttl=64time=0.344msC-1.1.1.1ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=0.344/3.171/5.998/2.827ms rootrootping12.0.0.2logical-system R1PING12.0.0.2(12.0.0.2):56data bytes64bytes from12.0.0.2:icmp_seq=0ttl=64time=10.918ms64bytes from12.0.0.2:icmp_seq=1ttl=64time=1.135msC-12.0.0.2ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=1.135/6.026/10.918/4.891ms rootrootping12.0.0.1logical-system R2PING12.0.0.1(12.0.0.1):56data bytes64bytes from12.0.0.1:icmp_seq=0ttl=64time=1.563msC-12.0.0.1ping statistics-1packets transmitted,1packets received,0%packet lossround-trip min/avg/max/stddev=1.563/1.563/1.563/0.000ms rootrootping23.0.0.3logical-system R2PING23.0.0.3(23.0.0.3):56data bytes64bytes from23.0.0.3:icmp_seq=0ttl=64time=4.027ms64bytes from23.0.0.3:icmp_seq=1ttl=64time=0.705msC-23.0.0.3ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=0.705/2.366/4.027/1.661ms rootrootping3.3.3.3logical-system R3PING3.3.3.3(3.3.3.3):56data bytes64bytes from3.3.3.3:icmp_seq=0ttl=64time=0.107msC-3.3.3.3ping statistics-1packets transmitted,1packets received,0%packet lossround-trip min/avg/max/stddev=0.107/0.107/0.107/0.000ms rootrootping2.2.2.2logical-system R2PING2.2.2.2(2.2.2.2):56data bytes64bytes from2.2.2.2:icmp_seq=0ttl=64time=0.769msC-2.2.2.2ping statistics-1packets transmitted,1packets received,0%packet lossround-trip min/avg/max/stddev=0.769/0.769/0.769/0.000ms root基本联通性都正常了,但是不同网段时间仍不能联通,所以需要配置路由,由于是先刚接触,所以配置静态路由了rootconfigure Enteringconfiguration modeeditroot#editroot#edit logical-systems R1edit logical-systems R1root#edit logical-systems R1root#set routing-options staticroute23.0.0.0/24next-hop12.0.0.2root#set routing-options staticroute2.2.2.0/24next-hop12.0.0.2root#set routing-options staticroute3.3.3.0/24next-hop12.0.0.2edit logical-systems R1root#edit logical-systems R1root#upedit logical-systemsroot#edit logical-systemsroot#edit R2edit logical-systems R2root#edit logical-systems R2root#set routing-options staticroute1.1.1.0/24next-hop12.0.0.1edit logical-systems R2root#edit logical-systems R2root#set routing-options staticroute3.3.3.0/24next-hop23.0.0.3edit logical-systems R2root#edit logical-systems R2root#upedit logical-systemsroot#edit logical-systemsroot#edit R3edit logical-systems R3root#edit logical-systems R3root#set routing-options staticroute1.1.1.0/24next-hop12.0.0.1edit logical-systems R3root#edit logical-systems R3root#set routing-options staticroute2.2.2.0/24next-hop12.0.0.2edit logical-systems R3root#edit logical-systems R3root#set routing-options staticroute12.0.0.0/24next-hop23.0.0.2edit logical-systems R3root#edit logical-systems R3root#千万不要忘记miteditroot#mit mitplete测试一下editroot#exit Exitingconfiguration moderootrootping2.2.2.2logical-system R1PING2.2.2.2(2.2.2.2):56data bytes64bytes from2.2.2.2:icmp_seq=0ttl=64time=1.424ms64bytes from2.2.2.2:icmp_seq=1ttl=64time=1.289msC-2.2.2.2ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=1.289/1.357/1.424/0.067ms rootrootping23.0.0.3logical-system R1PING23.0.0.3(23.0.0.3):56data bytes64bytes from23.0.0.3:icmp_seq=0ttl=63time=3.132ms64bytes from23.0.0.3:icmp_seq=1ttl=63time=1.906msC-23.0.0.3ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=1.906/2.519/3.132/0.613ms rootrootping3.3.3.3logical-system R1PING3.3.3.3(3.3.3.3):56data bytes64bytes from3.3.3.3:icmp_seq=0ttl=63time=1.882ms64bytes from3.3.3.3:icmp_seq=1ttl=63time=1.656msC-3.3.3.3ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=1.656/1.769/1.882/0.113ms rootrootping1.1.1.1logical-system R2PING1.1.1.1(1.1.1.1):56data bytes64bytes from1.1.1.1:icmp_seq=0ttl=64time=1.302msC-1.1.1.1ping statistics-1packets transmitted,1packets received,0%packet lossround-trip min/avg/max/stddev=1.302/1.302/1.302/0.000ms rootrootping3.3.3.3logical-system R2PING3.3.3.3(3.3.3.3):56data bytes64bytes from3.3.3.3:icmp_seq=0ttl=64time=2.069ms64bytes from3.3.3.3:icmp_seq=1ttl=64time=0.996msC-3.3.3.3ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=0.996/1.532/2.069/0.536ms rootrootping1.1.1.1logical-system R3PING1.1.1.1(1.1.1.1):56data bytesping:sendto:No routeto hostping:sendto:No routeto hostping:sendto:No routeto hostC-1.1.1.1ping statistics-3packets transmitted,0packets received,100%packet lossrootrootshow routerootrootping12.0.0.1logical-system R3PING12.0.0.1(12.0.0.1):56data bytes64bytes from12.0.0.1:icmp_seq=0ttl=63time=2.149ms64bytes from12.0.0.1:icmp_seq=1ttl=63time=1.472msC-12.0.0.1ping statistics-2packets transmitted,2packets received,0%packet lossround-trip min/avg/max/stddev=1.472/1.810/2.149/0.338ms rootrootping2.2.2.2logical-system R3PING2.2.2.2(2.2.2.2):56data bytesping:sendto:No routeto hostping:sendto:No routeto hostping:sendto:No routeto hostping:sendto:No routeto hostC-2.2.2.2ping statistics-4packets transmitted,0packets received,100%packet loss发现从R3到1.1.1.1和2.2.2.2不通,为什么呢?提示是No routeto host意思是没有路由,那我查看下R3的路由表editroot#edit logical-systems R3edit logical-systems R3root#edit logical-systems R3root#show routing-options staticroute1.1.1.0/24next-hop12.0.0.1;route2.2.2.0/24next-hop12.0.0.2;route12.0.0.0/24next-hop23.0.0.2;我觉得奇怪,明明是有路由的,想想难道这里只是设置?rootshow routelogical-system R3i.0:5destinations,5routes(5active,0holddown,0hidden)+=Active Route,-=Last Active,*=Both3.3.3.0/24*Direct/000:26:34via lo0.33.3.3.3/32*Local/000:26:34Local via lo0.312.0.0.0/24*Static/500:07:58to23.0.0.2via em3.2323.0.0.0/24*Direct/000:07:58via em3.2323.0.0.3/32*Local/000:07:58Local via em3.23root发现确实没有路由,好吧,我再设置一次rootrootconfigure Enteringconfiguration modeeditroot#editroot#edit logical-systems R3edit logical-systems R3root#edit logical-systems R3root#set routing-options staticroute1.1.1.0/24next-hop23.0.0.2edit logical-systems R3root#edit logical-systems R3root#set routing-options staticroute2.2.2.0/24next-hop23.0.0.2edit logical-systems R3root#edit logical-systems R3root#delete routing-options staticroute2.2.2.0/24next-hop12.0.0.2edit logical-systems R3root#edit logical-systems R3root#delete routing-options staticroute1.1.1.0/24next-hop12.0.0.1edit logical-systems R3root#edit logical-systems R3root#mit mitpleteedit logical-systems R3root#edit logical-systems R3root#exit configuration-mode Exitingconfiguration moderootrootping1.1.1.1logical-system R3PING1.1.1.1(1.1.1.1):56data bytes64bytes from1.1.1.1:icmp_seq=0ttl=63time=2.640ms64bytes from1.1.1.1:icmp_seq=1ttl=63time=1.320msC-1.1.1.1ping statistics-2packets transmitted,2packets receive

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论