LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2003, 09:09 AM   #1
tusher
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 36

Rep: Reputation: 15
Question not getting gateway information.


Hi,

I am trying to findout my Lan card informaion...as i can do on windows box by "ipconfig /all" command. i m using "ifconfig" but this is only displaying the ipaddress and subnet mask inforamtion.

how to get the gateway and dns information as well ?

Any idea? (I m on Linux Red Hat 6.2 Platform)

Bye.

Tusher.
 
Old 10-26-2003, 09:15 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
For routing (gateway):
route -n

For DNS:
cat /etc/resolv.conf
 
Old 10-26-2003, 09:26 AM   #3
tusher
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 36

Original Poster
Rep: Reputation: 15
but david,

I m using two netcard..for ip masquarding purpose.....one has internal ip: 192.168.0.1 and another has external: external ip.
I remember i used same gateway for both of them..

but from the command "route -n"

i m not getting appropriate answer.

thank for the reply.
 
Old 10-26-2003, 09:43 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
"i m not getting appropriate answer."

You aren't betting what you expected?

Post the output of:
route -n

and the output /details as you expect them.
 
  


Reply



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
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 10:43 AM
XP Box won't take DHCP information or an IP from Linux gateway Diademed Linux - Newbie 2 10-22-2004 05:47 PM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
missing gateway information? nsk078 Linux - Wireless Networking 9 08-06-2004 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:52 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
Open Source Consulting | Domain Registration