Your /e/n/interfaces does not match that description...
> auto eth1
> iface eth1 inet static
> address 192.168.10.254
> broadcast 192.168.10.255
> netmask 255.255.255.0
> up /etc/network/if-up.d/iptables
This configures an untagged connection, which is not the same as vlan 1.
Also, there's no need to set that broadcast address manually, it's inferred
from the netmask.
> auto eth1.2
> iface eth1.2 inet static
> address 192.168.100.254
> netmask 255.255.255.0
> vlan-raw-device eth1
>
>
> I want vlan 1 to be the default hence I decared it as eth1 not eth1.1
That is most likely wrong. You set a "default interface" by configuring
the default gateway with the lowest metric. Other than that, there's no
"default" between network interfaces.
> Whats the correct way to do this please?
I would expect you only configure eth1.1 and eth1.2, and leave eth1
itself unconfigured. Or perhaps, if that configuration confuses
ifupdown:
iface eth1 inet manual
up ip link set eth1 up
Regards,
Arno
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/DUB130-W4309EA24D...@phx.gbl