ifconfig alias

3 views
Skip to first unread message

Cy Schubert

unread,
Nov 25, 2011, 1:12:12 AM11/25/11
to freebsd...@freebsd.org
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@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@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.Sc...@komquats.com>
FreeBSD UNIX: <c...@FreeBSD.org> Web: http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Gleb Smirnoff

unread,
Nov 25, 2011, 1:57:34 AM11/25/11
to Cy Schubert, freebsd...@freebsd.org
On Thu, Nov 24, 2011 at 10:12:12PM -0800, Cy Schubert wrote:
C> Sometime between Nov 9 and yesterday (Nov 23 at approximately noon PST)
C> ifconfig alias has stopped working. Here's uname -a

The problam had been introduced in r227830 and had been fixed in r227958.

Sorry for that.

--
Totus tuus, Glebius.

Reply all
Reply to author
Forward
0 new messages