Possible bug in ifconfig regarding ip addresses and fibs
Steven Crangle
Steven at stream-technologies.com
Fri Jun 16 16:00:44 UTC 2017
Hi,
I've been configuring a device with the following rc.conf lines:
ifconfig_le6_name="manee"
ifconfig_manee="fib 5 up"
ifconfig_manee_alias0="inet 185.100.174.221 netmask 255.255.255.0"
ifconfig_manee_alias1="inet 172.31.4.216 netmask 255.255.255.128"
ifconfig_manee_alias2="inet 192.168.124.216 netmask 255.255.255.128"
The result I would have expected is as follows:
manee: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 08:00:27:d3:83:da
inet 185.100.174.221 netmask 0xffffff00 broadcast 185.100.174.255
inet 172.31.4.216 netmask 0xffffffc0 broadcast 172.31.4.255
inet 192.168.124.216 netmask 0xffffff80 broadcast 192.168.124.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
fib: 5
Instead I get the following on boot of the box:
manee: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 08:00:27:d3:83:da
inet 185.100.174.221 netmask 0xffffff00 broadcast 185.100.174.255
inet 172.31.4.216 netmask 0xffffffc0 broadcast 172.31.4.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
fib: 5
I then tried to run the following command:
ifconfig manee alias 185.100.174.221 netmask 255.255.255.0
ifconfig manee alias 172.31.4.216 netmask 255.255.255.128
ifconfig manee alias 192.168.124.216 netmask 255.255.255.128
Which resulted in the following output:
ifconfig: ioctl (SIOCAIFADDR): File exists
After this I tried:
ifconfig manee -alias
Which seemed to wipe all addresses fro mthe device as expected.
I then started again using ifconfig lines to assign the aliases to the device, they all succeed apart from when I get to the 192.168.124.216 one. Which again outputs the following:
ifconfig: ioctl (SIOCAIFADDR): File exists
Even though running ifconfig only shows the first two addresses configured.
Note: I also have a mgmt interface on fib 0 configured with the ip : 192.168.124.250
>From investigation it seems to somehow be clashing with this, as I am able to add a 3rd alias with the following line:
ifconfig manee alias 192.168.125.216 netmask 255.255.255.128
Is it not possible to have two IP Addresses on the same range, but different addresses on seperate fibs?
Thanks for any help!
Steven
________________________________
[Stream Logo]
Steven Crangle
Systems Developer | Stream Technologies | Glasgow, UK
[http://www.stream-technologies.com/img/phone.png]
+44 (0)844 800 8520
|
[http://www.stream-technologies.com/img/mouse.png]
www.stream-technologies.com<http://www.stream-technologies.com/>
________________________________
[Stream Logo]
Steven Crangle
Systems Developer | Stream Technologies | Glasgow, UK
[http://www.stream-technologies.com/img/phone.png]
+44 (0)844 800 8520
|
[http://www.stream-technologies.com/img/mouse.png]
www.stream-technologies.com<http://www.stream-technologies.com/>
More information about the freebsd-net
mailing list