Solved

Add routes  in AIX

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

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…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

707 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