Labels

Monday, August 19, 2013

Ponderings on vlans

I was experimenting with VLANs on the RPi over the weekend.  So far, I learned that you can implement a tagged VLAN in the 802.1q sense by installing the vlan library and adding the 8021q loaded modules to /etc/modules.  Lots of good hints here (thanks, San Bergmans).

sudo apt-get update
sudo apt-get install vlan
sudo modprobe 8021q
sudo su
sudo echo "8021q" >> /etc/modules 
exit

I also plugged in a USB to Ethernet adapter into the powered Hub on my RPi and started adding vlan ports to the /etc/network/interfaces file.  I am not sure how this will play out on the setup that I am using.  I do have to reset the managed router to access the new vlans on a port that the vlans will access.  I also need to make sure that my /etc/network/interfaces file has the correct mac address for the adapter so that it will come up as eth1 when it is plugged in.

I really didn't get too much of a chance to try it out because of other commitments and I was moving all of my media circuits to a separate vlan through the house.  I grabbed the router that I was using for connecting the RPis to the external FIOS network to reuse for the media vlan.  I first setup the router with a different subnet, connected it to the outside circuit, then proceeded to reset all of the media components to the new vlan.  Finally, I plugged the LAN part of the router into a managed switch on the new vlan and rebooted all of the media elements.  The only problem that I had was resetting the Ceton Echo to authenticate to my Windows Media Center at its new IP.

I am anxious to get back to the house tonight to tryout my connections to the other vlans within the house.  More later.