The Caboteria / Tech Web / DebianNetworking (28 Oct 2014, TobyCabot)
(other DebianTips)

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, ethX. If you define, say, an ethX:0 and and ethX:1 then ifconfig won't show them, but if one of them is ethX then both show up OK.

Network configuration in /etc/network/interfaces:

iface eth0:1 inet static

For some reason pump doesn't like the :0 aliases so if you're using dhcp then it has to be on ethX.

For more info see

/etc/hostname: use short name on Debian, fqdn on centos:

Tests After Setting Up a New Box

$ hostname
$ hostname --fqdn
$ dnsdomainname
$ 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 /etc/hostname or /etc/hosts.

Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
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