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 aliasConceptRecognize when it is appropriate to set or remove an interface alias and the available commands on each of the BSDs. IntroductionMultiple 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? ExamplesSet an interface alias:
OR
Add to /etc/rc.conf (FreeBSD):
Remove an interface alias:
Remove the line from rc.conf Practice ExercisesMore informationifconfig(8), rc.conf(5), ifaliases(5), hostname.if(5)
|