panemade
asked on
query about route command output on localhost
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
ASKER
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 .
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 .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 169.254.0.0 (from right to left), which I don't think it is needed.
You can remove it by typing "route del -net 169.254.0.0 netmask 255.255.0.0". 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.
Regards,
Wesly