[Fedora] General Linux Networking

Bevan C. Bennett bevan at fulcrummicro.com
Wed Jan 7 22:53:24 UTC 2004


Øyvind Lode wrote:

> Yes. Already tried that....
> "ifconfig" displays the ip adresses and subnet mask of all NICs.
> Also ran "ifconfig eth0" just to display for the NIC I wanted but just 
> gives me ip address and subnet mask so no info on Default Gateway, DNS 
> Servers... + a lot of info about packages completed successfully, 
> errors, collitions etc.
> 
> Am I missing something?

Nope. That information is still traditionally managed in several places 
because it wasn't (and some might say still isn't) really that related.

'ifconfig' displays network interface information (IP,netmask,etc).

'netstat -r' displays network routing table information (including 
default route).

the contents of '/etc/resolv.conf' contain your DNS information.

It would be relatively trivial to create a small script which gathers 
that data, reformats it, and prints a Windows-like 'ipconfig' style summary.

Note that the newer 'redhat-config-network' GUIs do pull all that data 
together.

-Bevan





More information about the fedora-list mailing list