ibgp next-hop-self

 

R1:

 

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/0

 ip address 12.0.0.1 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/1

 ip address 14.0.0.1 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/2

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!

interface Serial0/3

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!         

router bgp 1

 no synchronization

 bgp router-id 1.1.1.1

 network 1.1.1.0 mask 255.255.255.0

 network 12.0.0.0 mask 255.255.255.0

 neighbor 12.0.0.2 remote-as 1

 neighbor 12.0.0.2 update-source Serial0/0

 neighbor 12.0.0.2 next-hop-self

 neighbor 14.0.0.4 remote-as 2

 no auto-summary

 

R2:

 

 

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/0

 ip address 12.0.0.2 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/1

 ip address 23.0.0.2 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/2

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!

interface Serial0/3

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!         

router bgp 1

 no synchronization

 bgp router-id 2.2.2.2

 neighbor 12.0.0.1 remote-as 1

 neighbor 12.0.0.1 route-reflector-client

 neighbor 23.0.0.3 remote-as 1

 neighbor 23.0.0.3 update-source Serial0/1

 neighbor 23.0.0.3 route-reflector-client

 no auto-summary

R3:

 

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/0

 ip address 23.0.0.3 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/1

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!

interface Serial0/2

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!

interface Serial0/3

 no ip address

 no ip directed-broadcast

 shutdown 

 clockrate 2015232

!

router bgp 1

 no synchronization

 bgp router-id 3.3.3.3

 neighbor 23.0.0.2 remote-as 1

 neighbor 23.0.0.2 update-source Serial0/0

 no auto-summary

R4:

 

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/0

 ip address 14.0.0.4 255.255.255.0

 no ip directed-broadcast

!

interface Serial0/1

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!

interface Serial0/2

 no ip address

 no ip directed-broadcast

 shutdown

 clockrate 2015232

!

interface Serial0/3

 no ip address

 no ip directed-broadcast

 shutdown 

 clockrate 2015232

!

router bgp 2

 bgp router-id 4.4.4.4

 network 4.4.4.0 mask 255.255.255.0

 neighbor 14.0.0.1 remote-as 1

 no auto-summary

结果发现R3上SHOW IP BGP 的条目的下一跳为12.0.0.1 不优,看来R2对r3的next-hop-self 无效;只能在R3上做静态路由 IP route 12.0.0.0 255.255.255.0 inter S0/0

还是有点混乱;需要继续;

晕,忘记全互联

 

 

 

你可能感兴趣的:(职场,休闲,BGP)