1、实验十 综合实验实验十 综合实验一、实验目的1、掌握在复杂组网条件下的PPP和帧中继协议的配置;2、掌握在复杂组网条件下的静态路由、RIP和OSPF协议配置;二、实验设备Quidway S3928以太网交换机 1 台Quidway S3026以太网交换机 1 台Quidway S2116以太网交换机 1 台Quidway AR28-12路由器2台Quidway AR28-31路由器1台计算机3台,网线若干根,V.35DTE、DCE电缆线3对三、实验原理及内容:1、实验拓扑如图:2、配置命令参考:reset saved-configurationrebootsystemQuidwaysysnam
2、e rarainterface e0/0ra-Ethernet0/0ip add 202.0.0.1 24ra-Ethernet0/0interface s0/0ra-Serial0/0ip add 192.0.0.1 24raip route-static 0.0.0.0 0.0.0.0 192.0.0.2 preference 60raqsavesystemralocal-user routerbra-luser-routerbpassword simple helloara-luser-routerbservice-type pppra-luser-routerbqrainterface
3、 s0/0ra-Serial0/0ppp authentication-mode papra-Serial0/0qraqsavedisp cur# sysname ra#radius scheme system#domain system#local-user admin password cipher .USE=B,53Q=QMAF41! service-type telnet terminal level 3 service-type ftplocal-user routerb password simple helloa service-type ppp#interface Aux0 a
4、sync mode flow#interface Ethernet0/0 ip address 202.0.0.1 255.255.255.0#interface Ethernet0/1 ip address dhcp-alloc#interface Serial0/0 clock DTECLK1 link-protocol ppp ppp authentication-mode pap ip address 192.0.0.1 255.255.255.0#interface Serial0/1 clock DTECLK1 link-protocol ppp ip address dhcp-a
5、lloc#interface NULL0# FTP server enable# ip route-static 0.0.0.0 0.0.0.0 192.0.0.2 preference 60#user-interface con 0user-interface aux 0user-interface vty 0 4 authentication-mode scheme#returndisp ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface0.0.0.0/
6、0 STATIC 60 0 192.0.0.2 Serial0/0127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.0.0/24 DIRECT 0 0 192.0.0.1 Serial0/0192.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.0.2/32 DIRECT 0 0 192.0.0.2 Serial0/0202.0.0.0/24 DIRECT 0 0 202.0.0.1 Ethernet0/020
7、2.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0reset saved-configurationrebootsystemQuidwaysysname rbrbinterface e0/0rb-Ethernet0/0ip add 202.0.1.1 24rb-Ethernet0/0interface s0/0rb-Serial0/0ip add 192.0.0.2 24rb-Serial0/0interface s0/1rb-Serial0/1ip add 192.0.1.1 24rb-Serial0/1qrbriprb-ripnetwork 192.0.
8、1.0rb-ripnetwork 202.0.1.0rb-ripqrbip route-static 202.0.0.0 24 192.0.0.1rbqsavesystemrbriprb-ripimport-route directrb-ripimport-route staticrb-ripqrbqsavesystemrblocal-user routercrb-luser-routercpassword simple hellocrb-luser-routercservice-type ppprb-luser-routercinterface s0/1rb-Serial0/1ppp cha
9、p user routerbrb-Serial0/1ppp chap password simple hellobrb-Serial0/1ppp authentication-mode chaprb-Serial0/1qrbqsystemrbinterface s0/0rb-Serial0/0ppp pap local-user routerb password simple helloarb-Serial0/0qrbqsavedisp cur# sysname rb#radius scheme system#domain system#local-user admin password ci
10、pher .USE=B,53Q=QMAF41! service-type telnet terminal level 3 service-type ftplocal-user routerc password simple helloc service-type ppp#interface Aux0 async mode flow#interface Ethernet0/0 ip address 202.0.1.1 255.255.255.0#interface Ethernet0/1 ip address dhcp-alloc#interface Serial0/0 link-protoco
11、l ppp ppp pap local-user routerb password simple helloa ip address 192.0.0.2 255.255.255.0#interface Serial0/1 clock DTECLK1 link-protocol ppp ppp authentication-mode chap ppp chap user routerb ip address 192.0.1.1 255.255.255.0#interface NULL0#rip network 192.0.1.0 network 202.0.1.0 import-route di
12、rect import-route static# FTP server enable# ip route-static 202.0.0.0 255.255.255.0 192.0.0.1 preference 60#user-interface con 0user-interface aux 0user-interface vty 0 4 authentication-mode scheme#returndisp ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Inter
13、face127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.0.0/24 DIRECT 0 0 192.0.0.2 Serial0/0192.0.0.1/32 DIRECT 0 0 192.0.0.1 Serial0/0192.0.0.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.1.0/24 DIRECT 0 0 192.0.1.1 Serial0/1192.0.1.1/32 DIRECT 0 0 127.0.0.1
14、 InLoopBack0192.0.1.2/32 DIRECT 0 0 192.0.1.2 Serial0/1192.0.2.0/24 RIP 100 1 192.0.1.2 Serial0/1202.0.0.0/24 STATIC 60 0 192.0.0.1 Serial0/0202.0.1.0/24 DIRECT 0 0 202.0.1.1 Ethernet0/0202.0.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0202.0.2.0/24 RIP 100 1 192.0.1.2 Serial0/1202.0.3.0/24 RIP 100 1 192.
15、0.1.2 Serial0/1disp cur# sysname rc#radius scheme system#domain system#local-user admin password cipher .USE=B,53Q=QMAF41! service-type telnet terminal level 3 service-type ftplocal-user routerb password simple hellob service-type ppp#interface Aux0 async mode flow#interface Ethernet0/0 ip address 2
16、02.0.2.1 255.255.255.0#interface Ethernet0/1 ip address dhcp-alloc#interface Serial0/0 clock DTECLK1 link-protocol fr fr interface-type dce fr dlci 20 ip address 192.0.2.1 255.255.255.0#interface Serial0/1 link-protocol ppp ppp authentication-mode chap ppp chap user routerc ppp chap password simple
17、helloc ip address 192.0.1.2 255.255.255.0#interface NULL0#ospf 1 import-route direct import-route rip peer 192.0.2.2 area 0.0.0.0 network 192.0.2.0 0.0.0.255 network 202.0.2.0 0.0.0.255#rip network 202.0.2.0 network 192.0.1.0 import-route ospf 1 import-route direct# FTP server enable#user-interface
18、con 0user-interface aux 0user-interface vty 0 4 authentication-mode scheme#returndisp ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.0.0/24 RIP 100 1 192.0.1.
19、1 Serial0/1192.0.1.0/24 DIRECT 0 0 192.0.1.2 Serial0/1192.0.1.1/32 DIRECT 0 0 192.0.1.1 Serial0/1192.0.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.2.0/24 DIRECT 0 0 192.0.2.1 Serial0/0192.0.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.2.2/32 DIRECT 0 0 192.0.2.2 Serial0/0202.0.0.0/24 RIP 100 1 192.
20、0.1.1 Serial0/1202.0.1.0/24 RIP 100 1 192.0.1.1 Serial0/1202.0.2.0/24 DIRECT 0 0 202.0.2.1 Ethernet0/0202.0.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0202.0.3.0/24 OSPF 10 1563 192.0.2.2 Serial0/0disp cur# sysname rd#radius scheme system#domain system#local-user admin password cipher .USE=B,53Q=QMAF41!
21、service-type telnet terminal level 3 service-type ftp#interface Aux0 async mode flow#interface Ethernet0/0 ip address 202.0.3.1 255.255.255.0#interface Ethernet0/1 ip address dhcp-alloc#interface Serial0/0 link-protocol fr ip address 192.0.2.2 255.255.255.0#interface Serial0/1 clock DTECLK1 link-pro
22、tocol ppp ip address dhcp-alloc#interface NULL0#ospf 1 peer 192.0.2.1 area 0.0.0.0 network 192.0.2.0 0.0.0.255 network 202.0.3.0 0.0.0.255# FTP server enable#user-interface con 0user-interface aux 0user-interface vty 0 4 authentication-mode scheme#returndisp ip routing-table Routing Table: public ne
23、tDestination/Mask Protocol Pre Cost Nexthop Interface127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.0.0.0/24 O_ASE 150 1 192.0.2.1 Serial0/0192.0.1.0/24 O_ASE 150 1 192.0.2.1 Serial0/0192.0.1.1/32 O_ASE 150 1 192.0.2.1 Serial0/0192.0.2.0/24 DIRECT 0 0 19
24、2.0.2.2 Serial0/0192.0.2.1/32 DIRECT 0 0 192.0.2.1 Serial0/0192.0.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0202.0.0.0/24 O_ASE 150 1 192.0.2.1 Serial0/0202.0.1.0/24 O_ASE 150 1 192.0.2.1 Serial0/0202.0.2.0/24 OSPF 10 1563 192.0.2.1 Serial0/0202.0.3.0/24 DIRECT 0 0 202.0.3.1 Ethernet0/0202.0.3.1/32 DIRE
25、CT 0 0 127.0.0.1 InLoopBack03、注意import-route命令的使用。import-route protoco cost value /undo import-route protocol protocol:可引入的源路由协议,目前RIP可引入的路由包括:direct、ospf、ospf-ase、ospf-nssa、static、bgp和isis。value:所要引入的路由权值。取值范围为116,缺省为1。import-route命令用来在RIP或OSPF协议中引入其它协议的路由,undo import-route命令用来取消已经引入的相应协议的路由。缺省情况下,
26、RIP或OSPF不引入其它路由。import-route命令用于以一定的value值引入其它协议的路由。RIP将引入的路由视同自己的路由并以指定的value一同发送。此命令能大大地提高RIP获取路由的能力,从而提高RIP的性能。如果不指定cost value,则按缺省路由权(default cost)引入,取值范围为116,如果大于或等于16,表示为不可达路由,在120秒之后不再发送。【举例】 引入static路由,cost值为4。Quidway-rip import-route static cost 4 设定缺省路由权,并以缺省路由权引入OSPF路由。Quidway-rip default cost 3Quidway-rip import-route ospf 4、所有主机能够互相Ping通。
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1