I'm setting up a GNS3 lab at work on Ubuntu Server 12.04 x64. I have a few questions on how the dot1q module works along with the /etc/network/interfaces file.
What I'm trying to accomplish:
- The trunk interface and all it's sub interfaces (eth6) should not have an IP - just a layer 2 interface.
- The interface i use for SSH (eth2) to connect to the box shouldn't be trunking.
- The MTU on the trunk interface should be 1536. This gives me enough overhead to do qinq.
The problem I'm having is that when using 'inet static' in /etc/network/interfaces it doesn't seem to like that I'm not specifying an IP address. Yes, I could always set this use a 127.0.0.8/8 address but I'm trying to keep it a layer 2 only interface if possible. Also, the MTU size doesn't seem to stick, but I'm pretty sure this is because it errors out when there is no ip assigned. As for the dot1q module, it is only loaded when I speficy a sub interface, correct? For example, I have an eth6.99 interface that should be trunking but I don't want eth2 to be doing so.
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth2 inet dhcp
#Trunk interface to Lab Switches
iface eth6 inet static
#VLAN 99 on eth6
iface eth6.99 inet static
#/etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
#Load 802.1q module for breakout switch