实验十 综合实验.docx
《实验十 综合实验.docx》由会员分享,可在线阅读,更多相关《实验十 综合实验.docx(15页珍藏版)》请在冰豆网上搜索。
实验十综合实验
实验十综合实验
一、实验目的
1、掌握在复杂组网条件下的PPP和帧中继协议的配置;
2、掌握在复杂组网条件下的静态路由、RIP和OSPF协议配置;
二、实验设备
QuidwayS3928以太网交换机1台
QuidwayS3026以太网交换机1台
QuidwayS2116以太网交换机1台
QuidwayAR28-12路由器2台
QuidwayAR28-31路由器1台
计算机3台,网线若干根,V.35DTE、DCE电缆线3对
三、实验原理及内容:
1、实验拓扑如图:
2、配置命令参考:
resetsaved-configuration
reboot
system
[Quidway]sysnamera
[ra]interfacee0/0
[ra-Ethernet0/0]ipadd202.0.0.124
[ra-Ethernet0/0]interfaces0/0
[ra-Serial0/0]ipadd192.0.0.124
[ra]iproute-static0.0.0.00.0.0.0192.0.0.2preference60
[ra]q
save
system
[ra]local-userrouterb
[ra-luser-routerb]passwordsimplehelloa
[ra-luser-routerb]service-typeppp
[ra-luser-routerb]q
[ra]interfaces0/0
[ra-Serial0/0]pppauthentication-modepap
[ra-Serial0/0]q
[ra]q
save
dispcur
#
sysnamera
#
radiusschemesystem
#
domainsystem
#
local-useradmin
passwordcipher.]@USE=B,53Q=^Q`MAF4<1!
!
service-typetelnetterminal
level3
service-typeftp
local-userrouterb
passwordsimplehelloa
service-typeppp
#
interfaceAux0
asyncmodeflow
#
interfaceEthernet0/0
ipaddress202.0.0.1255.255.255.0
#
interfaceEthernet0/1
ipaddressdhcp-alloc
#
interfaceSerial0/0
clockDTECLK1
link-protocolppp
pppauthentication-modepap
ipaddress192.0.0.1255.255.255.0
#
interfaceSerial0/1
clockDTECLK1
link-protocolppp
ipaddressdhcp-alloc
#
interfaceNULL0
#
FTPserverenable
#
iproute-static0.0.0.00.0.0.0192.0.0.2preference60
#
user-interfacecon0
user-interfaceaux0
user-interfacevty04
authentication-modescheme
#
return
dispiprouting-table
RoutingTable:
publicnet
Destination/MaskProtocolPreCostNexthopInterface
0.0.0.0/0STATIC600192.0.0.2Serial0/0
127.0.0.0/8DIRECT00127.0.0.1InLoopBack0
127.0.0.1/32DIRECT00127.0.0.1InLoopBack0
192.0.0.0/24DIRECT00192.0.0.1Serial0/0
192.0.0.1/32DIRECT00127.0.0.1InLoopBack0
192.0.0.2/32DIRECT00192.0.0.2Serial0/0
202.0.0.0/24DIRECT00202.0.0.1Ethernet0/0
202.0.0.1/32DIRECT00127.0.0.1InLoopBack0
resetsaved-configuration
reboot
system
[Quidway]sysnamerb
[rb]interfacee0/0
[rb-Ethernet0/0]ipadd202.0.1.124
[rb-Ethernet0/0]interfaces0/0
[rb-Serial0/0]ipadd192.0.0.224
[rb-Serial0/0]interfaces0/1
[rb-Serial0/1]ipadd192.0.1.124
[rb-Serial0/1]q
[rb]rip
[rb-rip]network192.0.1.0
[rb-rip]network202.0.1.0
[rb-rip]q
[rb]iproute-static202.0.0.024192.0.0.1
[rb]q
save
system
[rb]rip
[rb-rip]import-routedirect
[rb-rip]import-routestatic
[rb-rip]q
[rb]q
save
system
[rb]local-userrouterc
[rb-luser-routerc]passwordsimplehelloc
[rb-luser-routerc]service-typeppp
[rb-luser-routerc]interfaces0/1
[rb-Serial0/1]pppchapuserrouterb
[rb-Serial0/1]pppchappasswordsimplehellob
[rb-Serial0/1]pppauthentication-modechap
[rb-Serial0/1]q
[rb]q
system
[rb]interfaces0/0
[rb-Serial0/0]ppppaplocal-userrouterbpasswordsimplehelloa
[rb-Serial0/0]q
[rb]q
save
dispcur
#
sysnamerb
#
radiusschemesystem
#
domainsystem
#
local-useradmin
passwordcipher.]@USE=B,53Q=^Q`MAF4<1!
!
service-typetelnetterminal
level3
service-typeftp
local-userrouterc
passwordsimplehelloc
service-typeppp
#
interfaceAux0
asyncmodeflow
#
interfaceEthernet0/0
ipaddress202.0.1.1255.255.255.0
#
interfaceEthernet0/1
ipaddressdhcp-alloc
#
interfaceSerial0/0
link-protocolppp
ppppaplocal-userrouterbpasswordsimplehelloa
ipaddress192.0.0.2255.255.255.0
#
interfaceSerial0/1
clockDTECLK1
link-protocolppp
pppauthentication-modechap
pppchapuserrouterb
ipaddress192.0.1.1255.255.255.0
#
interfaceNULL0
#
rip
network192.0.1.0
network202.0.1.0
import-routedirect
import-routestatic
#
FTPserverenable
#
iproute-static202.0.0.0255.255.255.0192.0.0.1preference60
#
user-interfacecon0
user-interfaceaux0
user-interfacevty04
authentication-modescheme
#
return
dispiprouting-table
RoutingTable:
publicnet
Destination/MaskProtocolPreCostNexthopInterface
127.0.0.0/8DIRECT00127.0.0.1InLoopBack0
127.0.0.1/32DIRECT00127.0.0.1InLoopBack0
192.0.0.0/24DIRECT00192.0.0.2Serial0/0
192.0.0.1/32DIRECT00192.0.0.1Serial0/0
192.0.0.2/32DIRECT00127.0.0.1InLoopBack0
192.0.1.0/24DIRECT00192.0.1.1Serial0/1
192.0.1.1/32DIRECT00127.0.0.1InLoopBack0
192.0.1.2/32DIRECT00192.0.1.2Serial0/1
192.0.2.0/24RIP1001192.0.1.2Serial0/1
202.0.0.0/24STATIC600192.0.0.1Serial0/0
202.0.1.0/24DIRECT00202.0.1.1Ethernet0/0
202.0.1.1/32DIRECT00127.0.0.1InLoopBack0
202.0.2.0/24RIP1001192.0.1.2Serial0/1
202.0.3.0/24RIP1001192.0.1.2Serial0/1
dispcur
#
sysnamerc
#
radiusschemesystem
#
domainsystem
#
local-useradmin
passwordcipher.]@USE=B,53Q=^Q`MAF4<1!
!
service-typetelnetterminal
level3
service-typeftp
local-userrouterb
passwordsimplehellob
service-typeppp
#
interfaceAux0
asyncmodeflow
#
interfaceEthernet0/0
ipaddress202.0.2.1255.255.255.0
#
interfaceEthernet0/1
ipaddressdhcp-alloc
#
interfaceSerial0/0
clockDTECLK1
link-protocolfr
frinterface-typedce
frdlci20
ipaddress192.0.2.1255.255.255.0
#
interfaceSerial0/1
link-protocolppp
pppauthentication-modechap
pppchapuserrouterc
pppchappasswordsimplehelloc
ipaddress192.0.1.2255.255.255.0
#
interfaceNULL0
#
ospf1
import-routedirect
import-routerip
peer192.0.2.2
area0.0.0.0
network192.0.2.00.0.0.255
network202.0.2.00.0.0.255
#
rip
network202.0.2.0
network192.0.1.0
import-routeospf1
import-routedirect
#
FTPserverenable
#
user-interfacecon0
user-interfaceaux0
user-interfacevty04
authentication-modescheme
#
return
dispiprouting-table
RoutingTable:
publicnet
Destination/MaskProtocolPreCostNexthopInterface
127.0.0.0/8DIRECT00127.0.0.1InLoopBack0
127.0.0.1/32DIRECT00127.0.0.1InLoopBack0
192.0.0.0/24RIP1001192.0.1.1Serial0/1
192.0.1.0/24DIRECT00192.0.1.2Serial0/1
192.0.1.1/32DIRECT00192.0.1.1Serial0/1
192.0.1.2/32DIRECT00127.0.0.1InLoopBack0
192.0.2.0/24DIRECT00192.0.2.1Serial0/0
192.0.2.1/32DIRECT00127.0.0.1InLoopBack0
192.0.2.2/32DIRECT00192.0.2.2Serial0/0
202.0.0.0/24RIP1001192.0.1.1Serial0/1
202.0.1.0/24RIP1001192.0.1.1Serial0/1
202.0.2.0/24DIRECT00202.0.2.1Ethernet0/0
202.0.2.1/32DIRECT00127.0.0.1InLoopBack0
202.0.3.0/24OSPF101563192.0.2.2Serial0/0
dispcur
#
sysnamerd
#
radiusschemesystem
#
domainsystem
#
local-useradmin
passwordcipher.]@USE=B,53Q=^Q`MAF4<1!
!
service-typetelnetterminal
level3
service-typeftp
#
interfaceAux0
asyncmodeflow
#
interfaceEthernet0/0
ipaddress202.0.3.1255.255.255.0
#
interfaceEthernet0/1
ipaddressdhcp-alloc
#
interfaceSerial0/0
link-protocolfr
ipaddress192.0.2.2255.255.255.0
#
interfaceSerial0/1
clockDTECLK1
link-protocolppp
ipaddressdhcp-alloc
#
interfaceNULL0
#
ospf1
peer192.0.2.1
area0.0.0.0
network192.0.2.00.0.0.255
network202.0.3.00.0.0.255
#
FTPserverenable
#
user-interfacecon0
user-interfaceaux0
user-interfacevty04
authentication-modescheme
#
return
dispiprouting-table
RoutingTable:
publicnet
Destination/MaskProtocolPreCostNexthopInterface
127.0.0.0/8DIRECT00127.0.0.1InLoopBack0
127.0.0.1/32DIRECT00127.0.0.1InLoopBack0
192.0.0.0/24O_ASE1501192.0.2.1Serial0/0
192.0.1.0/24O_ASE1501192.0.2.1Serial0/0
192.0.1.1/32O_ASE1501192.0.2.1Serial0/0
192.0.2.0/24DIRECT00192.0.2.2Serial0/0
192.0.2.1/32DIRECT00192.0.2.1Serial0/0
192.0.2.2/32DIRECT00127.0.0.1InLoopBack0
202.0.0.0/24O_ASE1501192.0.2.1Serial0/0
202.0.1.0/24O_ASE1501192.0.2.1Serial0/0
202.0.2.0/24OSPF101563192.0.2.1Serial0/0
202.0.3.0/24DIRECT00202.0.3.1Ethernet0/0
202.0.3.1/32DIRECT00127.0.0.1InLoopBack0
3、注意import-route命令的使用。
import-routeprotoco[costvalue]/undoimport-routeprotocol
protocol:
可引入的源路由协议,目前RIP可引入的路由包括:
direct、ospf、ospf-ase、ospf-nssa、static、bgp和isis。
value:
所要引入的路由权值。
取值范围为1~16,缺省为1。
import-route命令用来在RIP或OSPF协议中引入其它协议的路由,undoimport-route命令用来取消已经引入的相应协议的路由。
缺省情况下,RIP或OSPF不引入其它路由。
import-route命令用于以一定的value值引入其它协议的路由。
RIP将引入的路由视同自己的路由并以指定的value一同发送。
此命令能大大地提高RIP获取路由的能力,从而提高RIP的性能。
如果不指定costvalue,则按缺省路由权(defaultcost)引入,取值范围为1~16,如果大于或等于16,表示为不可达路由,在120秒之后不再发送。
【举例】
●引入static路由,cost值为4。
[Quidway-rip]import-routestaticcost4
●设定缺省路由权,并以缺省路由权引入OSPF路由。
[Quidway-rip]defaultcost3
[Quidway-rip]import-routeospf
4、所有主机能够互相Ping通。