How to delete route entry from routing table

How to delete route entry from routing table

Post by lym959 » Sat, 31 Aug 2002 11:27:58



Dear :
    I got the following output after testing multipath routing function
under AIX 5.1.0.0.
    Now, question is , how could I delete these static route entry for
default gateway ?

OUTPUT
=============================================================
# netstat -rn
Routing tables
Destination      Gateway           Flags   Refs     Use  If   PMTU Exp
Groups

Route Tree for Protocol Family 2 (Internet):
default          10.32.35.71       UGc       0        0  en0     -   -   =>
default          10.32.35.1        UGc       0        0  en0     -   -   =>
default          192.168.6.1       UGc       0        0  en0     -   -   =>
default          192.168.6.1       UGc       0        0  en0     -   -   =>
default          10.32.35.1        UGc       0        0  en0     -   -   =>
default          10.32.35.71       UGc       0        0  en0     -   -

 
 
 

How to delete route entry from routing table

Post by Nicholas Drone » Sat, 31 Aug 2002 22:12:33



> Dear :
>    I got the following output after testing multipath routing function
> under AIX 5.1.0.0.
>    Now, question is , how could I delete these static route entry for
> default gateway ?
> OUTPUT
> =============================================================
> # netstat -rn
> Routing tables
> Destination      Gateway           Flags   Refs     Use  If   PMTU Exp
> Groups
> Route Tree for Protocol Family 2 (Internet):
> default          10.32.35.71       UGc       0        0  en0     -   -   =>
> default          10.32.35.1        UGc       0        0  en0     -   -   =>
> default          192.168.6.1       UGc       0        0  en0     -   -   =>
> default          192.168.6.1       UGc       0        0  en0     -   -   =>
> default          10.32.35.1        UGc       0        0  en0     -   -   =>
> default          10.32.35.71       UGc       0        0  en0     -   -

Use the route command, Luke.

Regards,

Nicholas

 
 
 

How to delete route entry from routing table

Post by Jim Trauz » Sat, 31 Aug 2002 23:59:38


You can manually delete a route by typing,
route delete default
I would flush the routes using smit and rest the default.

Jim

Quote:>     I got the following output after testing multipath routing function
> under AIX 5.1.0.0.
>     Now, question is , how could I delete these static route entry for
> default gateway ?

> OUTPUT
> =============================================================
> # netstat -rn
> Routing tables
> Destination      Gateway           Flags   Refs     Use  If   PMTU Exp
> Groups

> Route Tree for Protocol Family 2 (Internet):
> default          10.32.35.71       UGc       0        0  en0     -   -   =>
> default          10.32.35.1        UGc       0        0  en0     -   -   =>
> default          192.168.6.1       UGc       0        0  en0     -   -   =>
> default          192.168.6.1       UGc       0        0  en0     -   -   =>
> default          10.32.35.1        UGc       0        0  en0     -   -   =>
> default          10.32.35.71       UGc       0        0  en0     -   -

 
 
 

How to delete route entry from routing table

Post by lym959 » Wed, 04 Sep 2002 09:57:06


Hi,
I know how to use "route" command, but I want to delete the duplicate static entry, because they look like all the same.



> > Dear :
> >    I got the following output after testing multipath routing function
> > under AIX 5.1.0.0.
> >    Now, question is , how could I delete these static route entry for
> > default gateway ?

> > OUTPUT
> > =============================================================
> > # netstat -rn
> > Routing tables
> > Destination      Gateway           Flags   Refs     Use  If   PMTU Exp
> > Groups

> > Route Tree for Protocol Family 2 (Internet):
> > default          192.168.6.1       UGc       0        0  en0     -   -   =>
> > default          192.168.6.1       UGc       0        0  en0     -   -   =>

> Use the route command, Luke.

> Regards,

> Nicholas

 
 
 

How to delete route entry from routing table

Post by doug prob » Thu, 05 Sep 2002 21:05:47


Well, if you have the option of taking the interface off line  
and you have console access then;

run smitty fshrttbl
and select yes for flush routing table and yes to flush the ODM route
configuration database

Once this is done, add your default gateway and you will be squeaky
clean

Note if you do not flush ODM the routes will still be there to drive
you nuts!
Doug


> Dear :
>     I got the following output after testing multipath routing function
> under AIX 5.1.0.0.
>     Now, question is , how could I delete these static route entry for
> default gateway ?

> OUTPUT
> =============================================================
> # netstat -rn
> Routing tables
> Destination      Gateway           Flags   Refs     Use  If   PMTU Exp
> Groups

> Route Tree for Protocol Family 2 (Internet):
> default          10.32.35.71       UGc       0        0  en0     -   -   =>
> default          10.32.35.1        UGc       0        0  en0     -   -   =>
> default          192.168.6.1       UGc       0        0  en0     -   -   =>
> default          192.168.6.1       UGc       0        0  en0     -   -   =>
> default          10.32.35.1        UGc       0        0  en0     -   -   =>
> default          10.32.35.71       UGc       0        0  en0     -   -

 
 
 

1. How Do Routing Table Entries Get Added to Routing Table at Bootup?

I have, what I think, is a simple question for the TCP/IP guys out there
who are familar with routing tables on AIX 4.1.5/4.2.1 in an IBM SP
environment. Or maybe not.

I have recently noticed that when I execute a 'netstat -r' on a
particular node in the SP environment, there are routing table entries
that I know I didn't put in there. I have to delete these "unwelcomed"
entries and re-add the correct ones. This is undesireable and maybe a
quick crash course in routing tables is justified. These unwelcomed
routing table entries seem to be automatically added right after I have
IPL'ed the node in question.

How did these routing table entries get added in the routing table? Does
anybody know the process?

Thank you in advance for your responses.

  vcard.vcf
< 1K Download

2. Need help on /proc/[pid]/*

3. default route entry vanishing from routing table

4. BUG in sched.c, Kernel 2.4.1?

5. Routing table default route entry question

6. Modem Speeds from kppp

7. Deleting incorrect routing table entry

8. Running Linux off a removeable SCSI drive

9. building routing tables or listening to OSPF route information?

10. Routing question, how to duplicate route table in new distro?

11. Dropping route from route table

12. Removing a network route from the route table

13. pppd not setting up default route in routing table