ifconfig: ioctl (SIOCAIFADDR): File exists - but not only with alias command
Alexander V. Chernikov
melifaro at FreeBSD.org
Thu Oct 17 07:06:06 UTC 2013
On 16.10.2013 22:17, Raimundo Santos wrote:
> Hello list,
Hello!
>
> I have a quad port Intel NIC and I am stucked on this problem: whenever I
> try to modify the address of one port of this NIC, I see from ifconfig
>
> ifconfig: ioctl (SIOCAIFADDR): File exists
>
> Here is the status of one port:
>
> # ifconfig igb1
> igb1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>
> options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
> ether 00:1b:21:5a:93:31
> inet6 fe80::21b:21ff:fe5a:9331%igb1 prefixlen 64 scopeid 0x2
> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> media: Ethernet autoselect (1000baseT <full-duplex>)
> status: active
>
> As you can see, no inet address. Try to put an address that was used before
> in the same port of this NIC, and..
>
>
> # ifconfig igb1 XX.XX.XX.20/28
> ifconfig: ioctl (SIOCAIFADDR): File exists
This seems rather strange. I'm using multiple fibs in production, and it
shouldn't behave that way.
Can you do the following and send me output?
1) issue `route -n monitor` and log all messages
2) add first address to interface
3) do route -n get network_address (e.g. XX.XX.XX.16/28) for added
prefix (in fib 0 and fib 1)
4) remove this address
5) repeat step 3
6) add this prefix to another port
7) repeat step 3
>
> I have routed running with this /etc/gateways:
>
> ripv2
> if=tun0 no_rip
> if=tun1 no_rip
> if=et0 no_rip
> if=et1 no_rip
> if=igb2 no_rip
> if=igb3 no_rip
> rdisc_interval=45
> no_ag
> no_super_ag
> subnet=X.Y.Z.56/30,1
> subnet=X.Y.Z.0/29,1
> subnet=X.Y.Z.8/29,1
> subnet=X.Y.Z.16/29,1
> subnet=X.Y.Z.24/29,1
> subnet=X.Y.Z.32/29,1
> subnet=X.Y.Z.40/29,1
> subnet=X.Y.Z.48/29,1
> subnet=X.Y.Z.64/29,1
> subnet=X.Y.Z.72/29,1
> subnet=X.Y.Z.80/29,1
> subnet=X.Y.Z.88/29,1
> subnet=X.Y.Z.96/29,1
> subnet=X.Y.Z.104/29,1
> subnet=X.Y.Z.112/29,1
> subnet=X.Y.Z.120/29,1
>
> The problem occurs when configuring the primary address or an alias in any
> port, after unconfigure some other address.
>
> Using
>
> # uname -a
> FreeBSD XXX 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #10: Thu Aug 1 19:04:09
> BRT 2013 XXX:/usr/obj/usr/src/sys/XXX_KERNEL amd64
>
> A custom system with 0 thru 15 FIBs, FWD in ipfw, and VNET/VIMAGE all
> enabled.
>
> Thank you!
> Raimundo Santos
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20131017/fb37838b/attachment.sig>
More information about the freebsd-net
mailing list