iBGP - Simple static route exchange

Cedric Lemarchand yipikai7 at gmail.com
Thu Feb 23 14:45:34 CET 2017


Hello,

I am trying to distribute 2 static routes between 2 hosts, not directly connected, and I am having hard time to make it works … 

host1 10.10.1.1 (eth0) own subnet 192.168.1.0/24 ( 192.168.1.1 on eth1)
host2 10.10.2.1 (eth0) own subnet 192.168.2.0/24 ( 192.168.2.1 on eth1)

I get the following error : 

host1 bird: bgp1 < rejected by protocol 192.168.2.0/24 unreachable
host1 bird: bgp1 > updated [best] 192.168.2.0/24 unreachable

Bellow the bird.conf of both hosts :

log syslog all;
router id 10.10.1.1;
debug protocols all;
protocol direct {
        interface "*";  # Restrict network interfaces it works with
}
protocol kernel {
        learn;                  # Learn all alien routes from the kernel
        #persist;               # Don't remove routes on bird shutdown
        scan time 20;           # Scan kernel routing table every 20 seconds
        import all;             # Default is import all
        export all;             # Default is export none
}
protocol device {
        scan time 10;           # Scan interfaces every 10 seconds
}
protocol static {
        debug all;
        route 192.168.1.0/24 via 10.10.2.254;
        export all;
}
protocol bgp {
        multihop;
        #gateway recursive;
        import all;
        export all;
        #export where proto = "static1";
        local as 3000;
        neighbor 10.10.2.1 as 3000;
        #next hop self;
}

—

log syslog all;
router id 10.10.2.1;
protocol direct {
        interface "*";  # Restrict network interfaces it works with
}
protocol kernel {
        learn;                  # Learn all alien routes from the kernel
        #persist;               # Don't remove routes on bird shutdown
        scan time 20;           # Scan kernel routing table every 20 seconds
        import all;             # Default is import all
        export all;             # Default is export none
}
protocol device {
        scan time 10;           # Scan interfaces every 10 seconds
}
protocol static {
        route 192.168.2.0/24 via 10.10.1.254;
        export all;
}
protocol bgp {
        multihop;
        #gateway recursive;
        import all;
        #export where proto = "static1";
        export all;
        local as 3000;
        neighbor 10.10.1.1 as 3000;
        #next hop self;
}


—
Cédric Lemarchand

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170223/87c69e16/attachment.html>


More information about the Bird-users mailing list