Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 12:22:45 +0100
From:      "Spil Oss" <spil.oss@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Removing aliases removes primary IP
Message-ID:  <5fbf03c20803200422o1709e6edmaa24c85634a4b403@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Dear all,

Today I removed all aliases on my internal NIC and loopback, which
resulted in losing the primary ip-address. What am I missing!

rc.conf
ifconfig_xl0="inet 172.17.2.1 netmask 255.255.255.0"
ifconfig_xl0_alias0="inet 172.17.2.3 netmask 255.255.255.0"
ifconfig_xl0_alias1="inet 172.17.2.4 netmask 255.255.255.0"
ifconfig_xl0_alias2="inet 172.17.2.5 netmask 255.255.255.0"
ifconfig_lo0_alias0="inet 127.0.0.2 netmask 255.0.0.0"
ifconfig_lo0_alias1="inet 127.0.0.3 netmask 255.0.0.0"

# ifconfig xl0 alias 172.17.2.3 delete
# ifconfig xl0 alias 172.17.2.4 delete
# ifconfig xl0 alias 172.17.2.5 delete
# ifconfig lo0 alias 127.0.0.2 delete
# ifconfig lo0 alias 127.0.0.3 delete
# ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 172.17.2.5 netmask 0xffffff00 broadcast 172.17.2.255
        ether <snip>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
        inet 127.0.0.3 netmask 0xff000000

Please enlighten me (or have I struc upon a bug)...

Running FreeBSD 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #1: Sat Feb 23
13:24:24 CET 2008

Kind regards,

Spil.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5fbf03c20803200422o1709e6edmaa24c85634a4b403>