Why do I get IP 10.42.0.1 when plugging in an Ethernet cable?
Emily Wong
For a few months I have the problem on my Ubuntu 14.04 box that when I plug in my Ethernet cable into, I get the IP 10.42.0.1 assigned instead of getting an IP via DHCP.
I can fix this problem manually every time by clicking on the network-manager applet icon and clicking on Auto eth0, then I get an IP via DHCP.
(Edit: My DHCP server in my router is configured to lease addresses in the range 10.10.10.*, and when I click Auto eth0, I get 10.10.10.110.)
In the good old days, I could just plug in the cable and Auto eth0 would become active automatically. I believe that this stopped working when I used the Shake internet connection feature, which I believe uses IPs in the 10.42.0.1 range.
In my network-manager settings, Auto eth0 is the only configuration available in the Ethernet section. In it's configuration, the box Automatically connect to this network when it is available is ticked, and its IPv4 Settings are set to Automatic (DHCP), IPv6 settings are set to Automatic.
What can I do about this?
I'd like to get auto-networking work just as before, when I plug in the cable.
Edit: My /etc/network/interfaces:
auto lo
iface lo inet loopback 14 2 Answers
The solution should be as simple as editing your wired connection into Network Manager, then select the tab "IPv4 Settings" and then change the method, from "Shared to other computers" to "Automatic (DHCP)"
It is simply because such IP range value is hard-coded into the NetworkManager.