Solved

Add routes  in AIX

Posted on 2012-03-16
3
376 Views
Last Modified: 2012-03-16
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 ...????
0
Comment
Question by:mnis2008
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37731525
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
0
 

Author Comment

by:mnis2008
ID: 37731546
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
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 37731579
Your mask  in CIDR notation is /20.

This is the replacement notation for the traditional decimal notation and simply means the number of significant bits (i.e. bits from the left to the right).

So in order to transform "20" to the 4-byte decimal notation we have

20 bits = 8 bits + 8 bits + 4 bits + 0 bits, which is binary
11111111 11111111 11110000 00000000

or hex
FF FF F0 00

or decimal, written in 4 blocks
255 (128+64+32+16+8+4+2+1)
255 (128+64+32+16+8+4+2+1)
240 (128+64+32+16+0+0+0+0)
    0 (0+0+0+0+0+0+0)

This is RFC 1878, a "memo" RFC issued for clarification purposes:

http://www.ietf.org/rfc/rfc1878.txt

wmp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question