help

David A. Bandel david
Mon May 17 11:41:19 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 8 Dec 2002 10:18:22 -0800
begin  Bill Campbell <bill at celestial.com> spewed forth:

> On Sun, Dec 08, 2002 at 11:51:52AM -0500, David A. Bandel wrote:
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >On Sun, 8 Dec 2002 06:14:07 -0800 (PST)
> >begin  Richard Sivernell <rrsivernell at yahoo.com> spewed forth:
> >
> >> David
> >> 
> >>    I tried to dump the gw addr:
> >> [root at Sivernell root]# route del -net 192.168.1.1
> >> netmask 255.255.255.0  gw gw dev eth0
> >> gw: No address associated with name
> >> [root at Sivernell root]# 
> >> 
> >> What is wrong with this cmmand.
> >
> >route del default gw 192.168.1.1
> >
> >will do it.  If it's the first gw entry, you only need:
> >
> >route del default
> 
> Actually I found just yesterday that the only way I could delete
> multiple default routes was to do ``route delete default'' multiple
> times, once for each default.  I had added a 2nd NIC to a machine on a
> public IP, and had default routes on eth0 to the private network's IP
> masquerading host, and on eth1 to the public router.
> 
> The only reliable way I've found to delete routes is to use exactly the
> same command used to add them, substituting ``delete'' for ``add''.
> 
> Here's a bit from my static routes setup script on one of our
> systems where we're routing to an IPSec VPN box.
> 
> /sbin/route delete -net 192.168.13.0 netmask 255.255.255.0 gw
> 192.168.253.49/sbin/route add -net 192.168.13.0 netmask 255.255.255.0 gw
> 192.168.253.49

I hate to type (besides, the more I type, the more mistakes I make), so I
offer this:

I have several routers on the Internet (Linux systems whos job is routing)
and I find I have to add/del/change routes on a fairly frequent basis.  I
use:

route add -net xxx.xxx.xxx.xxx/yy gw abc.def.ghi.jkl
if I have to delete the route, I find I don't need the "gw
abc.def.ghi.jkl" part unless I have already added the substitute route
first, then I need to remove it specifically with the gateway.

Guess what I really need to do is start using zebra, except that several
of the routes go to clients' Windoze boxes for Internet sharing, and of
course those useless POS' would have no clue about routing daemons.  In
fact, what they do is either "bridging" (a la M$, which means it's not
what we know as true bridging) or proxying, but not true routing.  So I
guess I'll be adding/deleting static routes for the forseeable future.

Ciao,

David A. Bandel
- -- 
Focus on the dream, not the competition.
		-- Nemesis Racing Team motto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE986NM3uVcotqGMQcRAktdAJ0bYhOzFjUSMrEZHP8wuxPmloR77QCfZdjH
nhvERqEAOroYgzGZsXfLU3Q=
=pgrn
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list