ich möchte einen Debian-Host, der eine einzige Netzwerkkarte besitzt in ein VLAN100 betreiben. Meine config sieht dabei so aus:
Code: Alles auswählen
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
network 192.168.0.111
# fuege VLAN100 auf eth0 hinzu mit statischer IP
auto eth0.100
iface eth0.100 inet static
address 172.16.100.123
netmask 255.255.255.0
network 172.16.100.0
gateway 172.16.100.1
Jedoch möchte ich auf eth0 (=vlan1) keine IP-Adresse betreiben müsen, da ich dort keine benötige. Also habe ich mal recherchiert und Debian's Network HowTo sagte dazu man könne ein Interface ohne IP hochbringen. Das habe ich probiert und meine config abgeändert auf:
Code: Alles auswählen
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down
# fuege VLAN100 auf eth0 hinzu mit statischer IP
auto eth0.100
iface eth0.100 inet static
address 172.16.100.123
netmask 255.255.255.0
network 172.16.100.0
gateway 172.16.100.1