LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-25-2006, 08:12 AM   #1
halturata
Member
 
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...

Thanks.
 
Old 04-25-2006, 08:16 AM   #2
mjjzf
Member
 
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, 08:17 AM   #3
halturata
Member
 
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 08:21 AM.
 
Old 04-25-2006, 08:22 AM   #4
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
ifconfig -- ip, netmask. etc,
route -- routing table.
cat /etc/resolv.conf -- nameserver.
 
Old 04-25-2006, 08:28 AM   #5
pixellany
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.
 
  


Reply


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 07:48 AM
Network Configuration in Debian (laptop network card) legendaryhwk Linux - Networking 6 04-06-2006 04:59 AM
Network Configuration Hanging in FC4 After Using Wireless Network Wizard Trip in VA Linux - Wireless Networking 2 07-18-2005 09:32 AM
How to find out kernel configuration?? jdupre Red Hat 3 06-17-2005 12:10 PM
How to find H/W RAID configuration installed sanjeev.naik Linux - Hardware 1 05-01-2005 02:41 AM


All times are GMT -5. The time now is 12:24 PM.

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