Hi,

> I have read the current Debian networking docs on the subject 
> (https://wiki.debian.org/NetworkConfiguration#iproute2_method).
> I want to use at least two IPv4 static addresses on the same physical NIC. 

[..]

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
  address 192.168.0.17
  netmask 255.255.255.0
  gateway 192.168.0.1
  dns-nameservers 208.67.222.222   208.67.220.220

  # add new IPv4 devices
  up     ip addr add 192.168.0.18/24 dev eth0
  down ip addr del  192.168.0.18/24 dev eth0

  up     ip addr add 192.168.0.19/24 dev eth0
  down ip addr del  192.168.0.19/24 dev eth0

This way eth0 will have 3 addresses, you don’t need the special labels or the 
$IFACE is only used in some scripts AFAIK.
You might want to include the broadcast address but I think that is still in my 
config due to an old bug in previous version.
I have lines like:
   up ip addr add 217.114.99.213/27 broadcast 217.114.99.223 dev eth3
on my firewall server where I have multiple addresses on the external interface 
to connect to multiple services.

However... you also talk about your server being multi-homed in your subject, 
multi-homed means something else than just having multiple ip addresses in the 
same network on the same interface.
What are you trying to achieve?

Bonno Bloksma

Reply via email to