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]

2 Comments

  • Chris

    June 11, 2009

    What is that for?

  • admin

    June 11, 2009

    It’s for adding IP aliases in FreeBSD, as alluded to in the title.

Leave a Reply