Latest LQ Deal: Linux Power User Bundle
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 09-22-2011, 01:24 AM   #1
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

Old 09-22-2011, 02:07 AM   #2
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 * UH 0 0 0 ppp0
link-local * U 1000 0 0 ppp0
default 10.x.x.x UG 0 0 0 ppp0

It works here, though i aint ure this is what you are looking for =)
Old 09-22-2011, 02:38 AM   #3
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


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

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

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