Lab BGP loopback neighbor

Topology:

Platform:Dynamips(ccnp.net)

在IBGP的邻居建立过程中,有一个源检测的要求。
当R2收到OPEN包时,会做一个源检测的动作,会把收来的包里的源地址,和自己配置手动邻居的那一个地址做比较,如果相同就通过,如果不同就无法建立邻居。

R1++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 1.1.1.1 255.255.255.255

int f0/0
no sh
ip add 12.1.1.1 255.255.255.0

router bgp 12
bgp router-id 1.1.1.1
no sy
no au
nei 2.2.2.2 remote-as 12
nei 2.2.2.2 up lo 0  //修改发送更新源 (前提是环回口都能互相通信)

router ospf 100
router-id 1.1.1.1
net 0.0.0.0 0.0.0.0 area 0

R2++++++++++++++++++++++++++++++++++++++++++

int lo 0
ip add 2.2.2.2 255.255.255.255

int f0/0
no sh
ip add 12.1.1.2 255.255.255.0

router ospf 100
router-id 2.2.2.2
net 0.0.0.0 0.0.0.0 area 0

router bgp 12
bgp router-id 2.2.2.2
no sy
no au
nei 1.1.1.1 remote-as 12
nei 1.1.1.1 up lo 0

原文地址:https://www.cnblogs.com/cyrusxx/p/12824262.html