View previous topic :: View next topic |
Author |
Message |
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Sun Dec 03, 2006 5:08 am Post subject: vlan trunking problem [solved] |
|
|
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 |
|
|
Jeremy_Z l33t
Joined: 05 Apr 2004 Posts: 671 Location: Shanghai
|
Posted: Sun Dec 03, 2006 7:45 am Post subject: |
|
|
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 |
|
|
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Sun Dec 03, 2006 10:36 am Post subject: |
|
|
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 |
|
|
Jeremy_Z l33t
Joined: 05 Apr 2004 Posts: 671 Location: Shanghai
|
Posted: Sun Dec 03, 2006 2:01 pm Post subject: |
|
|
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 |
|
|
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Sun Dec 03, 2006 8:00 pm Post subject: |
|
|
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 |
|
|
Jeremy_Z l33t
Joined: 05 Apr 2004 Posts: 671 Location: Shanghai
|
|
Back to top |
|
|
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Mon Dec 04, 2006 3:59 am Post subject: |
|
|
Set MTU to 1496 on both vlan interfaces on my linux router and it works perfect!
Clients can have default MTU now
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 |
|
|
|