LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-05-2004, 12:30 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
/sbin/route -n and defautl gateway


I am trying to create my /etc/sysconfig/network file. I foulnd the command /sbin/route -n gives me gateway information. here are its results
Code:
marsala root #  /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
68.***.**.0     0.0.0.0         255.255.240.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         68.***.**.1     0.0.0.0         UG    0      0        0 eth0
which one is my default gateway(if any)? Is the destination ip address, 68.***.**.0 my ip address?
 
Old 02-05-2004, 01:10 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The destination addresses show when each route will be used. The final one "0.0.0.0" is the default gateway used when there is no specific rule preceding. Running:
/sbin/route

Should call it "default".
 
  


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
How do I keep gateway route across restarts? moonmoth Linux - Networking 3 09-04-2005 07:35 AM
My gateway can't route michaelsanford Linux - Networking 0 04-20-2005 05:05 PM
Nothing happens when I run /sbin/route -n HyperSprite Linux - Networking 3 04-28-2004 04:20 PM
Route and Gateway Issues shaggz Linux - Networking 2 10-29-2003 12:33 PM
Wrap up of the /sbin/route command acura94 Programming 1 09-11-2002 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:29 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