Fwd: bird (2.0.4) does not install multipath route in kernel
Arno O
odermaar at gmail.com
Tue Jun 11 17:27:59 CEST 2019
One more (last) question:
since when (which Bird) -release is ECMP like this supported?
Thx
BR
Ar
Am Di., 11. Juni 2019 um 15:39 Uhr schrieb Kenth Eriksson <
Kenth.Eriksson at infinera.com>:
> On Tue, 2019-06-11 at 15:13 +0200, Arno O wrote:
> > all, Alexander,
> >
> > bingo, "ip route" does the job ( sorry, was not aware about that
> > difference).
> > Thanx
> >
> Message only sent to me, please re-post to list so that they can see
> your resolution of the problem.
>
> > Enjoy the day
> > BR
> > Ar
> >
> > [root at localhost ~]# ip route
> > 10.10.10.0/24 dev enp0s3 proto bird scope link metric 10
> > 10.10.10.0/24 dev enp0s3 proto kernel scope link src 10.10.10.1
> > metric 100
> > 50.50.50.0/24 proto bird metric 10
> > nexthop via 10.10.10.2 dev enp0s3 weight 11
> > nexthop via 10.10.10.3 dev enp0s3 weight 11
> > 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
> > linkdown
> > 192.168.122.0/24 via 10.10.10.3 dev enp0s3 proto bird metric 10
> > [root at localhost ~]#
> >
> > Am Di., 11. Juni 2019 um 14:56 Uhr schrieb Arno O <odermaar at gmail.com
> > >:
> > > Dear Kenth,
> > >
> > > there is no such error trace in syslog
> > >
> > > (bird log setting:
> > > # Configure logging
> > > log syslog all;)
> > >
> > > How to proceed?
> > >
> > > BR
> > > Ar
> > >
> > >
> > > Am Di., 11. Juni 2019 um 14:36 Uhr schrieb Kenth Eriksson <
> > > Kenth.Eriksson at infinera.com>:
> > > > On Tue, 2019-06-11 at 14:18 +0200, Arno O wrote:
> > > > > CAUTION: This email originated from outside of the
> > > > organization. Do
> > > > > not click links or open attachments unless you recognize the
> > > > sender
> > > > > and know the content is safe.
> > > > >
> > > > > This topic was already discussed around March 1st 2019,
> > > > without
> > > > > having received a clear outcome.
> > > > >
> > > > > Now, dealing with ECMP with OSPF in Bird 2.04 on Fedora30, I
> > > > run in
> > > > > same problems:
> > > > >
> > > > > -> multiple next hops to same destination (50.50.50.0/24) are
> > > > in the
> > > > > route table of bird:
> > > > > bird> sho route
> > > > > Table master4:
> > > > > 10.10.10.0/24 unicast [OIPv46 13:39:16.979] I (150/10)
> > > > > [10.10.10.1]
> > > > > dev enp0s3
> > > > > 192.168.122.0/24 unicast [OIPv46 13:46:18.979] E2
> > > > (150/10/10000)
> > > > > [10.10.10.3]
> > > > > via 10.10.10.3 on enp0s3
> > > > > 50.50.50.0/24 unicast [OIPv46 13:46:18.979] E2
> > > > (150/10/100)
> > > > > [10.10.10.3]
> > > > > via 10.10.10.2 on enp0s3 weight 11
> > > > > via 10.10.10.3 on enp0s3 weight 11
> > > > > bird>
> > > > > [root at localhost ~]#
> > > > >
> > > > > but kernel route table looks unexpectedly different:
> > > > > root at localhost ~]# netstat -rn
> > > > > Kernel IP routing table
> > > > > Destination Gateway Genmask Flags MSS
> > > > Window
> > > > > irtt Iface
> > > > > 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0
> > > >
> > > > > 0 enp0s3
> > > > > 50.50.50.0 10.10.10.2 255.255.255.0 UG 0 0
> > > >
> > > > > 0 enp0s3
> > > > > 192.168.122.0 10.10.10.3 255.255.255.0 UG 0 0
> > > >
> > > > > 0 enp0s3
> > > > > [root at localhost ~]#
> > > > >
> > > > Do you see them if you do 'ip route'? I think iproute2 is better
> > > > at
> > > > displaying multipath routes.
> > > >
> > > > > Kernel looks configured correctly
> > > > (CONFIG_IP_ROUTE_MULTIPATH=y),
> > > > > etc.etc.
> > > > >
> > > > If the kernel is mis-configured, I believe you get an error trace
> > > > in
> > > > the bird log. Something along the following lines;
> > > >
> > > > <WARN> Netlink: Invalid argument
> > > >
> > > > I tested it on 2.0.4 and kernel 4.14.92+ and that seems to work.
> > > >
> > > > >
> > > > > Bird config on ECMPed bird router:
> > > > > protocol ospf OIPv46 {
> > > > > tick 2;
> > > > > rfc1583compat yes;
> > > > > ecmp yes limit 8;
> > > > > merge external yes;
> > > > > ipv4 {
> > > > > import all;
> > > > > export all;
> > > > > };
> > > > > area 0 {
> > > > > interface "enp0*" {
> > > > > # type broadcast; # Detected by default
> > > > > cost 10; # Interface metric
> > > > > ecmp weight 11;
> > > > >
> > > > > What is missing either in the bird-config or the kernel part?
> > > > >
> > > > > Thx
> > > > >
> > > > > BR
> > > > > Ar
> > > > >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190611/6a4c5ac0/attachment.htm>
More information about the Bird-users
mailing list