LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-01-2005, 05:04 PM   #1
ciscohead
Member
 
Registered: Mar 2003
Distribution: redhad 7.3
Posts: 42

Rep: Reputation: 15
cannot route del


One of my buddies locked his ip out of our server, he was trying to do something with
SNMP and he offended portsentry. Anyway I deleted his line from portsentry history and put him in the ignore list and restarted portsentry. However it looks like portsentry blackholed him in the routing table. Here is the salient line from route -n (my friend's ip addy x'd for obvious reasons :

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
x.x.x.x              -           255.255.255.255      !H       0      -        0    -

When I try to do
#route del -host x.x.x.x

I get
SIOCDELRT: No such device

I can't really experiment on this server too much it is live This route would prolly not persist over reboot but I'm not really sure and anyway I don't want to reboot it.

I've tried entering a netmask of all 1's both with CIDR notation and by using the netmask command and it says that doesn't make sense for a host
(which of course it doesn't)

The man page states that the dev is optional
WTF do I type to kill this route? I'm running slackware NOT BY CHOICE

Last edited by ciscohead; 10-01-2005 at 05:08 PM.
 
Old 10-03-2005, 10:42 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Perhaps dev is optional if you have only one network interface? Have you tried specifying device?
 
Old 10-03-2005, 10:53 AM   #3
ciscohead
Member
 
Registered: Mar 2003
Distribution: redhad 7.3
Posts: 42

Original Poster
Rep: Reputation: 15
yes I tried dev eth0
this box is just a colocated host it only has one iface active but thanks
 
  


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
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
if a route fails in a multipath route? eantoranz Linux - Networking 5 07-03-2005 03:03 PM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 04:17 PM
route del -net N_A_J_M Linux - General 1 03-18-2003 07:20 AM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 01:14 PM

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

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