Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following is my route output. eth0 is my wired network and eth1 is my wireless network. Only wired one has access to internet. If I enable wireless, I am not able to access internet, it tries to access via eth1 and I get 404 page of the wireless router. Why does eth1 have higher preference though default is eth0 (link)?

[balakrishnan@mylap ~]$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    0      0        0 eth0       *        U     1      0        0 eth0
link-local      *          U     1000   0        0 eth0     *        U     9      0        0 eth1

[balakrishnan@mylap ~]$ tracepath -n
 1:                                          0.098ms pmtu 1500
 1:                                            35.519ms 
 1:                                            29.763ms 
 2:                                        29.718ms 
 3:  no reply
 4:  no reply
 5:  no reply

Edit: I noticed that some times (rarely) I am able to connect. It looks like it randomly tries on both interfaces. Is there a way to set to use only eth0 ?

share|improve this question

migrated from serverfault.com Oct 24 '12 at 18:23

This question came from our site for system and network administrators.

The default gateway is out eth0 via Can you provide the output of tracepath -n – mgorven Oct 24 '12 at 16:58
Updated with output. It doesn't end. I keep getting no reply – balki Oct 24 '12 at 18:00
Your default route is definitely over the wired connection... Are you sure you can't get to the Internet? You are trying more than just a web browser, correct? Are there proxy settings in the browser's configuration? Operating system? Steps you've already taken to resolve the issue? – Chris S Oct 24 '12 at 18:22
I am using ubuntu 12.10. Tried with both firefox and chrome. sometimes it opens. When I refresh, it goes away. With disabling wireless, it is always stable. No proxy settings configured anywhere. I tried ping google.com from terminal which doesn't work too. – balki Oct 24 '12 at 20:46
ping works now again for some websites. Some services work, others dont. wget works fine. dropbox works. apt-get doesn't work, both browsers don't work. – balki Oct 24 '12 at 21:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.