ich habe eine VMware VM einer Debian Jessie 8.7, bei der ich für die zweite NIC eth1 keine feste IP eingestellt bekomme. Die VM hat zwei Netzwerkkarten zugeteilt, die erste ist Host-only und nur für die interne Kommunikation und die zweite soll als Bridged den Zugriff aus dem Netzwerk erlauben.
eth0 hat eine feste IP, die "ip addr show eth0" auch anzeigt.
eth1 soll auch eine feste IP bekommen, "ip addr show eth1" zeigt aber überhaupt keine an. Erst nach der Umstellung auf DHCP für eth1, wird mir auch die IP angezeigt. Natürlich ist "service networing restart" berücksichtigt.
Code: Alles auswählen
# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# Host-only for communcation with DMS
allow-hotplug eth0
iface eth0 inet static
address 172.32.15.200
netmask 255.255.255.0
#Your static network configuration
allow-hotplug eth1
### static auskommentiert
#iface eth1 inet static
#address 10.42.0.25
#netmask 255.255.253.0
#gateway 10.42.0.254
### dhcp aktiviert
iface eth1 inet dhcp
# ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:b0:5d:72 brd ff:ff:ff:ff:ff:ff
inet 172.32.15.200/24 brd 172.32.15.255 scope global eth0
valid_lft forever preferred_lft forever
### wenn dhcp für eth1 aktiviert ist
# ip addr show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:b0:5d:7c brd ff:ff:ff:ff:ff:ff
inet 10.42.2.186/22 brd 10.42.3.255 scope global eth1
valid_lft forever preferred_lft forever
### wenn static für eth1 aktiviert ist, wird keine IP angezeigt
# ip addr show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:b0:5d:7c brd ff:ff:ff:ff:ff:ff
Gruß,
Peter