[Bug 274483] route(8) change -interface is not effective

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Jun 2026 11:21:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274483

Pouria Mousavizadeh Tehrani <pouria@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pouria@freebsd.org

--- Comment #4 from Pouria Mousavizadeh Tehrani <pouria@freebsd.org> ---
I can not reproduce on CURRENT.
Probably fixed since then.

```
[pouria@ftsr1] [~] % mdo route -n4 add -net 192.0.2.128/25 -interface gre0
add net 192.0.2.128: gateway gre0 fib 0
[pouria@ftsr1] [~] % mdo route -n4 get 192.0.2.128/25
route to: 192.0.2.128
destination: 192.0.2.128
mask: 255.255.255.128
fib: 0
interface: gre0
flags: <UP,DONE,STATIC>
recvpipe  sendpipe  ssthresh  rtt,msec    mtu       metric    weight    expire
0         0         0         0      1292         0         1         0
[pouria@ftsr1] [~] % mdo route -n4 change -net 192.0.2.128/25 -interface gre1
change net 192.0.2.128: gateway gre1 fib 0
[pouria@ftsr1] [~] % mdo route -n4 get 192.0.2.128/25
route to: 192.0.2.128
destination: 192.0.2.128
mask: 255.255.255.128
fib: 0
interface: gre1
flags: <UP,DONE,STATIC>
recvpipe  sendpipe  ssthresh  rtt,msec    mtu       metric    weight    expire
0         0         0         0      1372         0         1         0
```

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