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 <[EMAIL PROTECTED]> spewed forth: > >> David >> >> I tried to dump the gw addr: >> [root@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@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 Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``I have learned what some people are like. And if some people are like that, other people must have the means to shoot them.'' Donald Hamilton -- The Vanishers _______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
