HostOnNet Blog

Configure IP Addresses

FreeBSD uses only 1 configuration file to list your IP addresses and default gateway:


There is one line per IP address in this file. Secondary (alias) IP addresses are configured with a netmask of Here’s an example of the lines you will need to have in /etc/rc.conf for 2 IP addresses:

ifconfig_fxp0=”inet netmask″
ifconfig_fxp0_alias0=” netmask”

Restarting network to re-read IP address configuration file:


Posted in FreeBSD. Bookmark the permalink.