LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-14-2004, 10:43 AM   #1
dthacker
Member
 
Registered: Nov 2003
Location: Omaha, NE
Distribution: Ubuntu, Kubuntu, Ubuntu Server
Posts: 77

Rep: Reputation: 15
unable to delete route-syntax problem?


I personally find the route command one of the most frustrating and difficult commands to use in linux. Below are my attempts to delete the default route pointing to 10.0.37.250, becuase it needs to be repointed.
Code:
loadbal3 ~ # netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.37.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.0.33.0       0.0.0.0         255.255.255.0   U         0 0          0 eth1
127.0.0.0       127.0.0.1       255.0.0.0       UG        0 0          0 lo
0.0.0.0         10.0.37.250     0.0.0.0         UG        0 0          0 eth0
loadbal3 ~ # route del 0.0.0.0
SIOCDELRT: No such process
loadbal3 ~ # route del 0.0.0.0 10.0.37.250
SIOCDELRT: No such device
loadbal3 ~ # route delete 0.0.0.0 dev eth0
SIOCDELRT: No such process
loadbal3 ~ # route delete 0.0.0.0 gw 10.0.37.250
SIOCDELRT: No such process
loadbal3 ~ #
If anyone could give me a pointer on the correct syntax, I would appreciate it.
Thanks!
DT
 
Old 10-14-2004, 10:51 AM   #2
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
easy way is to use "netconfig" and definitly man netconfig is your freind
with netconfig you not only configure your interface but allow default route

regards
 
Old 10-14-2004, 11:00 AM   #3
dthacker
Member
 
Registered: Nov 2003
Location: Omaha, NE
Distribution: Ubuntu, Kubuntu, Ubuntu Server
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks for the tip, but this is a gentoo server, and has no GUI (even curses GUI) tools loaded. I really need the CLI syntax.
Thanks!
 
Old 10-14-2004, 11:16 AM   #4
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
try something like this

route add default gw mango-gw (replace mango-gw with your route host)

regards
 
Old 10-14-2004, 11:23 AM   #5
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
oops sorry I kinda fast hitting submit reply

try this link fo removing a route
http://www.comptechdoc.org/independe...etrouting.html
 
  


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
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 11:07 AM
unable to route with ip alias using one NIC simayi Linux - Networking 0 10-27-2004 04:45 AM
DHCP is unable to route cable connection Wolfy Linux - Networking 2 07-09-2004 09:52 PM
Ownership/Permission and Delete Syntax MadDogE134 Linux - Newbie 8 06-09-2004 06:05 PM
unable to use port25, always get a no route to host f1uke Linux - Networking 3 04-16-2003 10:12 PM

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

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