Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vlan trunking problem [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Sun Dec 03, 2006 5:08 am    Post subject: vlan trunking problem [solved] Reply with quote

I currently have my linux router trunking 2 vlans (one for my internal network and one for my isolated wireless network). Everything works perfectly except when I try to upload something.

I can download at 2.0Mbps (fios is great), but trying to scp a file or do anything that needs upload bandwidth, the connection stalls. In fact, I could not even post this without placing my port on the external vlan on my cisco switch.

Here are my vlan configs

/proc/net/vlan/config:

Code:
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan200        | 200  | eth1
vlan300        | 300  | eth1


/proc/net/vlan/vlan200

Code:
vlan200  VID: 200        REORDER_HDR: 1  dev->priv_flags: 1
         total frames received:         2283
          total bytes received:       251497
      Broadcast/Multicast Rcvd:            0

      total frames transmitted:         2382
       total bytes transmitted:      2884983
            total headroom inc:            0
           total encap on xmit:         2382
Device: eth1
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings:


/proc/net/vlan/vlan300

Code:
vlan300  VID: 300        REORDER_HDR: 1  dev->priv_flags: 1
         total frames received:        25638
          total bytes received:      1743383
      Broadcast/Multicast Rcvd:          660

      total frames transmitted:        47329
       total bytes transmitted:     50111248
            total headroom inc:            0
           total encap on xmit:        47329
Device: eth1
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings:


Is this some type of MTU issue?

Thanks,

Ryan
_________________
Sacrifice:::Your role may be thankless, but if you're willing to give it your all, you just might bring success to those who outlast you.


Last edited by redbeardmcg on Mon Dec 04, 2006 4:02 am; edited 2 times in total
Back to top
View user's profile Send private message
Jeremy_Z
l33t
l33t


Joined: 05 Apr 2004
Posts: 671
Location: Shanghai

PostPosted: Sun Dec 03, 2006 7:45 am    Post subject: Reply with quote

My first guess is : MTU, VLAN requires extra info per packets, if your MTU is not set properly you will have this kind breakage.
Quick fix is : reduce MTU on your client.
_________________
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Sun Dec 03, 2006 10:36 am    Post subject: Reply with quote

Is that something I can do at the switch level, or does it have to be done on each client? What should I set it to?

Thanks again
_________________
Sacrifice:::Your role may be thankless, but if you're willing to give it your all, you just might bring success to those who outlast you.
Back to top
View user's profile Send private message
Jeremy_Z
l33t
l33t


Joined: 05 Apr 2004
Posts: 671
Location: Shanghai

PostPosted: Sun Dec 03, 2006 2:01 pm    Post subject: Reply with quote

This could be done on the switch, reduce the MTU on your vlans devices (ethX.Y) to 1496 (1500-4).
I did not test it but AFAIK it should work as long you do not block ICMP messages on the switch which would prevent MTU dsicovery.
_________________
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Sun Dec 03, 2006 8:00 pm    Post subject: Reply with quote

My Cisco switch can only increase the MTU (lowest is 1500) so I did it on my workstation (set it to 1496) and it is somewhat better. I can update my portage cache, and do simple things, but it is still really slow.

Should I also change the MTU on the vlan interfaces of my router, or should this be done only on the clients?

Thanks again
_________________
Sacrifice:::Your role may be thankless, but if you're willing to give it your all, you just might bring success to those who outlast you.
Back to top
View user's profile Send private message
Jeremy_Z
l33t
l33t


Joined: 05 Apr 2004
Posts: 671
Location: Shanghai

PostPosted: Mon Dec 04, 2006 1:58 am    Post subject: Reply with quote

Yes you should do it on your router for ethX.Y devices.
_________________
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Back to top
View user's profile Send private message
redbeardmcg
Apprentice
Apprentice


Joined: 12 Mar 2006
Posts: 171
Location: Suburbia Massachusetts

PostPosted: Mon Dec 04, 2006 3:59 am    Post subject: Reply with quote

Set MTU to 1496 on both vlan interfaces on my linux router and it works perfect!

Clients can have default MTU now :D

Thanks again,

Ryan
_________________
Sacrifice:::Your role may be thankless, but if you're willing to give it your all, you just might bring success to those who outlast you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum