Topology
192.168.2.1 /24 192.168.2.2
+-----------------------------------------+
| normal straight through cable |
| +-------------+ +-----------+ |
| | AX88179 | | I219-V | |
+-+ enp0s20f0u2 +-USB-820g3-+ enp0s31f6 +-+
| MDI | | MDI-X |
+-------------+ +-----------+
Laptop model
$ sudo dmidecode | grep -i hp
Product Name: HP EliteBook 820 G3
USB to Ethernet Controller
$ lsusb | grep -i eth
Bus 002 Device 006: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
$ su -
# ethtool -i enp0s20f0u2
driver: ax88179_178a
version: 5.12.2-arch1-1
firmware-version:
expansion-rom-version:
bus-info: 2-2:1.0
supports-statistics: no
supports-test: no
supports-eeprom-access: yes
supports-register-dump: no
supports-priv-flags: no
Ethernet port
$ lspci | grep -i eth
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection I219-V (rev 21)
$ su -
# ethtool -i enp0s31f6
driver: e1000e
version: 5.12.2-arch1-1
firmware-version: 0.13-4
expansion-rom-version:
bus-info: 0000:00:1f.6
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
Escalate
su -
Put AX88179 to force MDI (straight through) mode and set it to 192.168.2.1/24
sleep 1; ip link set enp0s20f0u2 down
sleep 1; ip addr flush enp0s20f0u2
sleep 1; ethtool -s enp0s20f0u2 mdix off
sleep 1; ip addr add 192.168.2.1/24 dev enp0s20f0u2
sleep 1; ip link set enp0s20f0u2 up
Put I219-V to force MDI-X (crossover) mode and set it to 192.168.2.2/24
sleep 1; ip link set enp0s31f6 down
sleep 1; ip addr flush enp0s31f6
sleep 1; ethtool -s enp0s31f6 mdix on
sleep 1; ip addr add 192.168.2.2/24 dev enp0s31f6
sleep 1; ip link set enp0s31f6 up
ethtool enp0s20f0u2 (AX88179)
Settings for enp0s20f0u2:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 3
Transceiver: internal
Supports Wake-on: pg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
ethtool enp0s31f6 (I219-V)
Settings for enp0s31f6:
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
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
MDI-X: on (forced)
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Ping
# L -> R
ping -I enp0s20f0u2 192.168.2.2
# R -> L
ping -I enp0s31f6 192.168.2.1
Timeout
User contributions licensed under CC BY-SA 3.0