Jump to content

Might need some help with a LAN issue on the Pineapple (1.1.1 and 2.0.0 beta)


Sgt.Foose
 Share

Recommended Posts

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.

Edited by Sgt.Foose
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

159287659-6c3d850e-1280-41eb-8ad9-007e5f

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.

159294167-83be28bd-8cfd-4c1c-9867-45c9dc

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:

159296374-732d1e00-a542-401a-8c00-147a87

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.159443998-0ad660f2-b6d6-4aab-95bb-700faa

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:

159445801-361fd54f-08d9-4db5-b93e-f05c66

 Unfortunately after a reboot, default 172.16.42.42 is back 😞

159443998-0ad660f2-b6d6-4aab-95bb-700faa

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?

 

 

Edited by Sgt.Foose
Add info
Link to comment
Share on other sites

  • Sgt.Foose changed the title to Might need some help with a LAN issue on the Pineapple (1.1.1 and 2.0.0 beta)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...