LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-22-2011, 12:24 AM   #1
dprajasekhar
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
get the Gateway Configured for the Individual Interface


Hi All,

I am looking for the command/way to retrive the gateway configured for the individual interface.

I now route -nee / netstat -nr gives the information but they always give only one as default.

Thanks for any help


Thanks,
Rajasekhar
 
Old 09-22-2011, 01:07 AM   #2
b0ffen
LQ Newbie
 
Registered: Jun 2003
Location: Örebro : Sweden
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 1
Try to grep the interface in the route command.
route -F | grep ppp0
10.x.x.x * 255.255.255.255 UH 0 0 0 ppp0
link-local * 255.255.0.0 U 1000 0 0 ppp0
default 10.x.x.x 0.0.0.0 UG 0 0 0 ppp0

It works here, though i aint ure this is what you are looking for =)
 
Old 09-22-2011, 01:38 AM   #3
dprajasekhar
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Suppose I have three adapters

1)Wired interface- Configured static eth0

2)Wired interface - DHCP Configured eth1

3) Wireless - DHCP wlan0


At any point of time if I type route -nee / netstat -nr I alwaya get only one as default Gateway .

I want to know if there is any command/method to get gateway configured for the individual interface
 
  


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
configured grafical interface mandrake 10.1 ragarciaprog Mandriva 1 07-22-2009 09:21 PM
Wireless Interface Not configured Natron716 Linux - Networking 7 01-13-2009 03:34 AM
ERROR: The interface does not exist (UBUNTU) interface eth0 not configured anshulbhatt Linux - Networking 2 11-20-2008 12:23 PM
KNetworkManager applying DHCP to static configured Interface Casket Linux - Software 1 10-23-2007 05:50 PM
Individual (per user) bandwidth management in gateway retiem Linux - Networking 3 03-14-2006 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 AM.

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