LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-24-2014, 03:10 PM   #1
qabsou
LQ Newbie
 
Registered: Jun 2013
Posts: 15

Rep: Reputation: Disabled
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
 
Old 09-25-2014, 03:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-25-2014, 03:12 AM   #3
qabsou
LQ Newbie
 
Registered: Jun 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi,

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
 
Old 09-25-2014, 03:19 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-25-2014, 04:00 AM   #5
qabsou
LQ Newbie
 
Registered: Jun 2013
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi,

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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wireless LAN interface do not work after resume ben_whiteus Slackware 1 02-13-2014 07:37 AM
[SOLVED] Creating a VLAN interface on top of another VLAN interface jbbroccard2 Linux - Networking 1 05-22-2013 01:25 AM
eth1 interface does not work if eth0 is down harshalshete Linux - Networking 3 10-19-2011 06:14 AM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM
Help in Vlan-Interface Paris Heng Linux - Networking 1 03-02-2009 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration