Example
x25 queue-length
Syntax
View
Parameter
Description
By default, no PVC is created. When creating such a PVC, if you do not set the
relevant attributes for the PVC, its flow control parameters will be the same as that
of the X.25 interface (the flow control parameters on an X.25 interface can be set
by the x25 packet-size and x25 window-size commands).
As one corresponding address mapping is created along with the PVC, it is
unnecessary (or impossible) to establish an address mapping first before creating
PVCs.
Before creating PVCs, you should first enable the PVC channel range. The range is
between 1 and the latest unprohibited channel PVC number minus 1 (including 1
and the lowest PVC number minus 1). Naturally, if the lowest PVC number is 1, the
PVC section will be disabled. The following table shows some typical PVC ranges.
Table 68 PVC channel ranges for some typical configurations
Incoming-only
PVC channel range
channel range
Disabled
[0, 0]
[1, 9]
[0, 0]
Disabled
[1, 10]
[1, 4]
[5, 10]
[1, 19]
[0, 0]
[1, 4094]
[0, 0]
# Configure the link layer protocol on the interface Serial 2/0 as X.25, enable PVC
channel range, and set two PVCs.
<Sysname> system-view
[Sysname] interface serial 2/0
[Sysname-Serial2/0] link-protocol x25
[Sysname-Serial2/0] x25 vc-range bi-channel 8 1024
[Sysname-Serial2/0] x25 pvc 2 ip 202.38.168.1 x121-address 20112451
broadcast packet-size 512 512
[Sysname-Serial2/0] x25 pvc 6 ip 202.38.168.3 x121-address 20112453
broadcast window-size 5 5
x25 queue-length queue-length
undo x25 queue-length
Interface view
queue-length: Queue length in packets, ranging from 0 to 9999. The
queue-length of 0 indicates sending no packets.
Use the
x25 queue-length
Use the
undo x25 queue-length
Two-way channel
range
[1, 1024]
[10, 24]
[15, 30]
[15, 25]
[0, 0]
[0, 0]
command to set the data queue length for X.25 VC.
command to restore the default.
453
Outgoing-only
channel range
[0, 0]
[0, 0]
[0, 0]
[30, 32]
[20, 45]
[4095, 4095]