IP Aliasing
From Leo's Notes
This page was last edited on 15 April 2013, at 04:58.
IP Aliasing is the process of adding additional IP addresses to a single network interface.
FreeBSD
Under FreeBSD, to add an additional IP address (10.1.1.2, with a netmask of 255.255.255.0) to re0, run:
ifconfig re0 10.1.1.2 netmask 255.255.255.255 alias
The changes above are not persistent and will not survive a reboot. Add the following to /etc/rc.conf to make it persistent:
ifconfig_re0_alias0="10.1.1.2 netmask 255.255.255.255 alias"