Routing information
Barry Brimer
lists at brimer.org
Thu Oct 18 14:14:04 UTC 2007
> Is routing information in linux is stored in any file?
> Your reply will be appreciated.
The kernel stores this information in /proc/net/route although it is in
hexadecimal.
If you just want to list the routing table you can use 'route' for the
routing table with name resolution or 'route -n' for the routing table
without resolution.
If you are referring to static routes, that depends on which version of
RHEL you are using. Back in the old days, static routes were stored in
/etc/sysconfig/static-routes or
/etc/sysconfig/network-scripts/static-routes and now I believe they are stored on an
interface by interface basis in
/etc/sysconfig/network-scripts/route-<interface>.
Barry
More information about the redhat-list
mailing list