Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Add routes  in AIX

Posted on 2012-03-16
3
Medium Priority
?
384 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

610 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