|
3鸿鹄币
先看命令:router eigrp
redistribute ospf 1 match external 2
我在R2上做了重分发,将RIP路由重分发进了OSPF域内,R1上出现了RIP域内的路由:
Gateway of last resort is not set
3.0.0.0/24 is subnetted, 1 subnets
O E2 3.3.3.0 [110/20] via 192.168.1.2, 00:32:51, Serial2/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/65] via 192.168.2.1, 00:50:22, Serial2/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Serial2/1
L 192.168.1.1/32 is directly connected, Serial2/1
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is directly connected, Serial2/0
L 192.168.2.2/32 is directly connected, Serial2/0
O E2 192.168.3.0/24 [110/20] via 192.168.1.2, 00:32:51, Serial2/1
R1#
然后通过一条串行线在R2的上方又做了一个EIGRP,R2的S2/3接口和R5的所有接口都宣告进了EIGRP 90.
最后我想在R2上做一个重分发,将OSPF域内的外部路由就是R1上打OE的那些路由给重分发进EIGRP 90当中,所以才用了redistribute ospf 1 match external 2 metric 1 1 1 1 1500 ,但是做完之后在R5的路由表上并没有出现这些OSPF域内的外部路由,请问这是怎么回事?
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.5.0/24 is directly connected, Loopback1
L 172.16.5.1/32 is directly connected, Loopback1
192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.4.0/24 is directly connected, Serial2/3
L 192.168.4.2/32 is directly connected, Serial2/3
R5#
-------------------------------------------------------------------------------------------------------
这是各个路由器的配置:
R1# show runn
Building configuration...
Current configuration : 1273 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
interface Serial2/0
ip address 192.168.2.2 255.255.255.0
ip ospf 1 area 1
serial restart-delay 0
!
interface Serial2/1
ip address 192.168.1.1 255.255.255.0
ip ospf 1 area 0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 1.1.1.1
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
R1#
-----------------------------
Building configuration...
Current configuration : 1570 bytes
!
! Last configuration change at 20:16:42 UTC Mon Apr 25 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 192.168.1.2 255.255.255.0
ip ospf 1 area 0
serial restart-delay 0
!
interface Serial2/2
ip address 192.168.3.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
ip address 192.168.4.1 255.255.255.0
serial restart-delay 0
!
!
router eigrp 90
network 192.168.4.1 0.0.0.0
redistribute ospf 1 match external 2 metric 1 1 1 1 1500
!
router ospf 1
router-id 2.2.2.2
redistribute rip subnets
!
router rip
version 2
redistribute ospf 1 metric 3 match internal
network 192.168.3.0
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
R2# show runn
Building configuration...
Current configuration : 1570 bytes
!
! Last configuration change at 20:16:42 UTC Mon Apr 25 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 192.168.1.2 255.255.255.0
ip ospf 1 area 0
serial restart-delay 0
!
interface Serial2/2
ip address 192.168.3.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
ip address 192.168.4.1 255.255.255.0
serial restart-delay 0
!
!
router eigrp 90
network 192.168.4.1 0.0.0.0
redistribute ospf 1 match external 2 metric 1 1 1 1 1500
!
router ospf 1
router-id 2.2.2.2
redistribute rip subnets
!
router rip
version 2
redistribute ospf 1 metric 3 match internal
network 192.168.3.0
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
R2#
----------------------------------------------------------
R3#show runn
Building configuration...
Current configuration : 1324 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface Loopback1
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
ip address 192.168.3.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 3.0.0.0
network 192.168.3.0
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
------------------------------------------
R4#show running-config
Building configuration...
Current configuration : 1410 bytes
!
! Last configuration change at 19:27:20 UTC Mon Apr 25 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface Loopback1
ip address 4.4.4.4 255.255.255.0
ip ospf 1 area 1
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
interface Serial2/0
ip address 192.168.2.1 255.255.255.0
ip ospf 1 area 1
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
R4#
------------------------------------------------
R5#show running-config
Building configuration...
Current configuration : 1347 bytes
!
! Last configuration change at 20:17:18 UTC Mon Apr 25 2016
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname R5
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
!
!
!
!
no ip domain lookup
ip cef
ipv6 multicast rpf use-bgp
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface Loopback1
ip address 172.16.5.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex full
!
interface FastEthernet1/0
no ip address
shutdown
speed auto
duplex auto
!
interface FastEthernet1/1
no ip address
shutdown
speed auto
duplex auto
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
ip address 192.168.4.2 255.255.255.0
serial restart-delay 0
!
!
router eigrp 90
network 0.0.0.0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
R5#
|
-
最佳答案
查看完整内容
噢噢噢,大多数人在学习的初期都有你这种误解。我也曾经有过。R1上的OE2是从R2得到的,在R2上show ip ospf database的话,你可以看到LSA OE2,但是ADV Router是R2自身,而不是R1。AD是在比较通过不同路由协议学来的路由信息时使用的,但是在你这个结构里,在R2来看,3.3.3.3的来源只有一个,也就是RIP,所以没有办法比较。如果有第三者通过OSPF重分发了关于3.3.3.3的路由的话,R2应该会选择那个OE2。
|