Issue
I want to have my eth0 management port use VLAN tagging. How do I configure this?
Environment
- Cumulus Linux 2.0.x
- Cumulus Linux 2.1.x
- Cumulus Linux 2.2.x
- Cumulus Linux 2.5.x
Resolution
Configure a VLAN subinterface for eth0 in /etc/network/interfaces
. Do one of the following:
-
If eth0 is configured with DHCP, use something similar for the second stanza below:
auto eth0 iface eth0 auto eth0.TAG iface eth0.TAG dhcp
Where
TAG
is the VLAN tag number. -
If eth0 is configured with a static IP address, use something similar for the second stanza below:
auto eth0 iface eth0 auto eth0.TAG iface eth0.TAG address specify.some.address.here/mask
Where
TAG
is the tag number and the address line contains the static IP address and netmask for eth0.
Comments