[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-vlan
Subject: Re: [VLAN] known good eepro100.c anyone?
From: Krzysztof Adamski <k () adamski ! org>
Date: 2001-10-16 19:54:52
[Download RAW message or body]
You need to set the MTU to 1504 on the vlan interfaces.
K
On Tue, 16 Oct 2001, Doug Monroe wrote:
> Juan Pablo Abuyeres wrote:
> >
> > this patch should do it:
> >
> > --- linux-2.4.12/drivers/net/eepro100.c Sun Sep 30 15:26:08 2001
> > +++ linux-2.4.12-patched/drivers/net/eepro100.c Tue Oct 16 15:01:50 2001
> > @@ -505,12 +505,12 @@
> > static const char i82557_config_cmd[CONFIG_DATA_SIZE] = {
> > 22, 0x08, 0, 0, 0, 0, 0x32, 0x03, 1, /* 1=Use MII 0=Use AUI */
> > 0, 0x2E, 0, 0x60, 0,
> > - 0xf2, 0x48, 0, 0x40, 0xf2, 0x80, /* 0x40=Force full-duplex */
> > + 0xf2, 0x48, 0, 0x40, 0xfa, 0x80, /* 0x40=Force full-duplex */
> > 0x3f, 0x05, };
> > static const char i82558_config_cmd[CONFIG_DATA_SIZE] = {
> > 22, 0x08, 0, 1, 0, 0, 0x22, 0x03, 1, /* 1=Use MII 0=Use AUI */
> > 0, 0x2E, 0, 0x60, 0x08, 0x88,
> > - 0x68, 0, 0x40, 0xf2, 0x84, /* Disable FC */
> > + 0x68, 0, 0x40, 0xfa, 0x84, /* Disable FC */
> > 0x31, 0x05, };
> >
> > /* PHY media interface chips. */
>
> many thanks.
> I applied this eepro100.c patch with vlan release 1.14 on linux-2.4.12 but
> pings greater than 1468 bytes fail to all VLAN interfaces while pings of any
> size are ok to untagged interfaces.
> I'm so close I can taste it...anyone have any insight to add or tests I can
> run to diagnose??
> Thanks
> Doug Monroe
>
> FWIW-
>
> created vlans using
> # ifconfig eth1 down
> # ifconfig eth1 192.168.1.254 up
> # vconfig add eth1 2
> # ifconfig eth1.2 192.168.2.254 up
> # vconfig add eth1 3
> # ifconfig eth1.3 192.168.3.254 up
> # vconfig add eth1 4
> # ifconfig eth1.4 192.168.4.254 up
>
> $ ls /proc/net/vlan
> config eth1.2 eth1.3 eth1.4
>
> $ mii-tool
> eth0: negotiated 100baseTx-HD, link ok
> eth1: negotiated 100baseTx-FD, link ok
>
> $ ifconfig -a
> eth1 Link encap:Ethernet HWaddr 00:02:B3:65:C4:47
> inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:127230 errors:0 dropped:0 overruns:0 frame:0
> TX packets:119458 errors:0 dropped:0 overruns:4 carrier:0
> collisions:0 txqueuelen:100
> Interrupt:5 Base address:0x2000
>
> eth1.2 Link encap:Ethernet HWaddr 00:02:B3:65:C4:47
> inet addr:192.168.2.254 Bcast:192.168.2.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:12387 errors:0 dropped:0 overruns:0 frame:0
> TX packets:12150 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
>
> eth1.3 Link encap:Ethernet HWaddr 00:02:B3:65:C4:47
> inet addr:192.168.3.254 Bcast:192.168.3.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
>
> eth1.4 Link encap:Ethernet HWaddr 00:02:B3:65:C4:47
> inet addr:192.168.4.254 Bcast:192.168.4.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> _______________________________________________
> VLAN mailing list - VLAN@Scry.WANfear.com
> http://www.WANfear.com/mailman/listinfo/vlan
> VLAN Page: http://scry.wanfear.com/~greear/vlan.html
>
_______________________________________________
VLAN mailing list - VLAN@Scry.WANfear.com
http://www.WANfear.com/mailman/listinfo/vlan
VLAN Page: http://scry.wanfear.com/~greear/vlan.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic