LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-09-2005, 05:42 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Rep: Reputation: 53
How can I tell what my default gateway is currently set as?


How can I tell what my default gateway is currently set as?
 
Old 09-09-2005, 06:11 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
exemple:
ip adress is : 135.100.100.20
gateway is 135.100.100.1

just replace the last number of your ip adress by 1
 
Old 09-09-2005, 06:59 PM   #3
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
Quote:
Originally posted by mrcheeks
exemple:
ip adress is : 135.100.100.20
gateway is 135.100.100.1

just replace the last number of your ip adress by 1
for a senior member this is a poor reply.. :/

dude, have a look at "man route" "ifconfig" and "/etc/network/interfaces"
 
Old 09-09-2005, 07:01 PM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
it is a simple answer...yes i know the ifconfig, but it is usually that unless someone specify it...
 
Old 09-09-2005, 11:50 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,249

Original Poster
Rep: Reputation: 53
can route show all gateways on my box?
 
Old 09-10-2005, 11:53 AM   #6
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Quote:
Originally posted by abefroman
can route show all gateways on my box?
Yes. In essence, route will show where any packet delivered to your system is supposed to go to.
 
Old 09-10-2005, 12:15 PM   #7
Walman
Member
 
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Centos,Debian,Slax , Solaris
Posts: 94

Rep: Reputation: 15
Use command /sbin/route

the entry with the UG on the flag columm is the gateway
 
  


Reply


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
default gateway not set by PPPoE, can't ping internet rproffit Linux - Networking 3 12-17-2007 05:29 AM
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
How do I set the ip address for eth0, eth1 and the default gateway? abefroman Suse/Novell 5 05-19-2005 04:15 AM
How do i set ppp0 as default gateway for internet sharing in Redhat? Julian_Thong Linux - Networking 11 08-18-2004 06:54 PM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 05:22 PM


All times are GMT -5. The time now is 03:46 AM.

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