你好我所有的朋友...我配置了这个场景,但R1 只跟踪到 10.10.13.3 (R3) !
请帮帮我...
- 所有路由器都有一个环回
0
接口X.X.X.X/32
,其中X
是路由器的编号。 - 在 R1、R2、R3 上配置 OSPF 并通告
10.10.12.0/24, 10.10.13.0/24
和环回0
子网 - 在 R4、R5 上配置 OSPF 并通告
150.45.45.0/26
和环回 0 子网 - 在 AS 123 中配置完整的 iBGP 网格,使用环回 0 接口进行对等互连
- 在 AS 45 中配置 iBGP,使用环回 0 接口进行对等互连
- 在 AS 123 和 AS 45 之间配置 eBGP
- 通告 R1 环回 0 和
150.45.45.0/26
BGP - 确保 AS 123 将使用 R3-R5 之间通往网络的链路
150.45.45.0/26
。仅使用 MED 属性。 - 确保 AS 45 将使用 R3-R5 之间通往网络 1.1.1.1/32 的链路。仅使用 MED 属性。
所有配置
R6
router ospf 10
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.10.12.0 0.0.0.255 area 0
network 10.10.13.0 0.0.0.255 area 0
!
router bgp 123
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
neighbor 3.3.3.3 remote-as 123
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
R2
router ospf 10
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 10.10.12.0 0.0.0.255 area 0
!
router bgp 123
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 123
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 3.3.3.3 remote-as 123
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 24.0.0.2 remote-as 45
neighbor 24.0.0.2 route-map RM-SET-MED out
no auto-summary
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
ip prefix-list NET-1 seq 5 permit 1.1.1.1/32
!
!
!
route-map RM-SET-MED permit 10
match ip address prefix-list NET-1
set metric 20
R3
router ospf 10
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 10.10.13.0 0.0.0.255 area 0
!
router bgp 123
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 123
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 next-hop-self
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 next-hop-self
neighbor 35.0.0.2 remote-as 45
neighbor 35.0.0.2 route-map RM-SET-MED out
no auto-summary
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
ip prefix-list NET-1 seq 5 permit 1.1.1.1/32
!
!
!
route-map RM-SET-MED permit 10
match ip address prefix-list NET-1
set metric 10
!
R4
router ospf 100
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 150.45.45.4 0.0.0.0 area 0
!
router bgp 45
no synchronization
bgp log-neighbor-changes
network 150.45.45.0 mask 255.255.255.192
neighbor 5.5.5.5 remote-as 45
neighbor 5.5.5.5 update-source Loopback0
neighbor 5.5.5.5 next-hop-self
neighbor 24.0.0.1 remote-as 123
neighbor 24.0.0.1 route-map RM-SET-MED out
no auto-summary
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
ip prefix-list NET-150 seq 5 permit 150.45.45.0/26
!
!
!
route-map RM-SET-MED permit 10
match ip address prefix-list NET-150
set metric 20
R5
router ospf 100
log-adjacency-changes
network 5.5.5.5 0.0.0.0 area 0
network 150.45.45.5 0.0.0.0 area 0
!
router bgp 45
no synchronization
bgp log-neighbor-changes
network 150.45.45.0 mask 255.255.255.192
neighbor 4.4.4.4 remote-as 45
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 next-hop-self
neighbor 35.0.0.1 remote-as 123
neighbor 35.0.0.1 route-map RM-SET-MED out
no auto-summary
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
ip prefix-list NET-150 seq 5 permit 150.45.45.0/26
!
!
!
route-map RM-SET-MED permit 10
match ip address prefix-list NET-150
set metric 10