How to Bind IP's to a FreeBSD Server

From Ubiquity Server Wiki

Revision as of 21:23, 7 April 2009 by 173.15.27.49 (Talk)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. Open your /etc/rc.conf file. ee /etc/rc.conf
  1. Find a line that looks similar to: ifconfig_fxp0="inet 1.2.3.4 netmask 255.255.255.248"
  1. Below that, place the following entries. Substitute fxp0 with the interface name that was in the line above. Substitute alias0 with the first available alias number not listed in the following. If you have 8 IPs, they will be 0-7. Be sure to use the correct subnet mask in place of X from your other IP assignments.
ifconfig_fxp0_alias0="inet 1.2.3.10 netmask 255.255.255.X"
  1. Then restart the network: /etc/rc.d/netif restart && /etc/rc.d/routing restart