Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-25-2006, 07:12 AM   #1
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
How to find out the network configuration?

Hi there,

What are the terminal tools to determine the network configuration of a particular computer (i.e. IP, gateway, nameserver, network mask) running Linux (RedHat-based distro)?
I know this is a VERY n00b question but I cannot find it out myself...

Old 04-25-2006, 07:16 AM   #2
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
/sbin/ifconfig and /sbin/iwconfig
- if you are thinking about the computer you are sitting at. The last one is for wireless interfaces.
If you want to discover the hardware behind it - usually used to find the correct driver - you will want to use /sbin/lspci and /sbin/lsusb. Here, the first is PCI-style components (which is the majority) and and the second USB devices.
Old 04-25-2006, 07:17 AM   #3
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
That's for the configuration, I need to find out already configured network properties, something like "list the network configuration". And yes it is for the box I'm using.
Nevertheless thanks for the quick respond.

Last edited by halturata; 04-25-2006 at 07:21 AM.
Old 04-25-2006, 07:22 AM   #4
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
ifconfig -- ip, netmask. etc,
route -- routing table.
cat /etc/resolv.conf -- nameserver.
Old 04-25-2006, 07:28 AM   #5
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
ifconfig with no arguments gives you the current configuration. For dns, you also need to "cat /etc/resolv.conf" I dont know if there is a command that fethces this info also.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
Network Configuration in Debian (laptop network card) legendaryhwk Linux - Networking 6 04-06-2006 03:59 AM
Network Configuration Hanging in FC4 After Using Wireless Network Wizard Trip in VA Linux - Wireless Networking 2 07-18-2005 08:32 AM
How to find out kernel configuration?? jdupre Red Hat 3 06-17-2005 11:10 AM
How to find H/W RAID configuration installed sanjeev.naik Linux - Hardware 1 05-01-2005 01:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration