Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
24.  Administering Mobile IP (Task) Modifying the Mobile IP Configuration File How to Display Current Parameter Settings in the Configuration File  Previous   Contents   Next 
   
 

Displaying Mobility Agent Status

You can use the mipagentstat command to display a foreign agent's visitors list and a home agent's binding table. "Mobile IP Mobility Agent Status" provides a conceptual description of the mipagentstat command. You can also review the mipagentstat(1M) man page.

How to Display Mobility Agent Status

  1. Become superuser on the system where you are enabling Mobile IP.

  2. On a command line, type the following command.

    # mipagentstat <option> 

    You can use the following options:

    -f

    Shows the list of active mobile nodes in the foreign agent's visitor list

    -h

    Shows the list of active mobile nodes in the home agent's binding table

    -p

    Shows the list of security associations with an agent's mobility agent peers

For example, to show the visitor list for all mobile nodes that are registered with the foreign agent, use the following command.

# mipagentstat -f

This command causes the following results to be displayed (for example).

Mobile Node     Home Agent     Time (s)     Time (s)  Flags
                               Granted      Remaining
--------------- -------------- ------------ --------- -----
foobar.xyz.com  ha1.xyz.com    600          125       .....T.
10.1.5.23       10.1.5.1       1000         10        .....T.

To show the foreign agent security associations, use the following command.

# mipagentstat -p

This command causes the following results to be displayed (for example).

Foreign                  ..... Security Association(s).....
Agent                    Requests Replies  FTunnel  RTunnel
----------------------   -------- -------- -------- --------
forn-agent.eng.sun.com   AH       AH       ESP      ESP

To show the home agent security associations, use the following command.

# mipagentstat -fp

This command causes the following results to be displayed (for example).

Home                     ..... Security Association(s) .....
Agent                    Requests Replies  FTunnel  RTunnel
----------------------   -------- -------- -------- --------
home-agent.eng.sun.com   AH       AH       ESP      ESP
ha1.xyz.com              AH,ESP   AH       AH,ESP   AH,ESP

Displaying Mobility Routes on a Foreign Agent

You can use the netstat command to display additional information about source-specific routes that are created by forward and reverse tunnels. See the netstat(1M) man page for more information about this command.

How to Display Mobility Routes on a Foreign Agent

  1. Become superuser on the system where you are enabling Mobile IP.

  2. On a command line, type the following command.

    # netstat -rn 

The following example shows the routes for a foreign agent that uses a reverse tunnel.

Routing Table:   IPv4 Source-Specific     
Destination      In If     Source      Gateway Flags  Use  Out If
--------------  ------- ------------ --------- -----  ---- -------
10.6.32.11      ip.tun1      --      10.6.32.97  UH      0 hme1
    --          hme1    10.6.32.11       --      U       0 ip.tun1

The first line indicates that the destination IP address 10.6.32.11 and the incoming interface ip.tun1 select hme1 as the interface that forwards the packets. The next line indicates that any packet originating from interface hme1 and source address 10.6.32.11 must be forwarded to ip.tun1. This is an example of a reverse-tunnel route.

 
 
 
  Previous   Contents   Next