query about  route command output on localhost

Posted on 2004-10-24
Last Modified: 2013-12-15

I want to know whenever i give a command a "cat /proc/net/route" on any localhost single machine or linux box in LAN, Every  computer return command result with First row as output
Iface      Destination      Gateway       Flags      RefCnt      Use      Metric      Mask            MTU      Window      IRTT                                                      
eth0      0000FEA9      00000000      0001      0      0      0      0000FFFF      0      0      0                                                                              
eth0      0000000A      00000000      0001      0      0      0      000000FF      0      0      0                                                                              
lo      0000007F      00000000      0001      0      0      0      000000FF      0      0      0                                                                                
eth0      00000000      6600000A      0003      0      0      0      00000000      0      0      0                                                                              

why this entry 1 is needed? when it is used? I am using RH9 with default kernel 2.4.20-8
Question by:panemade
    LVL 38

    Expert Comment


       Those three entries with eth0 have different destination. So it depends on your network infrastructure.
    However, 00-00-FE-A9 transferred to IP address should be (from right to left), which I don't think it is needed.
    You can remove it by typing "route del -net netmask". This IP address is default for DHCP client when the client cannot connect the DHCP server.
    By the way, please use "route -n" or "netstat -rn" to display more readable routing table. Actually, those two commands
    are reading /proc/net/route and translate into more readable output. Then you will know which one is need and which one are wrong.


    LVL 1

    Author Comment

    hello wesly
           but there is no dhcpd on my system. I just did server RH9 installation with no dhcpd as i want to assign it static IP .
    LVL 38

    Accepted Solution

    Well, this is not dhcpd. It is dhcp client.
    Sometiimes, you didn't assign static IP address during the installation and you didn't have DHCP server on the network,
    then your Linux box will get 169.254.X.X by default. After you assigned a static address, this IP address doesn't go away.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Prepare to Pass the CompTIA A+ 900 Series Exam

    CompTIA aims to adapt its A+ Certification to reflect the most current knowledge and skills needed by today's IT professionals--and this year's 2016 exam is harder than ever. This certification is one of the most highly-respected and sought after in IT.

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now