Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-05-2004, 12:30 PM   #1
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
marsala root #  /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
68.***.**.0   U     0      0        0 eth0       UG    0      0        0 lo         68.***.**.1         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
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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

Should call it "default".


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
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 > Forums > Linux Forums > Linux - Networking

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

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