Adding route to another fib than 0

Hi,

I can't add route to fib greater than 0 using FreeBSD 14.0:

# route add -fib 1 192.168.0.0/24 192.168.64.1
add net 192.168.0.0: gateway 192.168.64.1 fib 1: Invalid argument


I've already set net.fibs to 2:

# sysctl net.fibs=2

What is happening?
Thanks,
Paulo.
 
I tried adding the interface as default route, unsuccessfully.

Code:
root@a04:~ # route add default -interface vtnet0
add net default: gateway vtnet0
root@a04:~ # netstat -4rn
Routing tables

Internet:
Destination        Gateway            Flags         Netif Expire
default            link#1             US           vtnet0
127.0.0.1          link#2             UH              lo0
163.172.143.183    link#2             UH              lo0

root@a04:~ # ping -c 3 62.210.0.1
PING 62.210.0.1 (62.210.0.1): 56 data bytes
64 bytes from 62.210.0.1: icmp_seq=0 ttl=64 time=0.275 ms
64 bytes from 62.210.0.1: icmp_seq=1 ttl=64 time=0.293 ms
64 bytes from 62.210.0.1: icmp_seq=2 ttl=64 time=0.387 ms

--- 62.210.0.1 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.275/0.318/0.387/0.049 ms

root@a04:~ # ping 9.9.9.9
PING 9.9.9.9 (9.9.9.9): 56 data bytes
^C
--- 9.9.9.9 ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss

This is slightly better as I can ping the gateway, but not further.
 
Back
Top