Pages: [1]   Go Down
Author Topic: VLAN tagging  (Read 952 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can it be done with the Ethernet Sheild and associated Library?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49365
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can it be done with the Ethernet Sheild and associated Library?
Depends on what "it" is, which ethernet shield, and which library you are talking about.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino Ethernet Sheild and the Ethernet Library.

http://arduino.cc/en/Main/ArduinoEthernetShield
Logged

Southern California
Offline Offline
God Member
*****
Karma: 5
Posts: 539
I like blinky lights
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It's not something built in to any library I know. You'd have to write your own low-level, raw Ethernet frames.
Logged

http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

Louisville, CO
Offline Offline
Full Member
***
Karma: 2
Posts: 174
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What’s the problem you’re trying to solve?
Logged

/felis

Offline Offline
Newbie
*
Karma: 1
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to implement vlan tagging?
Logged

Southern California
Offline Offline
God Member
*****
Karma: 5
Posts: 539
I like blinky lights
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Basically you're going to need to tell your router/switch that the Arduino's Ethernet port is a trunk port (or does trunk autosensing), then you're going to need to manually write your Ethernet frames to have an 802.1Q header before the Ethernet Type field:

http://en.wikipedia.org/wiki/IEEE_802.1Q

and when you receive packets you'll need to manually decode the frames to pull out the vlan tags.

I don't think you'd be able to use the regular Ethernet library to do any of this; you'd have to write your own interface to the WS5100. I looked through the WS5100.cpp and .h files and didn't see anything about raw frames so I'm not sure it's even possible, but I didn't dig that deep so may have easily missed something.

In any event given the huge RAM etc. limitations on an Arduino I can't think of why this would be a good idea to try other than "because I can", but please let us know if you pull it off -- it would be very impressive.

Good luck!
Logged

http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

Pages: [1]   Go Up
Jump to: