Hello,
I'm currently my FreeBSD machine and I wondering what'S best option to adress a jail with IP.
my
Should I create an alias on re0 or lo0 ?
So /etc/rc.conf
or
Thank you in advance for sharing your knowledge and wisdom
I'm currently my FreeBSD machine and I wondering what'S best option to adress a jail with IP.
my
ifconfig
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 48:5b:39:c9:68:11
inet 192.168.2.16 netmask 0xffffff00 broadcast 192.168.2.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <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 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Should I create an alias on re0 or lo0 ?
So /etc/rc.conf
Code:
cloned_interfaces="lo1"
ifconfig_lo1_alias0="inet 192.168.2.21 netmask 255.255.255.255"
or
Code:
cloned_interfaces="re0"
ifconfig_re1_alias0="inet 192.168.2.21 netmask 255.255.255.255"
Thank you in advance for sharing your knowledge and wisdom