Multiple IP's on one ethernet port
Multi-home hosts are possible, make sure that the kernel has "IP: aliasing support" built in. It appears as if you need at least one device named, for example,
. If you define, say, an
then ifconfig won't show them, but if one of them is
then both show up OK.
Network configuration in
iface eth0:1 inet static
For some reason pump doesn't like the
aliases so if you're using dhcp then it has to be on
For more info see http://www.tldp.org/HOWTO/mini/IP-Alias/index.html
: use short name on Debian, fqdn on centos: http://serverfault.com/questions/331936/setting-the-hostname-fqdn-or-short-name
Tests After Setting Up a New Box
$ hostname --fqdn
$ python -c "import socket; print socket.gethostname()"
$ python -c "import socket; print socket.gethostbyaddr('<output from previous command>')"
If these aren't what's expected the problem is probably in either
Copyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback