How to add a range of IPs on a BSD box.

FreeBSD is a popular free Unix like open source operating system that is based on the Berkeley Software Distribution (BSD) version of the Unix operating system. FreeBSD runs only on the Intel PC platform (i386 and higher) having atleast Pentium processor and also on amd64, Alpha/AXP, IA-64, PC-98 and UltraSPARC processors. You can consider FreeBSD as an alternative to Linux which will run Linux applications. Its said that its fast, stable, and is appropriate for Internet server or as a file server. FreeBSD supports all major X Window desktops, such as KDE and GNOME.

If you want to add Dedicated IPs on server having FreeBSD you need to follow following instructions.
First login to your FreeBSD server as a ‘non-root’ user. You should have an account in the ‘
wheel’ group. Once you logged in your server just run the following commands to switch users to ‘root’

su -

you will get command prompt as ‘#’ which indicates that you are operating server as ‘root’ user. Now run following commands as root :
ee /etc/rc.conf

now for example, if we want to add 4 IPs for your server [ - ] you need to implement following :
ifconfig_fxp0=”inet netmask
ifconfig_fxp0_alias0=”inet netmask
ifconfig_fxp0_alias1=”inet netmask
ifconfig_fxp0_alias2=”inet netmask
ifconfig_fxp0_alias3=”inet netmask

Note that changes to the _aliasNN and also the netmask changes to from The IP’s will not work unless you use a netmask for the alias IP’s.

Once you added the entries to your file you need to press ‘ESC’ and have to save this file. You need to reboot the server so that all new IP’s would get bounded with your server and you can use them.
You have other option too, you can also use 
ifconfig command for adding IP’s on your server, in this case you don’t have to reboot your server. You can also add extra Dedicated IPs if you have WHM/cPanel control panel with your server. just login to your WHM account and add new Dedicated IP using WHM >> Add a new IP

  • 0 Users Found This Useful
Was this answer helpful?

Also Read

How To Change Your Account Details

Your Account is how you control your domains, servers and all of the services that...

How to trap cPanel ( WHM ) Password Modification

If your account is hosted on Linux hosting server then most webhosting service provider will...

Password protecting a directory with Apache and .htaccess

The Apache web server can read .htaccess files located anywhere in your document root to perform...

How to trap cPanel ( WHM ) Password Modification

Monitoring PowerDNS is easy with MRTG, just install these two packages and create a config file...