|Front | Info | Lists | Newsfeeds | Study Guide | What is BSD?|
This is the BSDA Study Guide Book written via a wiki collaboration. This is a work in progress. You may contribute to or discuss this specific page at http://bsdwiki.reedmedia.net/wiki/Recognize_when_and_how_to_set_or_remove_an_interface_alias.html.
Recognize when and how to set or remove an interface alias
Recognize when it is appropriate to set or remove an interface alias and the available commands on each of the BSDs.
Multiple IP addresses can be assigned to a network interface using the
Interface aliases are useful for doing virtual hosting , changing network addresses, or for accepting packets for old interfaces.
TODO: Note: do not use "down" for an alias as it takes the entire interface down.
TODO: mention setting up route? examples? what systems need that route done also?
Set an interface alias:
Add to /etc/rc.conf (FreeBSD):
Remove an interface alias:
Remove the line from rc.conf
ifconfig(8), rc.conf(5), ifaliases(5), hostname.if(5)