HP-UX Mobile IPv4 A.03.01 Administrator's Guide

8GTKH[KPICPF6TQWDNGUJQQVKPI
PGVVNCPFPGVHOV2CEMGV6TCEKPICPF(QTOCVVKPI
Chapter 8
90
nettl and netfmt Packet Tracing and Formatting
You can trace Mobile IPv4 protocol packets using nettl (network tracing utility). The
netfmt (network trace formatting) utility formats the Mobile IPv4 protocol packets and
present the packets in human-readable form, with protocol information labeled. For
more information on nettl and netfmt, refer to the nettl (1M) and netfmt (1M) man
pages.
Tracing Mobile IPv4 Packets
To trace Mobile IPv4 packets, you can enable network tracing for IP, or you can enable
tracing for only the specific upper-layer entities that send and receive Mobile IPv4
protocol packets.
Enable IP Tracing
If you enable IP tracing, nettl will trace all IP packets. This will generate a large
number of entries in the trace file. You can filter out only the Mobile IPv4 packets when
you format the trace file, as described in “Formatting Mobile IPv4 Packets” on page 91.
To enable IP tracing, use nettl or the nettladm utility and specify the IP entity. For
example, you could use the following nettl command to trace inbound (pduin) and
outbound (pduout) IP (ns_ls_ip) packets:
nettl -traceon pduin pduout -entity ns_ls_ip
LAN Driver Tracing You can also specify the appropriate LAN driver entity for your
topology (ns_ls_driver, btlan or vtlan) to trace all LAN packets. This will also
generate a large number of entries in the trace file.
Enable Tracing for Specific Upper-layer Entities
To decrease the number of trace records collected, you can selectively enable tracing for
only the upper-layer entities that send or receive Mobile IPv4 protocol packets that you
want to trace, as listed in Table 8-2.
Table 8-2 nettl Trace Entities for Mobile IPv4 Packets
Mobile IPv4 Packets Traced nettl Trace Entity
Registration Requests and Replies, Route Optimization
messages (Binding updates)
ns_ls_udp
Agent Advertisements, Agent Solicitations (sent as ICMP
Router Advertisements and Solicitations)
ns_ls_icmp
AAA messages ns_ls_tcp
Tunneled packets ns_ls_ip (this will also
trace all the packets for
the entities listed above)