Solved Aliases to lo0 clones to re1

Good day!

I have a strange behavior with 11-STABLE:
uname -a
11.0-STABLE FreeBSD 11.0-STABLE #0 r313042: Wed Feb 1 23:27:02 +05 2017 amd64

/etc/rc.conf
Code:
# Local network
ifconfig_re0="inet 192.168.17.1  netmask 255.255.255.0"
ifconfig_re0_alias0="inet 192.168.18.1 netmask 255.255.255.0"

# Jail network aliases
ifconfig_lo0_alias0="inet 10.12.10.1/32"
ifconfig_lo0_alias1="inet 10.12.10.2/32"
ifconfig_lo0_alias2="inet 10.12.10.3/32"

# Internet
ifconfig_re1="inet a.b.c.d/28"
defaultrouter="a.b.c.1"
After booting server I have such situation:
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 1c:6f:65:5c:b7:c3
        inet 192.168.17.1 netmask 0xffffff00 broadcast 192.168.17.255
        inet 192.168.18.1 netmask 0xffffff00 broadcast 192.168.18.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:21:91:f4:71:bf
        inet a.b.c.d netmask 0xfffffff0 broadcast a.b.c.1
        inet 10.12.10.1 netmask 0xffffffff
        inet 10.12.10.2 netmask 0xffffffff
        inet 10.12.10.3 netmask 0xffffffff
      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        inet 10.12.10.1 netmask 0xffffffff
        inet 10.12.10.2 netmask 0xffffffff
        inet 10.12.10.3 netmask 0xffffffff
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
????

And I manually remove aliases from re1 and after that all seems fine (aliases exists only on lo0).

What can cause that mystical error?
 
Don't add those aliases to lo0, instead create a cloned interface lo1 and attach the addresses to that.
 
Back
Top