Solstice X.25 9.2 Administration Guide

x25trace Examples

Below are some examples of using x25trace for tracing incoming and outgoing packets.

Tracing LAPB and X.25 on /dev/lapb:

To trace LAPB frames and X.25 packets as they are sent or received by LAPB, enter:


hostname# x25trace -i /dev/lapb 

To trace X.25 packets as they are seen by the X25 driver, type one of the two following commands:


hostname# x25trace -i /dev/x25 x25
hostname# x25trace

Tracing LLC2 and X.25 on /dev/llc2:


hostname# x25trace -i /dev/llc2 

The command above captures all LLC frames, including Unnumbered Information frames used to carry CLNP and ES-IS PDUs. When tracing at the X.25 level on an LLC2 link, MAC addresses are displayed as 0:0:0:0:0:0. Tracing at the LLC2 level on the same link returns the correct MAC addresses.

Tracing a single X.25 connection (logical channel number):


hostname# x25trace -i /dev/lapb x25lcn  lcn_num x25 

Tracing only the next X.25 connection being set up:


hostname# x25trace -i /dev/lapb x25lcn + x25

Tracing LLC2 frames on /dev/llc2:


hostname# x25trace -i /dev/llc2 llc

Tracing X.25 packets to/from specific MAC addresses on /dev/llc2:


hostname# x25trace -i /dev/llc2 srcmac 8:20:0:1:2:3 x25
hostname# x25trace -i /dev/llc2 dstmac 8:20:0:1:2:3 x25
hostname# x25trace -i /dev/llc2 betweenmac 8:20:0:1:2:3 9:0:2b:18:21:5 x25 

Trace outgoing LLC2 frames that are not multicast:


hostname# x25trace -i /dev/llc2 pdu_out not multicast

Redirecting trace of X.25 packets over an LAPB link to a file:


hostname# x25trace -a -i /dev/lapb x25 > /var/adm/x25/packets.record