Super User is a question and answer site for computer enthusiasts and power users. 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

My home network is configured as follows:

Computer -- Route -- Internet

If I run route on my computer, I see

~ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0         UG    100    0        0 eth0

My question is that since all packets matching will be directed to, why is the first entry needed? Would removing the entry cause any problem?

share|improve this question
up vote 4 down vote accepted

The entry doesn't point to; rather, it points to the eth0 interface. Without it, the system wouldn't know which interface to use when sending packets to and other computers in the same subnetwork.

Remember also that computers in are not behind the gateway; they can be reached directly.

share|improve this answer
But when I remove the first entry, I can still ping Why is this happening? – Wei Shi Oct 19 '11 at 1:07
@Usavich: Because the first entry doesn't match Google's address and wouldn't have been used anyway. It is only for communications with 192.168.1.*. – grawity Oct 19 '11 at 9:25

You must log in to answer this question.

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