current1# cat /etc/bgpd.conf
AS 65001
network 10.0.1.0/24

neighbor 172.29.1.52 {
        remote-as 65001
        set nexthop self
        descr "current2"
        local-address 172.29.1.51
}

allow quick to 172.29.1.52 set nexthop 172.29.1.200
allow to any
allow from any

current1# bgpctl show rib nei 172.29.1.52 out
flags: * = Valid, > = Selected, I = via IBGP, A = Announced
origin: i = IGP, e = EGP, ? = Incomplete

flags destination          gateway          lpref   med aspath origin
AI*>  10.0.1.0/24          172.29.1.200       100     0 i
current1#

--------------------

current2# bgpctl show rib nei 172.29.1.51 in
flags: * = Valid, > = Selected, I = via IBGP, A = Announced
origin: i = IGP, e = EGP, ? = Incomplete

flags destination          gateway          lpref   med aspath origin
I*>   10.0.1.0/24          172.29.1.51        100     0 i
current2#
current2# cat /etc/bgpd.conf
AS 65001
network 10.0.2.0/24

neighbor 172.29.1.51 {
        remote-as 65001
        set nexthop self
        local-address 172.29.1.52
        descr "current1"
}

allow to any
allow from any

Tested on -current, see the same on 4.9.

Regards Tony

Reply via email to