Sgt.Foose Posted March 21, 2022 Share Posted March 21, 2022 My Pineapple seems to prefers "default 172.16.42.42" over my USB Ethernet Adapter for connecting to the Internet after I used the Recovery Procedure using a static IP on the USB-C Ethernet port. Link to comment Share on other sites More sharing options...
dark_pyrro Posted March 21, 2022 Share Posted March 21, 2022 Check/changing the routing table and metrics perhaps. The USB Type A Ethernet adapter will not be the prioritized adapter in terms of network access. The routing will default to the onboard USB-C Ethernet NIC of the Mark VII. So, running the route command, the USB-C Ethernet interface will be on top, not the USB Type A Ethernet adapter that has been attached (it can be seen in your video as well). I don't think any time should be spent as to why the "WiFi procedure" kind of solves this, try to get the routing table correct instead. Link to comment Share on other sites More sharing options...
Sgt.Foose Posted March 21, 2022 Author Share Posted March 21, 2022 Command "route add -net default gw 192.168.178.1 netmask 255.255.255.0 dev eth1 metric 1" did add a route. Command "route del -net 0.0.0.0 gw 192.168.178.1 netmask 0.0.0.0 dev eth1" can remove routes. Unfortunately it didn't work and also after a reboot, br-lan will always get a lower metric assigned and static gateway 172.16.42.42 and my table looks like this: So after a reboot with my Pineapple connected to USB-C (Power adapter, not PC), it has "default 172.16.42.42" with metric 0 so is preferred above "default wpad.fritz.box" which has metric 211? I think when the Pineapple is not connected to a PC (Power Only), the metric should default to a destination that does not has 172.16.42.42 assigned. Anyway, when I go into my console and enter "route del -net default gw 172.16.42.42 netmask 0.0.0.0 dev br-lan", the problem is solved and I have internet access again: Unfortunately after a reboot, default 172.16.42.42 is back 😞 root@mk7:/pineapple# uci show network network.loopback=interface network.loopback.ifname='lo' network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.globals=globals network.globals.ula_prefix='fdc3:d1f0:69c9::/48' network.lan=interface network.lan.type='bridge' network.lan.ifname='eth0' network.lan.proto='static' network.lan.netmask='255.255.255.0' network.lan.ip6assign='60' network.lan.ipaddr='172.16.42.1' network.lan.gateway='172.16.42.42' network.lan.dns='8.8.8.8, 8.8.4.4' network.lan_eth0_dev=device network.lan_eth0_dev.name='eth0' network.lan_eth0_dev.macaddr='**:**:**:1c:fd' network.usb=interface network.usb.ifname='usb0' network.usb.proto='dhcp' network.usb.dns='8.8.8.8, 8.8.4.4' network.wwan=interface network.wwan.proto='dhcp' network.wwan.dns='8.8.8.8, 8.8.4.4' network.wlan2=interface network.wlan2.proto='dhcp' network.wlan2.dns='8.8.8.8, 8.8.4.4' root@mk7:/pineapple# Either the Pineapple needs to undo the static 172.16.42.42 which we gave it for the factory default procedure, or maybe @Darren Kitchen has a better approach? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.