Avatar of mnis2008
mnis2008
 asked on

Add routes in AIX

My netstat -rn command is missing the following routes

10.10.208/20       10.20.212.5       UG        0       108 en5      -      -
10.20.5/24         10.20.212.5       UG        0         0 en5      -      -
10.20.208/20       10.20.212.5       UG       19  80062293 en5      -      -
10.20.212.0        10.20.213.99      UHSb      0         0 en5      -      -   =>
10.20.212/23       10.20.213.99      U       185 116521684 en5      -      -


How do I add the routes ...????
Unix OS

Avatar of undefined
Last Comment
woolmilkporc

8/22/2022 - Mon
woolmilkporc

I think  you mean adding a route which will last across reboots?

The easiest way is certainly

"smitty mkroute"

Fill in the required values for

Destination TYPE  (net in your case)
DESTINATION Address (10.10.208 in your first example)
Default GATEWAY Address (10.20.212.5)
Network MASK (255.255.240.0)

Or use the

chdev -l inet0 -a route=...

command.

wmp
mnis2008

ASKER
how did we know that the network mask is 255.255.240.0 , I am more interested in knowing where did 240 came from..Can you please explain
ASKER CERTIFIED SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61