FreeBSD: Add/remove an additional IP alias How to add an additional IP address to a network card in FreeBSD
How to add an additional IP address to a network card in FreeBSD
Note the word alias on the end of the command. If it’s not there, this command will replace the current IP address with the one that we intend to add. In this tutorial as network adapter I use dc0 (# DEC/Intel 21143 and various workalikes). You will need to use whatever suits your needs.
$ ifconfig dc0 inet 192.168.0.100 netmask 255.255.255.255 alias
To have this IP alias loaded after reboot, edit and add the following line to /etc/rc.conf file:
The subnet mask is correct when the new IP address is on the same subnet as the primary IP address. Only one IP per subnet on an adapter should have a real subnet mask other than 255.255.255.255.
Removing an IP alias from a network card in FreeBSD
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.