Solved

Add routes  in AIX

Posted on 2012-03-16
3
369 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now