LinuxQuestions.org
Review your favorite Linux distribution.
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 08-19-2004, 05:12 AM   #1
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Rep: Reputation: 15
deleting routes


How do i delet routes from my route -n table?
 
Old 08-19-2004, 05:43 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
As mentioned in man route

route del <target>

Hope this helps.
 
Old 08-19-2004, 06:38 AM   #3
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
is this correct:

route del -net 169.254.0.0 nm 255.255.0.0 dev eth2 ?
 
Old 08-19-2004, 07:04 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
It depends on what it is you want to delete.

If you want to delete this (part of route -n):
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

$ route del -net 192.168.10.0 netmask 255.255.255.0 dev eth1

If you want to delete a gateway entry like this:
0.0.0.0 192.168.100.11 0.0.0.0 UG 1 0 0 eth0

$ route del -net 0.0.0.0 gw 192.169.100.11 netmask 0.0.0.0 dev eth0

If you want to add an entry, just replace del with add

Hope this clears things up a bit.
 
Old 08-19-2004, 07:38 AM   #5
Julian_Thong
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
yup it sure did, thanks !
 
  


Reply

Tags
delete, route



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
Routes Obie Linux - Networking 16 04-28-2005 10:15 PM
routes himyuza *BSD 6 08-03-2004 10:41 AM
I need some routes |Drakehash| Linux - Newbie 1 06-08-2003 12:22 AM
I need some routes |Drakehash| Linux - Networking 1 06-07-2003 02:36 PM
Multiple routes DavidPhillips Linux - Networking 2 12-03-2001 12:51 PM

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

All times are GMT -5. The time now is 04:43 PM.

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