设备:三台DCR-2655路由器
端口:RA:LOOPBACK1F0/0对应IP1.1.1.112.1.1.1RB:F0/0G0/3对应IP12.1.1.223.1.1.2RC:G0/3LOOPBACK123.1.1.13.3.3.3
RA#
intloopback1
ipadd1.1.1.1255.255.255.0
nosh
ex
intf0/0
ipadd12.1.1.1255.255.255.0
nosh
ex
routerospf1
network1.1.1.0255.255.255.0area1
network12.1.1.0255.255.255.0area1
RB#
intf0/0
ipadd12.1.1.2255.255.255.0
nosh
ex
intg0/3
ipadd23.1.1.2255.255.255.0
nosh
ex
routerospf1<新建OSPF进程1>
network12.1.1.0255.255.255.0area1<划分网段到OSPF进程1区域1>
redistributeospf2<重分布OSPF进程区域2到OSPF进程1中>
redistributeconnect<重分布直连>
routerospf2<新建OSPF进程2>
network23.1.1.0255.255.255.0area2<划分网段到OSPF进程2区域2>
redistributeospf1<重分布OSPF进程区域1到OSPF进程2中>
redistributeconnect<重分布直连>
RC#
intloopback1
ipadd3.3.3.3255.255.255.0
nosh
ex
intg0/3
ipadd23.1.1.1255.255.255.0
nosh
ex
routerospf2
network23.1.1.0255.255.255.0area2
network3.3.3.0255.255.255.0area2
查看RA上路由表:showiproute
RA_config#showiproute
Codes:C-connected,S-static,R-RIP,B-BGP,BC-BGPconnected
D-BEIGRP,DEX-externalBEIGRP,O-OSPF,OIA-OSPFinterarea
ON1-OSPFNSSAexternaltype1,ON2-OSPFNSSAexternaltype2
OE1-OSPFexternaltype1,OE2-OSPFexternaltype2
DHCP-DHCPtype,L1-IS-ISlevel-1,L2-IS-ISlevel-2
VRFID:0
C1.1.1.0/24isdirectlyconnected,Loopback1
OE23.3.3.3/32[150,100]via12.1.1.2(onFastEthernet0/0)
C12.1.1.0/24isdirectlyconnected,FastEthernet0/0
OE223.1.1.0/24[150,100]via12.1.1.2(onFastEthernet0/0)
查看RB上路由表:
RB_config#showiproute
Codes:C-connected,S-static,R-RIP,B-BGP,BC-BGPconnected
D-BEIGRP,DEX-externalBEIGRP,O-OSPF,OIA-OSPFinterarea
ON1-OSPFNSSAexternaltype1,ON2-OSPFNSSAexternaltype2
OE1-OSPFexternaltype1,OE2-OSPFexternaltype2
DHCP-DHCPtype,L1-IS-ISlevel-1,L2-IS-ISlevel-2
VRFID:0
O1.1.1.1/32[110,2]via12.1.1.1(onFastEthernet0/0)
O3.3.3.3/32[110,2]via23.1.1.1(onGigaEthernet0/3)
C12.1.1.0/24isdirectlyconnected,FastEthernet0/0
C23.1.1.0/24isdirectlyconnected,GigaEthernet0/3
查看RC上路由表:
RC_config#showiproute
Codes:C-connected,S-static,R-RIP,B-BGP,BC-BGPconnected
D-BEIGRP,DEX-externalBEIGRP,O-OSPF,OIA-OSPFinterarea
ON1-OSPFNSSAexternaltype1,ON2-OSPFNSSAexternaltype2
OE1-OSPFexternaltype1,OE2-OSPFexternaltype2
DHCP-DHCPtype,L1-IS-ISlevel-1,L2-IS-ISlevel-2
VRFID:0
OE21.1.1.1/32[150,100]via23.1.1.2(onGigaEthernet0/3)
C3.3.3.0/24isdirectlyconnected,Loopback2
OE212.1.1.0/24[150,100]via23.1.1.2(onGigaEthernet0/3)
C23.1.1.0/24isdirectlyconnected,GigaEthernet0/3
本文出自 “匿名者” 博客,谢绝转载!