Hi, Dan. Thanks for your reply.
On 17/01/16 09:56, Dan Ritter wrote: >> In fact, I tested it with a new TP-Link card with the same Realtek >> chipset and I have observed the same behavior. >> >> Any idea what could be the problem? > Disable autonegotiation on both sides; set it to full duplex > 100. > > If the behavior persists, replace the cable. I was reviewing on the CLI as through the web access if the router (Zyxel P-660R-T1v3) allows to disable the negotiation of the LAN interface, but I found nothing. So I tried the other suggestion, that it was changing the cable, but no change in behavior. I did some other tests with my notebook: a) notebook (orion) <---> firewall (alderamin) b) notebook (orion) <---> router Case a: notebook (orion) <---> firewall (alderamin) ---------------------------------------------------- root@orion:~# ethtool -s eth0 speed 100 duplex full autoneg on root@orion:~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: Unknown! Duplex: Unknown! (255) Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: Unknown (auto) Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: no root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:8050 errors:162 dropped:0 overruns:0 frame:105 TX packets:5137 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4112009 (3.9 MiB) TX bytes:674943 (659.1 KiB) Interrupt:20 Memory:f2500000-f2520000 root@orion:~# ip addr add 192.168.1.1 dev eth0 root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:8050 errors:162 dropped:0 overruns:0 frame:105 TX packets:5137 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4112009 (3.9 MiB) TX bytes:674943 (659.1 KiB) Interrupt:20 Memory:f2500000-f2520000 root@alderamin:~# ifconfig eth1 eth1 Link encap:Ethernet HWaddr c4:e9:84:01:0e:4d inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::c6e9:84ff:fe01:e4d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:359625 errors:151 dropped:0 overruns:48 frame:0 TX packets:326791 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:297907826 (284.1 MiB) TX bytes:45096052 (43.0 MiB) root@alderamin:~# ethtool -s eth1 speed 100 duplex full autoneg on root@alderamin:~# ethtool eth1 Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 10Mb/s Duplex: Half Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: no root@alderamin:~# ping -c5 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. --- 192.168.1.1 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4010ms It seems that here the connection notebook <---> firewall has not worked with auto-negotiation on both sides. Now I try to disable the negotiation on both ends: root@orion:~# ethtool -s eth0 speed 100 duplex full autoneg off root@orion:~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: off MDI-X: on (auto) Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@alderamin:~# ethtool -s eth1 speed 100 duplex full autoneg off Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: off Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@orion:~# ip addr add 192.168.1.1/24 dev eth0 root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10110 errors:162 dropped:0 overruns:0 frame:105 TX packets:5283 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4366052 (4.1 MiB) TX bytes:697362 (681.0 KiB) Interrupt:20 Memory:f2500000-f2520000 root@alderamin:~# ping -c5 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.382 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.264 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.396 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.427 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.348 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4000ms rtt min/avg/max/mdev = 0.264/0.363/0.427/0.058 ms In this way it seems to work. Again I try enabling the negotiation on both ends: root@alderamin:~# ethtool -s eth1 speed 100 duplex full autoneg on root@alderamin:~# ethtool eth1 Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 10Mb/s Duplex: Half Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@orion:~# ethtool -s eth0 speed 100 duplex full autoneg on root@orion:~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: on (auto) Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10904 errors:162 dropped:0 overruns:0 frame:105 TX packets:5371 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4468015 (4.2 MiB) TX bytes:707221 (690.6 KiB) Interrupt:20 Memory:f2500000-f2520000 root@orion:~# ip addr add 192.168.1.1/24 dev eth0 root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10919 errors:162 dropped:0 overruns:0 frame:105 TX packets:5385 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4469067 (4.2 MiB) TX bytes:709963 (693.3 KiB) Interrupt:20 Memory:f2500000-f2520000 root@alderamin:~# ping -c5 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.280 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.319 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.401 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.319 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.439 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3998ms rtt min/avg/max/mdev = 0.280/0.351/0.439/0.062 ms Now it seems to work. I try again disabling the negotiation: root@orion:~# ethtool -s eth0 speed 100 duplex full autoneg off root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11337 errors:162 dropped:0 overruns:0 frame:105 TX packets:5448 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4528130 (4.3 MiB) TX bytes:717866 (701.0 KiB) Interrupt:20 Memory:f2500000-f2520000 root@orion:~# ip addr add 192.168.1.1/24 dev eth0 root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11359 errors:162 dropped:0 overruns:0 frame:105 TX packets:5460 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4530155 (4.3 MiB) TX bytes:719996 (703.1 KiB) Interrupt:20 Memory:f2500000-f2520000 root@alderamin:~# ethtool -s eth1 speed 100 duplex full autoneg off root@alderamin:~# ethtool eth1 Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: off Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@alderamin:~# ping -c5 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.413 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.284 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.315 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.360 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.424 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3998ms rtt min/avg/max/mdev = 0.284/0.359/0.424/0.055 ms So now it seems to work with and without auto-negotiation. Case b: notebook (orion) <---> router -------------------------------------- root@orion:~# ethtool -s eth0 speed 100 duplex full autoneg on root@orion:~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: on (auto) Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4998 errors:15 dropped:0 overruns:0 frame:9 TX packets:2331 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:881732 (861.0 KiB) TX bytes:339856 (331.8 KiB) Interrupt:20 Memory:f2500000-f2520000 root@orion:~# dhclient eth0 Jan 17 15:17:42 orion avahi-daemon[690]: Registering new address record for 192.168.1.33 on eth0.IPv4. Jan 17 15:17:43 orion dhclient: bound to 192.168.1.33 -- renewal in 115563 seconds. root@orion:~# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=42.8 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=44.8 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=44.9 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=57 time=44.0 ms 64 bytes from 8.8.8.8: icmp_seq=5 ttl=57 time=43.0 ms ^C --- 8.8.8.8 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 42.842/43.934/44.915/0.920 ms Now I try notebook <---> router disabling auto-negotiation on the notebook (the only side that I can change): root@orion:~# ethtool -s eth0 speed 100 duplex full autoneg off root@orion:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 3c:97:0e:57:4a:89 inet6 addr: fe80::3e97:eff:fe57:4a89/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6873 errors:99 dropped:0 overruns:0 frame:55 TX packets:4038 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3049076 (2.9 MiB) TX bytes:512406 (500.3 KiB) Interrupt:20 Memory:f2500000-f2520000 root@orion:~# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: off MDI-X: on (auto) Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) drv probe link Link detected: yes root@orion:~# dhclient eth0 Jan 17 15:23:14 orion avahi-daemon[690]: Registering new address record for 192.168.1.33 on eth0.IPv4. Jan 17 15:23:15 orion dhclient: bound to 192.168.1.33 -- renewal in 125969 seconds. root@orion:~# ping -c5 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=44.5 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=43.0 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=42.9 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=57 time=43.9 ms 64 bytes from 8.8.8.8: icmp_seq=5 ttl=57 time=43.9 ms --- 8.8.8.8 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4004ms rtt min/avg/max/mdev = 42.981/43.682/44.537/0.598 ms That is, it seems that the communication notebook <---> router works well regardless of the type of negotiation on the notebook side. But when I reconnect the firewall to the router, I lose again the link, regardless of whether on the firewall is enabled or not the auto-negotiation. Best regards, Daniel
signature.asc
Description: OpenPGP digital signature