Hello Gentlemen.
Please help/clarify me with usage of kernel 'option ROUTE_MPATH' and multiroutes. I'm on vanilla13-STABLE, everything as after default setup.
Trying as follow:
But never got it working:
I do not see STICKY in flags, weight is always just 0.
And after dozen route add/change/del tries just goes to reboot with panic.
Does it work at all? How to set up it correctly?
Thank You.
Please help/clarify me with usage of kernel 'option ROUTE_MPATH' and multiroutes. I'm on vanilla13-STABLE, everything as after default setup.
Code:
# uname -a
FreeBSD server.localnetwork 13.0-STABLE FreeBSD 13.0-STABLE #0: Wed Jul 7 01:15:25 +05 2021 me@server.local/usr/obj/usr/src-13/amd64.amd64/sys/GENERIC amd64
Code:
route -nv add 87.250.250.242 10.1.1.1
route -nv change -sticky 87.250.250.242 10.1.1.1
route -nv change -weight 10 87.250.250.242 10.1.1.1
route -nv get 87.250.250.242 10.1.1.1
route -nv add 87.250.250.242 10.2.2.2
route -nv change -sticky 87.250.250.242 10.2.2.2
route -nv change -weight 20 87.250.250.242 10.2.2.2
route -nv get 87.250.250.242 10.2.2.2
Code:
# route -nv get 87.250.250.242 10.1.1.1
RTA_DST: inet 87.250.250.242; RTA_GATEWAY: inet 10.1.1.1; RTA_IFP: link ; RTM_GET: Report Metrics: len 240, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>
locks: inits:
sockaddrs: <DST,GATEWAY,IFP>
87.250.250.242 10.1.1.1 link#0
route to: 87.250.250.242
destination: 87.250.250.242
gateway: 10.1.1.1
fib: 0
interface: ue0
flags: <UP,GATEWAY,HOST,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 0 0
locks: inits:
sockaddrs: <DST,GATEWAY,IFP,IFA>
87.250.250.242 10.1.1.1 ue0:0.e0.4c.69.1f.99 10.10.10.10
# route -nv get 87.250.250.242 10.2.2.2
RTA_DST: inet 87.250.250.242; RTA_GATEWAY: inet 10.2.2.2; RTA_IFP: link ; RTM_GET: Report Metrics: len 240, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>
locks: inits:
sockaddrs: <DST,GATEWAY,IFP>
87.250.250.242 10.2.2.2 link#0
route to: 87.250.250.242
destination: 87.250.250.242
gateway: 10.2.2.2
fib: 0
interface: ue0
flags: <UP,GATEWAY,HOST,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 0 0
locks: inits:
sockaddrs: <DST,GATEWAY,IFP,IFA>
87.250.250.242 10.2.2.2 ue0:0.e0.4c.69.1f.99 10.10.10.10
I do not see STICKY in flags, weight is always just 0.
And after dozen route add/change/del tries just goes to reboot with panic.
Does it work at all? How to set up it correctly?
Thank You.