mashie
Posts: 3
Joined: Sat Feb 11, 2012 3:01 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 3:34 pm

I was thinking of using the RPi as a very cheap and portable TFTP server. However for that to work it has to be able to communicate over an 802.1Q trunk, will that be supported by the hardware?

drgeoff
Posts: 9379
Joined: Wed Jan 25, 2012 6:39 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 4:24 pm

mashie said:


I was thinking of using the RPi as a very cheap and portable TFTP server. However for that to work it has to be able to communicate over an 802.1Q trunk, will that be supported by the hardware?


If by TFTP you mean what is described at  http://en.wikipedia.org/wiki/T.....r_Protocol I haven't understood the requirement for 802.1Q (VLAN tagging)  http://en.wikipedia.org/wiki/IEEE_802.1Q.

emg
Posts: 88
Joined: Wed Jan 11, 2012 11:01 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 5:34 pm

From the nature of the question, it looks like he wants to use the RPi to host firmware for VOIP phones booting? There is no intrinsic relationship between the TFTP protocol and VLAN tagging...

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22742
Joined: Sat Jul 30, 2011 7:41 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 6:26 pm

If you have a compatible dongle that supports 802.1Q, why not?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

drgeoff
Posts: 9379
Joined: Wed Jan 25, 2012 6:39 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 6:42 pm

JamesH said:


If you have a compatible dongle that supports 802.1Q, why not?


The OP seems to be asking (though I don't know why) if the onboard ethernet hardware supports 802.1Q.

SeanD
Posts: 121
Joined: Wed Sep 21, 2011 12:25 am
Contact: Website

Re: 802.1Q VLAN support

Sat Feb 11, 2012 7:45 pm

drgeoff said:


JamesH said:


If you have a compatible dongle that supports 802.1Q, why not?


The OP seems to be asking (though I don't know why) if the onboard ethernet hardware supports 802.1Q.


I have vague recollections from some work I saw on VOIP systems that they utilise VLAns extensively to zone the systems.  Presumably the OP would need the NIC in the RPi to support 802.1Q so that the TFTP server can be targeted at specific switches/handsets and other VOIP/Telephony system components.

Hairlocks
Posts: 38
Joined: Sat Feb 11, 2012 9:35 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 9:54 pm

to answer the OP, Looking at the linux smsc95xx driver it seems to support vLAN tagging.
http://lxr.free-electrons.com/.....smsc95xx.c

mashie
Posts: 3
Joined: Sat Feb 11, 2012 3:01 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 10:43 pm

Hairlocks said:


to answer the OP, Looking at the linux smsc95xx driver it seems to support vLAN tagging.
http://lxr.free-electrons.com/.....smsc95xx.c



Thanks, should work just fine then.

This is not to be used for VOIP but software upgrades of some old carrier grade ethernet switches that run VLAN tagging on all ports. I can use a normal PC for this but if I simply can use a device that can be sent in an envelop it would make life a lot easier.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22742
Joined: Sat Jul 30, 2011 7:41 pm

Re: 802.1Q VLAN support

Sat Feb 11, 2012 11:45 pm

drgeoff said:


JamesH said:


If you have a compatible dongle that supports 802.1Q, why not?


The OP seems to be asking (though I don't know why) if the onboard ethernet hardware supports 802.1Q.


For some inexplicable reason I thought 802.1Q was a wireless protocol. Apologies. I don't know if the onboard ethernet supports it, but it does look like some other posters have more information than I do.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

emg
Posts: 88
Joined: Wed Jan 11, 2012 11:01 pm

Re: 802.1Q VLAN support

Sun Feb 12, 2012 12:56 am

SeanD said:




//

//
I have vague recollections from some work I saw on VOIP systems that they utilise VLAns extensively to zone the systems.  Presumably the OP would need the NIC in the RPi to support 802.1Q so that the TFTP server can be targeted at specific switches/handsets and other VOIP/Telephony system components.


//

Yep. Many IP phones use a combination of DHCP off the default VLAN to get pointed to a separate VOIP VLAN to pick up their config and to isolate them and provide QOS for VOIP when running switches with converged data/voice traffic.

thogue
Posts: 131
Joined: Wed Sep 19, 2012 2:16 am

Re: 802.1Q VLAN support

Wed Sep 19, 2012 6:00 pm

Just wanted to report that 801.1q seems to work great and I thought I would leave the steps here so people do not have to search around.


3 months ago~ vlan support was added to the kernel config so if you are having issues first thing todo would be to update. ( https://github.com/raspberrypi/firmware/issues/60 )

apt-get intall vlan
modprobe 8021q ( i didnt add it to /etc/modules so I am not sure if this is required in the end as this modules persists to load after reboot)

and then setup my interface ( /etc/network/interfaces)

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp
auto eth0.69
iface eth0.69 inet static
        address 192.168.69.3
        netmask 255.255.255.0
   #    network 10.10.10.0
  #     broadcast 10.10.10.255
        vlan_raw_device eth0
This has proved great for accessing the raspberrypi when there are dhcp issues/or the ip address of dhcp is unknown.

Return to “General discussion”