Bis jetzt sah meine "/etc/network/interfaces" so aus:
Code: Alles auswählen
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
Nun möchte ich meiner ersten Netzwerkkarte (eth0) mehrere IP-Adressen zuweisen.
Meine "/etc/network/interfaces" habe ich so geändert:
Code: Alles auswählen
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0:0
auto eth0:1
auto eth0:2
auto eth0:3
auto eth0:4
iface eth0:0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
iface eth0:1 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
iface eth0:2 inet static
address 192.168.0.3
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
iface eth0:3 inet static
address 192.168.0.4
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
iface eth0:4 inet static
address 192.168.0.5
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
Auch die Angabe
Code: Alles auswählen
auto eth0
Code: Alles auswählen
auto eth0:0
auto eth0:1
auto eth0:2
auto eth0:3
auto eth0:4
Hat jemand eine Idee?
Vielen Dank für Eure Mühe.
Gruß,
Thilo