Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2023 10:32:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 271308] [FIB] File exists while adding IPv4
Message-ID:  <bug-271308-7501-joj3P3Xe37@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271308-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271308-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=3D271308

--- Comment #5 from Konrad <konrad.kreciwilk@korbank.pl> ---
simpler reproduction:


FreeBSD 13.1-STABLE #24 stable/13-56caa9e82b-dirty: Wed Sep  7 20:17:15 CEST
2022:
without options NETLINK, works corretly:


root@:~ # ifconfig bge1 10.20.20.254/24
root@:~ # route add 192.168.100.0/24 10.20.20.254
add net 192.168.100.0: gateway 10.20.20.254
root@:~ # ifconfig bge3 192.168.100.254/24

root@:~ # netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
10.20.20.0/24      link#4             U          bge1
10.20.20.254       link#4             UHS         lo0
127.0.0.1          link#9             UH          lo0
192.168.100.0/24   link#6             U          bge3
192.168.100.254    link#6             UHS         lo0



FreeBSD 13.2-STABLE #6 stable/13-651e037e2-dirty: Mon May  8 00:55:17 CEST
2023:
with options NETLINK

root@:~ # ifconfig bge1 10.20.20.254/24
root@:~ # route add 192.168.100.0/24 10.20.20.254
add net 192.168.100.0: gateway 10.20.20.254
root@:~ # ifconfig bge3 192.168.100.254/24
ifconfig: ioctl (SIOCAIFADDR): File exists



Freebsd 14.0-STABLE #0 stable/14-n265212-84266fb897e6: Sat Sep 23 21:40:58 =
CEST
2023:
with options NETLINK

root@:~ # ifconfig bge1 10.20.20.254/24
root@:~ # route add 192.168.100.0/24 10.20.20.254
add net 192.168.100.0: gateway 10.20.20.254
root@:~ # ifconfig bge3 192.168.100.254/24
ifconfig: ioctl (SIOCAIFADDR): File exists

root@b:~ # netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
10.20.20.0/24      link#2             U          bge1
10.20.20.254       link#5             UHS         lo0
127.0.0.1          link#5             UH          lo0
192.168.100.0/24   10.20.20.254       UGS        bge1

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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