Mixing VLAN and LAN in same interface (eth0) do not work
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mixing VLAN and LAN in same interface (eth0) do not work
Hello,
I have a problem mixing vlan with lan in same interface eth0.
I connect two cpu's through a marvel switch, (and in one of the CPU i run linux 2.6.35.)
The connection between the cpu (10.0.1.10) works fine until
I enter the "vconfig add eth0 80" commando(in linux cpu) to define a vlan, then LAN communication i.e 10.0.1.10, stops to work.The VLAN definition is successful and VLAN works fine.
But the LAN do not work.If I remove the vlan the LAN works again.
Can someone explain this behavor.
Thanks
Not sure I really understand what you're trying to do here, you have two different machines connected to a dumb switch? If that's the case, then if one uses vlan tags and the other one does not, then that'd never work, unless the switch is equally aware on a per port basis.
Very easy, I have 2 cpu connected though a swicth(not a dumb switch).They can comunicate fine though ssh.
Now in the Linux cpu as soon as I enter the command "vconfig add eth0 80", the communication with the other cpu (ssh) stops to work.
I enter the command in order to define a vlan, and if I define the vlan (in both cpu) the vlan communication works fine.
But the ssh connection will not work, until again I remove the vlan in the linux cpu.Tehn ther ssh communication works again.
Resuming as soon as I enter the vconfig command (in linux cpu) the ssh communication stops
Right, to that's "server", not "CPU". If both switches are exceting 802.1q tags in ethernet frames AND the switch will pass them, then it should work. Is the tagged packet leaving the nic on one? Is it arriving on the other? tcpdump / wireshark is very useful for this kind of thing. what is "vlan communication" meaning here, if it's working without ssh working.
Some clarification,, if I define the vlan on the non linux server the ssh stays up.Thata is why I believe this is a linux issue.
Both have 802.1q, so the vlan works fine.I defined two vlan with different id and that works ok.
it looks like the ssh frames have tag =0 , (I can see it during ping) and I can see the arp request and the answer to it, but
the ping is failing.
Thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.