LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 06-23-2010, 02:53 PM   #1
adeadmarsh
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Where is gateway info stored?


I have my box set up with dhcp. The dhcp server gives me my gateway. Is this info placed in any files? I can see my gateway by typing in netstat -rn, but I don't know where this info is stored. I have looked in /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-etho. I've tried to grep in quite a few directories/files for GATEWAY but haven't found my answer. Running RH54.

Thank you.
 
Old 06-23-2010, 03:01 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 919

Rep: Reputation: 67
Dynamic IP information, such as gateway which get on DHCP server, save in memory only. It isn't static and shouldn't save to disk.
 
Old 06-23-2010, 03:06 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.
 
Old 07-09-2010, 12:28 PM   #4
adeadmarsh
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you so much. I thought that might be the case, but I wanted to double check!
 
  


Reply

Tags
dhcp, gateway


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any partition info stored in /etc ? raqua Linux - Desktop 8 01-24-2010 08:07 AM
Where can I get info on common Linux directories and what's normally stored there? hunterhunter Linux - Newbie 6 04-06-2006 03:40 PM
Where is IP info stored-RH8 kubicon Linux - Networking 2 08-26-2004 05:24 PM
Web Browsers Forgetting stored info BrettPower Linux - Software 0 03-06-2004 12:36 PM
Info displayed to screen at boot stored somewhere? jfi Linux - Newbie 3 12-03-2003 05:19 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration