2013/2/7 Rafał Miłecki <[email protected]>:
> The problem is that in failsafe my ethernet driver works fine (I can
> ping router and the other way), but in normal mode (with virtual
> interfaces) it stops working. My intention is to create all virtual
> interfaces manually, to see where exactly my eth driver fails.

OK, I've discovered something weird. First of all:
> # brctl show
> bridge name     bridge id               STP enabled     interfaces
> br-lan          8000.c83a3540c1a8       no              eth0.0

It seems there is something wrong with eth0.0. When I switch br-lan to
eth0 (from eth0.0) using:
> # brctl delif br-lan eth0.0
> # brctl addif br-lan eth0
Ethernet starts working!

Please see attached file for log with "ifconfig -a" calls.

Does anyone have any idea what may be wrong with that eth0.0
interface? Why using it for br-lan fails? Why swtiching br-lan to eth0
succeeds? I expected eth0.0 to work the same way as eth0.


There is one more tricky part. You may wonder what happens if I switch
br-lan back to eth0.0 (from eth0). Well pinging works again, but only
for a limited amount of time. Sometimes I can't see even one
"ping-pong" and sometimes it keeps working even for 20 seconds.
Anyway, after a moment it stops again. Repeating the whole scenario:
> brctl delif br-lan eth0.0
> brctl addif br-lan eth0
> brctl delif br-lan eth0
> brctl addif br-lan eth0.0
Makes pinging work again for few seconds.

-- 
Rafał
# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          inet addr:192.168.1.1  Bcast:192.168.1.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:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:486 (486.0 B)

eth0      Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

eth0.0    Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:486 (486.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3264 (3.1 KiB)  TX bytes:3264 (3.1 KiB)


# brctl delif br-lan eth0.0


[   33.972000] device eth0.0 left promiscuous mode
[   33.976000] device eth0 left promiscuous mode
[   33.984000] br-lan: port 1(eth0.0) entered disabled state

 
# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:948 (948.0 B)

eth0      Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

eth0.0    Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:948 (948.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:156 errors:0 dropped:0 overruns:0 frame:0
          TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11136 (10.8 KiB)  TX bytes:11136 (10.8 KiB)


# brctl addif br-lan eth0


[   44.464000] device eth0 entered promiscuous mode
[   44.468000] br-lan: port 1(eth0) entered forwarding state
[   44.476000] br-lan: port 1(eth0) entered forwarding state
*** PING STARTED WORKING HERE ***
[   46.480000] br-lan: port 1(eth0) entered forwarding state


# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2212 (2.1 KiB)  TX bytes:3580 (3.4 KiB)

eth0      Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

eth0.0    Link encap:Ethernet  HWaddr C8:3A:35:40:C1:A8  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:948 (948.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:405 errors:0 dropped:0 overruns:0 frame:0
          TX packets:405 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:28464 (27.7 KiB)  TX bytes:28464 (27.7 KiB)
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to