0

Dear SF@StackExchange,

I'm using an access point that provides LAN as well as WLAN capabilities using 4G to connect its hosts to the internet. DHCP is deactivated by design. Regardless of the OS connected, I can ping across WLAN -> LAN, LAN -> LAN and whatnot. Windows PC's are not affected of this and connect to the internet just fine leading me to believe it is within the settings of my Linux box I need to look.

When I'm on my Linux box however, I cannot get WLAN internet access while the WLAN interface on the AP shares the same subnet (255.255.0.0) as the LAN.

For instance, I cannot connect to the internet when both share the IP address space 169.254.x.x but I can get connectivity through this setup:

WLAN: Default GW: 192.168.1.1, Subnet: 255.255.255.0

LAN: Default GW: 169.254.2.1, Subnet: 255.255.0.0

which is not what I'd like since that messes up the port forwarding that I will need.

I've tried setting up DNS for my linux machine as 8.8.8.8. It can still ping the AP when sharing the same subnet at 169.254.2.1.

Route -n log:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         169.254.2.1     0.0.0.0         UG    600    0        0 wlp3s0
169.254.0.0     0.0.0.0         255.255.0.0     U     600    0        0 wlp3s0

cat /etc/resolv.conf:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

(It does state this with a working AP too though)

1
  • 1
    when both share the IP address space 169.254.x.x You should never have two identical forwarding table entries. That's a recipe for trouble. Feb 17, 2016 at 14:52

1 Answer 1

1

The combination of your environment and mess in your head is too complex to give a straight answer. First of all, 169.254/16 is Windows autoconfiguration prefix that is used when no DHCP server is reachable and Windows IP stack is configured to use DHCP. Linux by default doesn't have this feature enabled, so that's why you cannot get the outer world connectivity. Second, clearly there's a static subnet configured on your AP, and it's 192.168.1.0/24 - seems like access point default settings are in effect.

Conclusion: scratch out your experiment result as irrelevant, get a DHCP server or use static IPs. Your design, which made your DHCP disabled is completely wrong.

1
  • First of all: Thank you for your input! I think you misread my intent. I am using static IPs on all platforms connecting (therefore the disabled DHCP server). This allows for a LAN connection on all interfaces WLAN & LAN alike. It is only when I expect the WLAN interface to have IP range of 169.254/16 as well the LAN that problems occur with connectivity outside the network.
    – Syncretic
    Feb 18, 2016 at 8:27

Not the answer you're looking for? Browse other questions tagged .