LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-03-2005, 06:22 AM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
removing and adding route


Hi,

I use red hat.

I have on the machine this routing table:

[root@sns-jr-dmz root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 255.255.255.255 UH 0 0 0 eth0
208.170.171.128 * 255.255.255.128 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

I want to remove the first line (default gateway ) and add a line which says the default gateway is 0.0.0.0 0.0.0.0 so that evey traffic will go throw eth0

(the netmask should be 0.0.0.0 right ?)

beacuse the difault gateway which is here is not working...



THANKS !!
 
Old 04-03-2005, 08:33 AM   #2
w7hd
Member
 
Registered: Aug 2004
Location: Tucson, AZ
Distribution: Ubuntu 9.04 & 10.10, RHEL 4 & 5
Posts: 48
Blog Entries: 3

Rep: Reputation: 16
Easily done, sir:

route delete default
route add default dev eth0

Ron W7HD
Tucson, AZ
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding entries to route table in C? kuronai Programming 2 04-04-2005 02:42 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Adding static route in Mandrake 9.2 bloke Linux - Networking 1 02-23-2004 07:38 AM
Problem with adding default route... Grim Reaper Linux - Networking 1 02-22-2003 07:29 AM
Adding default route on startup? WeNdeL Linux - Newbie 2 01-08-2003 01:00 PM

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

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