|
OP may also like the `route` command, to see the current routing table of the machine in question. The -n option is commonly used, to show numeric addresses, and will show you the gateway also.
There's a good chance you could locate the network information in /proc somewhere, but right off, I cannot suggest where; as implied above, the gateway and such info is not saved in any particular "regular" file that I'm aware either.
|