Browse Tag: freebsd

Adding IP aliases in FreeBSD

Edit /etc/rc.conf:

[code lang=”bash”]ifconfig_fxp0=”inet 1.2.3.4 netmask 255.255.255.192″
ifconfig_fxp0_alias0=”1.2.3.5 netmask 255.255.255.255″
ifconfig_fxp0_alias1=”1.2.3.6 netmask 255.255.255.255″
ifconfig_fxp0_alias2=”1.2.3.7 netmask 255.255.255.255″[/code]

Restart networking:

[code lang=”bash”]/etc/rc.d/netif restart && /etc/rc.d/routing restart[/code]