VLAN without an alias?

Felipe Alfaro Solana felipe.alfaro at gmail.com
Thu Sep 21 04:20:19 UTC 2006


> In my case, I need all vlan traffic tagged on eth0 on the host because
> it shares a switch with other VMs that already have their traffic
> tagged. To treat one port differently would mean an exception, and I
> like to avoid those.
>
> Can Ubuntu tag all traffic on eth0?

Yes, it can:

# vconfig add eth0 12
# ifconfig eth0.12 192.168.1.1 255.255.255.0

And I keep asking: do you want to tag all traffic on eth0 using the
same VLAN ID? Do you connect eth0 to a real switch? If you answer yes
to both questions, tag the Ethernet frames at the switch.

PD: AFAIK, RHEL tags Ethernet traffic using subinterfaces, like eth0.1
or eth0.12 so, yes, AFAIK, RHEL also uses subinterfaces since this is
a feature of the kernel itself and not of the distribution.




More information about the ubuntu-users mailing list