Thanks Pietro!
Somehow the man-page for ifconfig is confusing
In the examples:
quote
Add the IPv6 address 2001:DB8:DBDB::123/48 to the interface em0:
# ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias
Note that lower case hexadecimal IPv6 addresses are acceptable.
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Spil Oss wrote:
| 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!
|
| # ifconfig xl0 alias 172.17.2.3 delete
| # ifconfig xl0 alias 172.17.2.4 delete
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Pietro Cerutti wrote:
| 2) you remove an alias which the 'delete' argument. Since you don't
| specify which alias to be removed, the lowest IP number is removed. In
| your case, the lowest IP number happens to be your primary :-)
Maybe someone