Hello! Would You please show the output for 'show route all for 192.168.1.0/24' and also 'show route all where proto = "static1"' *Regards,* *Boris* -- С уважением, Борис Коваленко
On host1 (10.10.1.1) : bird> show route all for 192.168.1.0/24 192.168.1.0/24 dev eth1 [direct1 13:44:52] * (240) Type: device unicast univ via 10.10.1.1 on eth0 [static1 13:44:52] (200) Type: static unicast univ bird> show route all for 192.168.2.0/24 Network not in table bird> show route all where proto = "static1" 192.168.1.0/24 via 10.10.1.1 on eth0 [static1 13:44:52] (200) Type: static unicast univ On host2 (10.10.2.1) : bird> show route all for 192.168.1.0/24 Network not in table bird> show route all for 192.168.2.0/24 192.168.2.0/24 dev eth1 [direct1 13:44:58] * (240) Type: device unicast univ via 10.10.2.1 on eth0 [static1 13:44:58] (200) Type: static unicast univ bird> show route all where proto = "static1" 192.168.2.0/24 via 10.10.2.1 on eth0 [static1 13:44:58] (200) Type: static unicast univ Bird 1.4.5 Thx ! — Cédric Lemarchand
On 5 Mar 2017, at 10:39, Борис Коваленко <b.ju.kovalenko@gmail.com> wrote:
Hello!
Would You please show the output for 'show route all for 192.168.1.0/24 <http://192.168.1.0/24>' and also 'show route all where proto = "static1"'
Regards, Boris
-- С уважением, Борис Коваленко
On Sun, Mar 05, 2017 at 01:51:10PM +0100, Cedric Lemarchand wrote:
On host1 (10.10.1.1) :
bird> show route all for 192.168.1.0/24 192.168.1.0/24 dev eth1 [direct1 13:44:52] * (240) Type: device unicast univ via 10.10.1.1 on eth0 [static1 13:44:52] (200) Type: static unicast univ
Hi This is a cause of your problems - you have 192.168.1.0/24 as both direct route and indirect route from static protocol. Because the direct route has higher priority (240), it is selected, but your BGP export filter is set to 'where proto = “static1"', is the direct route is rejected, while the static route is ignored due to being shadowed by the direct one. You could use just 'export where net = 192.168.1.0/24' as BGP export filter or you could clean up your network setup to avoid overlapping direct and indirect routes. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (3)
-
Cedric Lemarchand -
Ondrej Zajicek -
Борис Коваленко