Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Apr 2022 19:45:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 255264] Unable to add default route for fib
Message-ID:  <bug-255264-7501-gExTHD7tTy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255264-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255264-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255264

--- Comment #11 from Mitja Horvat <pinkfluid@gmail.com> ---
(In reply to Marek Zarychta from comment #10)

Marek, that worked splendidly. I could even leave net.add_addr_allfibs=3D0.

rc.conf:
static_routes=3D"fib1_lan fib1_default"
route_fib1_lan=3D"-fib 1 -net 192.168.1.0/24 -interface re0"
route_fib1_default=3D"-fib 1 default -ifa 192.168.1.2 192.168.1.1"

The console log show there was no issues when adding the route:
Apr 14 21:39:56 marin kernel: /sbin/route add -fib 1 default -ifa 192.168.1=
.2
192.168.1.1
Apr 14 21:39:56 marin kernel: add net default: gateway 192.168.1.1 fib 1

And the final result is this:
root@marin:/usr/home/mitja # netstat -rn4 -F1
Routing tables (fib: 1)

Internet:
Destination        Gateway            Flags     Netif Expire
default            192.168.1.1        UGS         re0
127.0.0.1          link#2             UHS         lo0
192.168.1.0/24     link#1             US          re0

Perfect, thank you!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255264-7501-gExTHD7tTy>