Date: Fri, 16 Jun 2017 16:00:38 +0000 From: Steven Crangle <Steven@stream-technologies.com> To: FreeBSD Net <freebsd-net@freebsd.org> Subject: Possible bug in ifconfig regarding ip addresses and fibs Message-ID: <DB6PR07MB3111985364025AE2F57E13FF9BC10@DB6PR07MB3111.eurprd07.prod.outlook.com>
next in thread | raw e-mail | index | archive | help
Hi, I've been configuring a device with the following rc.conf lines: ifconfig_le6_name=3D"manee" ifconfig_manee=3D"fib 5 up" ifconfig_manee_alias0=3D"inet 185.100.174.221 netmask 255.255.255.0" ifconfig_manee_alias1=3D"inet 172.31.4.216 netmask 255.255.255.128" ifconfig_manee_alias2=3D"inet 192.168.124.216 netmask 255.255.255.128" The result I would have expected is as follows: manee: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15= 00 options=3D8<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=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect status: active fib: 5 Instead I get the following on boot of the box: manee: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15= 00 options=3D8<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=3D29<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 devi= ce, they all succeed apart from when I get to the 192.168.124.216 one. Whic= h 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.16= 8.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 differen= t 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/>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DB6PR07MB3111985364025AE2F57E13FF9BC10>