-1

My laptop's NIC went bad and I had to start using a USB Ethernet adapter. When I start up the computer, or even simply unplug and plug in the adapter, it gets two default gateways which show up in ipconfig: the router's IP address and 0.0.0.0.

Looking into this more, I did a route print and this showed up:

0.0.0.0  0.0.0.0  On-link  192.168.0.5  20
0.0.0.0  0.0.0.0  192.168.0.1  192.168.0.5  20

Searching the internet results in the majority of the blame being a service called "Bonjour" but I don't have that on my system.

If I can't find the root cause of the incorrect route, is there a way to change the metric for that 0.0.0.0 on-link route so it doesn't get used? I am new to Windows routing tables and I would like this to be persistent and I don't want to have to change things every time I connect to a different network.

Right now, my temporary solution is to run a command prompt and type in the following command, but I have to edit the gateway for every network I connect to. I also have to run this after every reboot, sleep, or disconnect of the USB Ethernet adapter.

route change 0.0.0.0 MASK 0.0.0.0 192.168.0.1

After more troubleshooting, I see the route to 0.0.0.0 default gateway being added when it gets the automatic private IP. It seems to assign itself a 169 address and 0.0.0.0 gateway too fast, before it gets the DHCP response and information.

Syntax42
  • 1
  • 1
  • 2
  • paste ipconfig /all output – Dusan Bajic Jan 22 '14 at 16:01
  • possible duplicate of [What does "On-link" mean on the result of "route print" command?](http://superuser.com/questions/59996/what-does-on-link-mean-on-the-result-of-route-print-command) – Ƭᴇcʜιᴇ007 Jan 22 '14 at 16:38
  • Also see: [2 default gateways, one to 0.0.0.0… with DHCP](http://superuser.com/questions/46419/2-default-gateways-one-to-0-0-0-0-with-dhcp?rq=1) – Ƭᴇcʜιᴇ007 Jan 22 '14 at 16:39
  • A ipconfig /all would not help. No other interfaces are connected. IPv6 is disabled. – Syntax42 Jan 22 '14 at 17:41
  • This is definitely not a duplicate of the issue above. – Syntax42 Jan 22 '14 at 17:41
  • Have you tried disabling all 3rd party start-ups and services to try and determine what's creating it? Does the route appear similarly when it's attached to a different computer? Does having this extra route actually cause you any problems? I ask because you seem to want an answer on both what it is for (which has been provided) and perhaps how to get rid of it, but you may just have to accept it as normal and necessary for your adapter/setup to work. – Ƭᴇcʜιᴇ007 Jan 22 '14 at 17:49

2 Answers2

0

0.0.0.0 is the default route (the route used if there are no specific rues to affect the current traffic packet).

On-link as the gateway means that the route resolves locally.

The default route resolving locally may be happening due to installed network security software setting it to redirect traffic through its scanning engines.

Ƭᴇcʜιᴇ007
  • 111,883
  • 19
  • 201
  • 268
  • There is no security software other than Microsoft Security Essentials and Windows Firewall. The issue only happens on the USB Ethernet adapter and does not happen on the wireless connection. – Syntax42 Jan 22 '14 at 17:40
  • It could simply be the way that USB adapter works as well. It may be routing traffic locally to pass it through the USB drivers. Hard to say without additional troubleshooting done to the system. – Ƭᴇcʜιᴇ007 Jan 22 '14 at 17:44
  • With the 0.0.0.0 default gateway, it can't connect to anything beyond the LAN. That's why I have to change the route manually every time. I'm looking for something more permanent that fixes the route showing up or sets it to the lowest priority. – Syntax42 Jan 22 '14 at 17:54
  • I'd suggest editing your original question and add the fact that it prevents you from surfing, as well as what you currently do to 'fix' it. Providing information such as that will help get you better answers. – Ƭᴇcʜιᴇ007 Jan 22 '14 at 18:03
0

Maybe you need to disable the built-in NIC in the bios, or disable the driver for it (you didn't specify what OS you are using).

Xavier J
  • 650
  • 3
  • 9
  • This is running on Windows. I have tried drivers from the manufacturer and the automatic drivers downloaded by Windows from Windows Update. – Syntax42 Jan 22 '14 at 17:39
  • The OS isn't so much relevant in what I'm trying to communicate. I'm saying if you have a funky-acting internal NIC, you may get weird results with ***route print*** as long as it is still enabled, **because the operating system will still see the internal nic**. So try disabling the internal NIC, either in Device Manager, or in the BIOS. – Xavier J Jan 22 '14 at 17:42
  • 1
    This doesn't make sense to me. I can try it, but I doubt it will make a difference. When a NIC isn't connected, it has no IP address. Without an IP address, no route will be generated for it. – Syntax42 Jan 22 '14 at 17:52