ifconfig alias

From: Cy Schubert <Cy.Schubert_at_komquats.com>
Date: Thu, 24 Nov 2011 22:12:12 -0800
Sometime between Nov 9 and yesterday (Nov 23 at approximately noon PST) 
ifconfig alias has stopped working. Here's uname -a

FreeBSD bob 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r227907M: Thu Nov 24 
13:04:39 PST 2011     root_at_bob:/usr/obj/dsk03/src/svn-current/sys/BREAK  
i386


Here's the problem (interface doesn't matter -- on this machine vr0 and sk0 
are affected).

bob# ifconfig vr0
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=82808<VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
	ether 00:16:17:8e:65:fe
	inet6 fe80::216:17ff:fe8e:65fe%vr0 prefixlen 64 scopeid 0x6 
	inet 10.1.2.7 netmask 0xffffff00 broadcast 10.1.2.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
bob# ifconfig vr0 10.1.2.2 netmask 0xffffffff alias
bob# ifconfig vr0
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=82808<VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
	ether 00:16:17:8e:65:fe
	inet6 fe80::216:17ff:fe8e:65fe%vr0 prefixlen 64 scopeid 0x6 
	inet 10.1.2.2 netmask 0xffffffff broadcast 10.1.2.2
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
bob# 



A sample 8.2 system, showing how it should work:

FreeBSD cwsys 8.2-STABLE FreeBSD 8.2-STABLE #0: Wed Nov 23 20:29:36 PST 
2011     root_at_cwsys:/export/obj/opt/src/svn-stable8/sys/KQLARGE  i386

cwsys# ifconfig nfe0
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=c219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MA
GIC,VLAN_HWTSO,LINKSTATE>
	ether 00:1e:8c:3e:1b:da
	inet 10.1.2.1 netmask 0xffffff00 broadcast 10.1.2.255
	media: Ethernet autoselect (100baseTX <full-duplex,flowcontrol,rxpause,txpa
use>)
	status: active
cwsys# ifconfig nfe0 inet 10.1.2.99 netmask 0xffffffff alias
cwsys# ifconfig nfe0
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=c219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MA
GIC,VLAN_HWTSO,LINKSTATE>
	ether 00:1e:8c:3e:1b:da
	inet 10.1.2.1 netmask 0xffffff00 broadcast 10.1.2.255
	inet 10.1.2.99 netmask 0xffffffff broadcast 10.1.2.99
	media: Ethernet autoselect (100baseTX <full-duplex,flowcontrol,rxpause,txpa
use>)
	status: active
cwsys# 


-- 
Cheers,
Cy Schubert <Cy.Schubert_at_komquats.com>
FreeBSD UNIX:  <cy_at_FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.
Received on Fri Nov 25 2011 - 05:27:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC