• 冒险村物语
  • 英雄无敌3塔防
  • 驾考家园手游

Ospf路由重分部到rip

2015-06-17

Ospf路由重分部到rip
 
 
Route3为自制系统路由协议ASBR,通过Route0进行路由重分布,Route0、Route1、Route2为骨干区域area0.
网段划分:
Route0-route1 172.16.0.0/24
Route1-route2 172.16.1.0/24
Route0-route2 172.16.2.0/24
Route3-route0 10.0.0.0/24
Route0配置:
基本借口配置:
Int f0/0 ip add 172.16.0.1 255.255.255.0
         No shut(此命令在配置中只显示一次)
Int f0/1 ip add 10.0.0.2 255.255.255.0
Int f1/0 ip add 172.16.2.1 255.255.255.0
Ospf配置:
Conf)router ospf 100
Net 172.16.0.0 0.0.0.255 area 0
Net 172.16.2.0 0.0.0.255 area 0
Net 10.0.0.0 0.0.0.255 area 0
Route 1和Route 2配置类似,在此不再显示。
接下来配置Route 3 Rip路由器:
基本接口配置:
Int f0/0 ip add 192.168.0.1 255.255.255.0
Int f0/1 ip add 10.0.0.1 255.255.255.0
重分部Ospf配置:
Conf)router ospf 20
Net 172.16.0.0 0.0.0.255 area 0
Net 172.16.2.0 0.0.0.255 area 0
Redistribute rip subents
路由重分部到Rip:
Conf)route rip
Version 2
Net 10.0.0.0
Net 192.168.0.0
添加一条到ASBR路由器的默认路由:
Conf)ip route 0.0.0.0 0.0.0.0 10.0.0.0.2
 
_______________________________
配置信息:
R0:
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
Gateway of last resort is not set
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/1
     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.0.0 is directly connected, FastEthernet0/0
O       172.16.1.0 [110/2] via 172.16.0.2, 01:17:50, FastEthernet0/0
C       172.16.2.0 is directly connected, Ethernet1/0
 
___________________ show ip ospf int
 
FastEthernet0/0 is up, line protocol is up
  Internet address is 172.16.0.1/24, Area 0
  Process ID 100, Router ID 172.16.2.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 172.16.2.1, Interface address 172.16.0.1
  Backup Designated Router (ID) 172.16.1.1, Interface address 172.16.0.2
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:07
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 172.16.1.1  (Backup Designated Router)
  Suppress hello for 0 neighbor(s)
Ethernet1/0 is up, line protocol is up
  Internet address is 172.16.2.1/24, Area 0
  Process ID 100, Router ID 172.16.2.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 172.16.2.1, Interface address 172.16.2.1
  Backup Designated Router (ID) 172.16.2.2, Interface address 172.16.2.2
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:03
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 172.16.2.2  (Backup Designated Router)
  Suppress hello for 0 neighbor(s)
FastEthernet0/1 is up, line protocol is up
  Internet address is 10.0.0.2/24, Area 0
  Process ID 100, Router ID 172.16.2.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 172.16.2.1, Interface address 10.0.0.2
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:03
  Index 3/3, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)
_________________________
R1:
____________________Show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/24 is subnetted, 1 subnets
O       10.0.0.0 [110/2] via 172.16.0.1, 00:48:00, FastEthernet0/0
     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.0.0 is directly connected, FastEthernet0/0
C       172.16.1.0 is directly connected, FastEthernet0/1
O       172.16.2.0 [110/11] via 172.16.0.1, 01:26:34, FastEthernet0/0
                   [110/11] via 172.16.1.2, 01:25:27, FastEthernet0/1
 
____________________show ip ospf int
FastEthernet0/0 is up, line protocol is up
  Internet address is 172.16.0.2/24, Area 0
  Process ID 200, Router ID 172.16.1.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 172.16.2.1, Interface address 172.16.0.1
  Backup Designated Router (ID) 172.16.1.1, Interface address 172.16.0.2
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 172.16.2.1  (Designated Router)
  Suppress hello for 0 neighbor(s)
FastEthernet0/1 is up, line protocol is up
  Internet address is 172.16.1.1/24, Area 0
  Process ID 200, Router ID 172.16.1.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 172.16.1.1, Interface address 172.16.1.1
  Backup Designated Router (ID) 172.16.2.2, Interface address 172.16.1.2
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 172.16.2.2  (Backup Designated Router)
  Suppress hello for 0 neighbor(s)
 
_________________________
R3:
__________________show ip route
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/1
S*   0.0.0.0/0 [1/0] via 10.0.0.2
 
_______________show ip ospf
Routing Process "ospf 20" with ID 192.168.0.1
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 It is an area border router
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 Number of external LSA 2. Checksum Sum 0x013118
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 2. 2 normal 0 stub 0 nssa
 External flood list length 0
    Area BACKBONE(0) (Inactive)
        Number of interfaces in this area is 0
        Area has no authentication
        SPF algorithm executed 2 times
        Area ranges are
        Number of LSA 1. Checksum Sum 0x00feff
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)

人气推荐

知识阅读

精彩推荐

  • 游戏
  • 软件
查看更多>>