netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [Bugme-new] [Bug 4430] New: Virtual interfaces cannot have their own mtu
@ 2005-04-01 10:11 Andrew Morton
  2005-04-01 11:46 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2005-04-01 10:11 UTC (permalink / raw)
  To: netdev; +Cc: lukeross


hm, mtu is implemented in the device driver - you might be out of luck.


Begin forwarded message:

Date: Fri, 1 Apr 2005 02:01:19 -0800
From: bugme-daemon@osdl.org
To: bugme-new@lists.osdl.org
Subject: [Bugme-new] [Bug 4430] New: Virtual interfaces cannot have their own mtu


http://bugme.osdl.org/show_bug.cgi?id=4430

           Summary: Virtual interfaces cannot have their own mtu
    Kernel Version: kernel-2.6.9-1.6_FC2
            Status: NEW
          Severity: low
             Owner: acme@conectiva.com.br
         Submitter: lukeross@sys3175.co.uk


Distribution: Fedora Core 2,3
Hardware Environment: Broadcom gigabit card using tg3 (Tyan s2885 onboard)
Problem Description:

eth0 and eth0:1 cannot have different mtus. I have a jumbo-frame capable switch
with three devices plugged in. Two are PCs with jumbo-capable cards, the other
is a wireless router which isn't, and hangs if either PC attempts to discover
whether it can support jumbo frames.

To get the benefit of jumbo frames between the two PCs, I tried to set up eth0:1
- on a different subnet to the wireless router - on both PCs, and set the mtu of
the eth0:1 to 9000. However it is not possible to set the mtu for eth0:1 to 9000
without setting the mtu of eth0 to 9000 as well.

Also noted in http://xcat.org/pipermail/xcat-user/2003-April/002358.html

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fw: [Bugme-new] [Bug 4430] New: Virtual interfaces cannot have their own mtu
  2005-04-01 10:11 Fw: [Bugme-new] [Bug 4430] New: Virtual interfaces cannot have their own mtu Andrew Morton
@ 2005-04-01 11:46 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2005-04-01 11:46 UTC (permalink / raw)
  To: Andrew Morton; +Cc: netdev, lukeross

Andrew Morton <akpm@osdl.org> wrote:
>
> the eth0:1 to 9000. However it is not possible to set the mtu for eth0:1 to 9000
> without setting the mtu of eth0 to 9000 as well.

The solution is to set the mtu using ip route in addition to setting
it on eth0, e.g.,

ip ro add x.0.0.0/8 via gw dev eth0 mtu 1500 src a.b.c.d
ip ro add y.0.0.0/8 via gw2 dev eth0 mtu 9000 src e.f.g.h

You still have to set the mtu on eth0 to 9000 since that determines
the maximum receive size as well (MRU).
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-01 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01 10:11 Fw: [Bugme-new] [Bug 4430] New: Virtual interfaces cannot have their own mtu Andrew Morton
2005-04-01 11:46 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).