Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static Route question

Status
Not open for further replies.
Nov 6, 2001
77
0
0
US
How do I tell if I'm using static routes?
 
I know that one way to do it is using the lsattr but this won't show the complete output unfortunately!

Code:
# lsattr -El inet0 -a route
route net,,0,10.1.1.1 Route True

Regards,
Khalid
 
Not sure really. But in our machines at work yes! most of the routes are static.

Regards,
Khalid
 

Netstat -r will display the routing table. I do believe 'D' means it's dynamic but consult the man page for netstat to be sure.

Also, for general network settings look at 'no'. It's got a lot of output but that's where the option for dynamic routing would be I think. Sorry, not near AIX now to check.
 
Yes unixfreak is right!

You can have the man page for netstat and this is the part where it takes about routing table:

Code:
Routing Table Display (netstat -r)

The routing table display indicates the available routes and their statuses.
Each route consists of a destination host or network and a gateway to use in
forwarding packets.

A route is given in the format A.B.C.D/XX, which presents two pieces of
information. A.B.C.D indicates the destination address and XX indicates the
netmask associated with the route. The netmask is represented by the number of
bits set. For example, the route 9.3.252.192/26 has a netmask of
255.255.255.192, which has 26 bits set.

The routing table contains the following ten fields:

Flags The flags field of the routing table shows the state of the route:

A
  An Active Dead Gateway Detection is enabled on the route. This field only
  applies to AIX 5.1 or later.

U
  Up.

H
  The route is to a host rather than to a network.

G
  The route is to a gateway.

D
  The route was created dynamically by a redirect.

M
  The route has been modified by a redirect.

L
  The link-level address is present in the route entry.

c
  Access to this route creates a cloned route. This field only applies to AIX
  4.2.1 or later.

W
  The route is a cloned route. This field only applies to AIX 4.2.1 or later.

1
  Protocol specific routing flag #1.

2
  Protocol specific routing flag #2.

3
  Protocol specific routing flag #3.

b
  The route represents a broadcast address.

e
  Has a binding cache entry.

l
  The route represents a local address.

m
  The route represents a multicast address.

P
  Pinned route.

R
  Host or net unreachable.

S
  Manually added.

u
  Route usable.

Direct routes are created for each interface attached to the local host.

Gateway The gateway field for these entries shows the address of the outgoing
interface.

Refs Gives the current number of active uses for the route. Connection-oriented
protocols hold on to a single route for the duration of a connection, while
connectionless protocols obtain a route while sending to the same destination.

Use Provides a count of the number of packets sent using that route.

PMTU Gives the Path Maximum Transfer Unit (PMTU). This field only applies to AIX
4.2.1 or later.

Interface Indicates the network interfaces utilized for the route.

Exp Displays the time (in minutes) remaining before the route expires. This
field only applies to AIX 4.2.1 or later.

Groups Provides a list of group IDs associated with that route. This field only
applies to AIX 4.2.1 or later.

Netmasks Lists the netmasks applied on the system.


Regards,
Khalid
 
Thank You. I don't know how many times I looked through the man pages looking for the meaning of the flags, but just didn't see it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top