Re: deleting route from ODM

From: Adams Kevin J (kevin.adams@PHS.COM)
Date: Fri Feb 21 2003 - 14:33:31 EST


Shawn,

One easy way to do it in a permanent fashion is via smitty mkroute/rmroute,
which issues chdev commands under the covers.

You can use f6 in smitty to see the underlying commands.

Basically, the format is:

chdev -l inet0 -a route=net,-hopcount,hopcount,-netmask,netmask,dest,gw
chdev -l inet0 -a delroute=net,-hopcount,hopcount,-netmask,netmask,dest,gw

Kevin Adams
-----Original Message-----
From: Shawn Bierman [mailto:BiermanS@METHODISTHEALTH.ORG]
Sent: Friday, February 21, 2003 10:31 AM
To: aix-l@Princeton.EDU
Subject: [aix-l] deleting route from ODM

Greetings,

I need to clean up these inet0 attributes. Too many routes listed.

1. nf1n01en1: hostname nf1n01en1 Host Name
True
2. nf1n01en1: gateway
Gateway True
3. nf1n01en1: route net,-hopcount,0,,0,10.15.45.1 Route
True
4. nf1n01en1: route net,-hopcount,0,,0,198.254.18.1
5. nf1n01en1: route net,-hopcount,0,,,,0,198.254.18.1
6. nf1n01en1: route net,,0,10.15.44.254
7. nf1n01en1: bootup_option no Serial Optical
Network Interface True
8. nf1n01en1: rout6
FDDI Network Interface True
9. nf1n01en1: authm 131073,65536 Authentication
Methods True

I've numbered the lines for clarity. I need to get line 3 and 5 out of the
inet0. Also, I need to add a hopcount of "1" on line 6. Right now I do
this from the command line at every boot with: route delete default
10.15.44.254 and then follow up with: route add default 10.15.44.254
-hopcount 1.

The 10.15.45.1 no longer exists on this system so I do not need it. A
netstat output looks like this:
root at nf1n01en1 in / > netstat -rn
Routing tables
Destination Gateway Flags Refs Use If PMTU Exp
Groups

Route Tree for Protocol Family 2 (Internet):
default 198.254.18.1 UG 100 1656246 en1 - - =>
default 10.15.44.254 UG 0 0 en0 - -
10.15.43/24 10.15.43.101 U 0 0 css0 - -
10.15.43.101 127.0.0.1 UGHS 0 0 lo0 - -
10.15.44/24 10.15.44.101 U 466 307623 en0 - -
10.15.44.101 127.0.0.1 UGHS 0 33131 lo0 - -
127/8 127.0.0.1 U 66 1880724 lo0 - -
198.254.18/24 198.254.18.101 U 6 362427598 en1 - -
198.254.18.101 127.0.0.1 UGHS 103 120489553 lo0 - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 16896 -

10.15.44/24 is out private SP Lan network (en0), 198.254.18/24 is the public
network (en1) and 10.15.43/24 is the SP Switch2 network.

Just having trouble with the chdev commands to make it permanent.
thanks!
-shawn

This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.

If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:36 EDT