LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-01-2014, 02:34 AM   #1
yansfung
LQ Newbie
 
Registered: Jun 2005
Location: Hong Kong
Distribution: FC
Posts: 8

Rep: Reputation: 0
Question Route Delete a Record


I have a recode like this following:

etc]# netstat -nr|grep 46.29
46.29.255.46 - 255.255.255.255 !H - - - -


I have tried to remove as following but failed. Can somebody tell me what else has missed in this CLI. Thanks a lot indeed!

etc]# route delete 46.29.255.46
 
Old 04-02-2014, 02:20 PM   #2
srinishrews
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
whats the error message while you're trying to delete the route ? Assuming its a static route, you have to specify the delete in the format below
Quote:
route del -host XX.XX.XX.XX gw XX.XX.XX.XX
 
Old 04-02-2014, 08:58 PM   #3
yansfung
LQ Newbie
 
Registered: Jun 2005
Location: Hong Kong
Distribution: FC
Posts: 8

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by srinishrews View Post
whats the error message while you're trying to delete the route ? Assuming its a static route, you have to specify the delete in the format below
Thanks for your reply!

I would like to delete this routing record:

46.29.255.182 - 255.255.255.255 !H - - - -

Have tried this as" route del-host 46.29.255.182 gw lo " but failed! What setting value that I have missed.
 
Old 04-03-2014, 11:36 AM   #4
srinishrews
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
Assuming you added a space after "del" . You should be able to delete the route by using some command like below

Quote:
route del -net 46.29.255.182 netmask 255.255.255.255
 
Old 04-03-2014, 09:45 PM   #5
yansfung
LQ Newbie
 
Registered: Jun 2005
Location: Hong Kong
Distribution: FC
Posts: 8

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by srinishrews View Post
Assuming you added a space after "del" . You should be able to delete the route by using some command like below
Thanks srinishrews for your answer!

It seems that it won't work at my Fedora 14. How about flush the routing table and start from beginning to enter the routing records?


Best regards,

Yan.
 
Old 04-04-2014, 09:57 AM   #6
yansfung
LQ Newbie
 
Registered: Jun 2005
Location: Hong Kong
Distribution: FC
Posts: 8

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by srinishrews View Post
Assuming you added a space after "del" . You should be able to delete the route by using some command like below
Here followings are my screen prompts:

# netstat -nr|grep 46.29.255
46.29.255.46 - 255.255.255.255 !H - - - -
46.29.255.182 - 255.255.255.255 !H - - - -

[root]# route del -net 46.29.255.182 netmask 255.255.255.255
SIOCDELRT: No such process
 
Old 04-04-2014, 10:09 AM   #7
srinishrews
LQ Newbie
 
Registered: Mar 2014
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by yansfung View Post
Here followings are my screen prompts:

# netstat -nr|grep 46.29.255
46.29.255.46 - 255.255.255.255 !H - - - -
46.29.255.182 - 255.255.255.255 !H - - - -

[root]# route del -net 46.29.255.182 netmask 255.255.255.255
SIOCDELRT: No such process
I'm not familiar with Fedora setup but it should be the same as other flavors. Do u have hosts file configured in /etc/hosts ? it happens sometimes when you dont have the right entries in hosts file. Also check if you have any static entries for this IP under /etc/sysconfig/network-scripts
 
Old 04-05-2014, 09:06 PM   #8
yansfung
LQ Newbie
 
Registered: Jun 2005
Location: Hong Kong
Distribution: FC
Posts: 8

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by srinishrews View Post
I'm not familiar with Fedora setup but it should be the same as other flavors. Do u have hosts file configured in /etc/hosts ? it happens sometimes when you dont have the right entries in hosts file. Also check if you have any static entries for this IP under /etc/sysconfig/network-scripts
It seems Fedora 14 could has some difference so that the behaviour is out of my expectation.


Thanks a lot indeed!
 
  


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
[SOLVED] IP header record route option narender14 Linux - Networking 2 08-14-2013 06:07 PM
ECMP route are deleting when delete best route ukkreddy Linux - Newbie 0 05-18-2012 04:11 AM
[SOLVED] Delete permanently a route v_fone Linux - Networking 2 09-03-2009 07:27 AM
delete record ust Linux - Newbie 6 10-15-2008 07:51 PM
Can not delete route scoban Solaris / OpenSolaris 14 11-29-2007 04:12 AM

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

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