Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-27-2006, 08:06 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 11

Rep: Reputation: 0
finding the default gateway

i am using the two wan connections with different gate ways.if i am using the iproute for getting route details it wont give the gateway ip addresses,it simply print the "default gateway".is there any for finding the gateway ip addresses.

Last edited by suresh_rupineni; 07-28-2006 at 12:09 AM.
Old 07-27-2006, 08:25 AM   #2
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,465
Blog Entries: 1

Rep: Reputation: 66
"route -n" will give you your routing table. The default gateway info could be found in the line which has in the first column. The default gateway ip address is in the second column.


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
Default gateway dooda5555 Linux - Networking 1 06-17-2005 11:43 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 08:41 AM
finding gateway address on eth0 MHouse Linux - Newbie 9 03-05-2004 06:35 AM
default gateway avikosan Linux - Networking 3 12-09-2003 05:47 PM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 05:44 PM > Forums > Linux Forums > Linux - Software

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