X.25 and LAPB configuration command directory

encapsulation x25

translate x25

translate tcp

x25 address

x25 alias

x25 cwla

x25 dbit

x25 ebackup

x25 htc

x25 idle

x25 incallcheck

x25 interface

x25 k

x25 map(pad)

x25 map(pvc)

x25 map(svc)

x25 mod 

x25 n1

x25 n2

x25 nps

x25 nui

x25 nws 

x25 pad-access

x25 psize

x25 pvc

x25 t1

x25 t2

x25 t20

x25 t23 

x25 tcp 

x25 wsize

x25switch connect

x25switch destination

x25switch xot pvc

x25switch xot svc

x29 profile

clear x25

show x25

show x25 tcp

show x25 xot

show x25 vc

show x25switch

show x29

debug lapb

debug x25

Use commands in this chapter to configure LAPB and X25 service. X25 can provide services include remote end-point access and encapsulation of IPprotocol.

For configuration information and examples of X25 and LAPB, please refer to chapter “configure X25 and LAPB” in <WAN configuration guide>.

encapsulation x25

Designate the serial interface as X25 device. Use no encapsulation x25 to disable X25 encapsulation.

[no] encapsulation x25

parameter:

none

command mode:

Interface configuration mode

Explanation:

One side of X25 link must be logical Dce, and the other side must be logical DTE, (this allocation bears no relation with DTE or DCE identification of interface hardware).

for example:

The following example configures the encapsulation of X25 protocol:

Router_config#interface s1/0

Router_config_s1/0#encapsulation x25

related commands:  

x25 map

 

translate x25

   Encapsulate X25 to the virtual interface

   translate x25 x121-address virtual-template virtual-template-interface-number

parameter:

X121-address

Variable X121 address which is allocated by X25 network service.

Virtual-template-interface-number

Interface-number of Logical Virtual template

default:

none

command mode:

global configuration mode  

Explanation:

X.121 address is attained by the address allocated by X25 network service provider plus a sub-address (can be used to identify logical virtual port). When the length of X121 address is less than 15 bits, X25 network will transfer all the address information to the destination. As this configuration is to map vc of X25 to logical virtual port, so the maximum virtual connection is limited by the maximum virtual ports (less that 300 for the router system), it is different from the real X25 virtual connection (a maximum of 4095 can be configured on each physical port).

for example:

The following example configures to send x25 packet with destination address(123456+11) to the virtual logical port cloned from logical virtual template 0 (this port is created dynamically), in order to complete the real communication process. (please refer to: configuration map)

Router_config# translate x25 12345611 virtual-template 0

 

translate tcp

    translate tcp ip ip-address x25 x121address    

  Configure X25-Tcp exchange

parameter:

x121-address

Variable X.121 address, this address is allocated by X.25 network service provider

Ip-address

IP address connects with source

default:

none

command mode:

global configuration mode  

Explanation:

X.121 address is attained by the address allocated by X25 network service provider plus a sub-address (can be used to identify logical virtual port). When the length of X121 address is less than 15 bits, X25 network will transfer all the address information to the destination. (this function is not provided in the formal version, it is only provided in some trial version.

for example:

The following example configures to forward the tcp connection attempt from 192.168.20.130 to the X25 connection attempt with destination address of 111 so as to establish the exchange link of X25-tcp (please refer to “configuration table”)

Router_config# translate tcp ip 192.168.20.130 x25 111

 

translate tcp listen-port port

    Configure the listen-port of X25-TCP.

parameter:

port

Listen port of TCP connection

 

default:

none

command mode:

global configuration mode  

Explanation:

You can only enable the listening process of TCP connection after configuring this command.

for example:

The following configuration will enable TCP listening process on port 2000.

Router_config# translate tcp listen-port 2000

 

translate tcp userdata line

    Configure the user data of X25 linkage

parameter:

line

Hex value of user data

 

default:

CC000000

command mode:

global configuration mode  

Explanation:

You may use different user data in X25 linkage processes in different applications. It uses the user data 0xcc000000 aims at the situation when upstream is ip.

for example:

The following example configures to include user data 03010100 in X25 linkage packet.

Router_config# translate tcp userdata 03010100

 

x25 address

Configure the X.121 address on network interface.

x25 address x121-address

parameter:

x121-address

Variable X121 address. This address is allocated by X.25 network service provider.

default:

none

command mode:

Interface configuration mode

Explanation:

The user must configure this parameter before normal operation. This address must match the address allocated by X25 network service provide.

for example:

The following command configures the X.121 address on the interface:

Router#interface s1/0

Router_config_s1/0#encapsulation x25

Router_config_s1/0#x25 address 00000123005  

 

x25 alias

Configure the cname of the address of interface, this address cname allows the interface to use other information register address to receive calling.

[no] x25 alias string

parameter:

string

Set an address alias for local interface

default:

none

command mode:

Interface configuration mode

Explanation:

There are 8 address aliases to be configured on the interface at most. When they receive incoming calls, these aliases can have the same function as the local X.121 address, when they are calling out, these address aliases do not function.

for example:

In the following example, serial 1/0 is configured as alias 12345:

Router#interface s1/0

Router_config_s1/0#encapsulation x25

Router_config_s1/0#x25 address 0000123

Router_config_s1/0#x25 alias 12345

x25 cwla

X25 calling request the packet to carry calling address.

[no] x25 cwla

parameter:

no

Prohibit carrying calling address in outgoing calling packet

default:

Carry calling address in calling request packet

command mode:

Interface configuration mode

Explanation:

Calling address can be omitted in X.25 calling request packet. This command means whether to carry calling address in outgoing calling packet

example:

Prohibit carrying of calling address in outgoing calling packet

Router_config_s1/0#no x25 cwla

x25 dbit

Set whether to permit D bit reset

[no] x25 dbit

parameter:

no

Do not permit D bit reset

default:

Do not permit D bit reset

command mode:

Interface configuration mode

Explanation:

D bit can be used in call set up packet and data packet. The purpose of it is to distinguish whether the acknowledgement of the data packet is confirmed locally by X25 interface or by remote DTE.D=0 means acknowledged local, D=1 means acknowledged by DTE.

example:

Permit D bit reset

Router_config_s1/0#x25 dbit

 

x25 ebackup

Ebackup function is used to run remote listening towards X.25 or frame realy line, and to realize backup without using dynamic routing. Ebackup function will run remote host state supervision towards all ebackup type map addresses on this interface. It will report the state of the remote host to upstream module to realize the stable conversion of multi-line backup process.

x25 ebackup seconds

parameter:

seconds

Enquiry interval 1-65535 (second)

command mode:

Interface configuration mode

for example:

The following is the typical configuration of ebackup function:

Router_config_s1/0#x25 map 192.168.0.1 svc 1111 ebackup

Router_config_s1/0#x25 ebackup 30

 

x25 htc

Use interface configuration command “x25 htc” to configure the maximum virtual circuit number:

x25 htc circuit-number

parameter:

circuit-number

Virtual circuit number between 1 and 4095. Default value is 16.

default:

16

command mode:

interface configuration mode

Explanation:

The number of htc is bigger than pvc.

example:

The following example sets the range of effective virtual circuit as 25:

Router_config_s1/0#x25 htc 25

relevant commands:

For document information of the related commands, please use main index or search online.

x25 pvc

x25 clear

x25 idle

Designate the SVC leisure time before the router clears SVC.

x25 idle seconds

parameter:

Seconds

Leisure circle. Range: 0- 2147483647(s)

100 seconds by default, 0 means this timer is not used.

default:

      100 seconds

command mode:

Interface configuration mode

Explanation:

When transferring IP data on X.25 network, it is a must to first establish X.25 connection before transferring IP data packets. If there is a persistent IP data transmission, X.25 connected will not be cleared and is always on. Because the charge of X.25 is based on the data volume and the duration of time after the connection, so from the perspective of saving the communication cost, if there is not IP data packet transferring for a long time, you shall clear the X.25 connection. This parameter is to set the duration to wait to clear X.25 when the noneIP data packets are designated. After clearing the X.25 connection, when there is IP data transmission next time, it still automatically establishes X.25 connection first.

When this parameter is set as 0, the leisure circle is infinity.

example:

The following example sets a 5 minutes wait circle before clearing the leisure circuit:

Router_config#interface s1/2

Router_config_s1/2#x25 idle 300

 

x25 incallcheck

For document information about related commands, please use main index or online search.

x25 incallcheck

Configure whether to check the call address according to X.25 map list

[no] x25 incallcheck

parameter:

no

no checking of the X.121 address of the call

default:

Check the call address according to X.25 map list

command mode:

Interface configuration mode

example:

No checking of the called X.121 address.

Router_config_s1/1#no x25 incallcheck

x25 interface

Designates if the current X.25 port is DTE or DCE.

x25 interface [dte|dce]

parameter:

dte

Designate current X.25 port as DTE

dce

Designate current X.25 port as DCE

default:

dte

command mode:

Interface configuration mode

Explanation:

An X.25 connection should be DCE logically on one port, and DTE on another. Normally, when connected into public grouping exchange network, the user device was set as DTE, and the grouping exchanger as DCE.

example:

Set the port as DCE mode

Router_config_s1/1#x25 interface dce

x25 k

Designate the maximum number of unprocessed frames permitted (called the window size).

x25 k window-size

parameter:

window-size

Frame number, range from 2 to modulus size-1. If the modulus is 7, maximum frame number is 7, if the modulus is 128, maximum frame number is 127. 7 by default.

default:

7 frames

command mode:

Interface configuration mode

Explanation:

When the protocol is connecting, if the window size is changed, there will be protocolreset.

When you are using LAPB modulus 128 (extension mode), you should add window parameter k to send more frames before confirmation. The parameter to add windows is the basis of acquiring more take in and send out capability on high speed links with low error rate.

This value should match the value configured in X.25 exchanger. The non-matching will bring about repeated LAPB rejection frames.

example:

The following example, set the LAPB window size (k parameter) as 10 frames:

Router_config_s1/0#x25 k 10

related commands:

For document information of related command, please use main index or search online.

x25 mod  

 

x25 map(pad)

Configure to enable the access of router’s source x121 address list through pad:

[no] x25 map pad x121-address

parameter:

x121-address

X.121 address

no

Means delete a exchange virtual circuit map, otherwise increase a exchange virtual circuit map.

default:

none

command mode:

Interface configuration

Explanation:

This list only applies after configured command “x25 pad access…… filters the incoming x121 address.

Example:

The following example. configure an X.121 address 1234 which can access this router:

Router_config#interface s1/0

Router_config_s1/0#x25 map pad 1234

related commands:

x25 pad-access

show x25

 

x25 map(pvc)

Use the interface configuration command “X25 map” to configure the map from LAN protocol to the remote host. Add or delete a PVC map according to the following command:

[no] x25 map ipaddress pvc pvc_no [broadcast] [ebackup]

parameter:

ipaddress

IP address

pvc_no 

DLCI number

broadcast

Means this address map permits sending of broadcast packets/

ebackup

Measn that this address map belongs to enhanced backup type.

no

Means to delete an exchange virtual circuit map, otherwise add one.

default:

Do not configure map to the remote host.

command mode:

Interface configuration mode

for example:

1) Configure the s1/1 port as X.25, add a PVC may: 130.130.0.1, pvc 16.

Router_config#interface s1/1

Router_config_s1/1#enca x25

Router_config_s1/1#x25 map 130.130.0.1 pvc 16

2) Delete a PVC map:130.130.0.1, pvc_no:16

Router_config_s1/0#no x25 map 130.130.0.1 pvc 16

related commands:

For document information about the related command, please use the main index or online search.

show x25

x25 map(svc)

Configure the map from LANprotocol to remote host. Add or delete an exchange virtual circuit map according to the following command:

[no] x25 map ipaddress svc x121-address [broadcast] [ebackup]

parameter:

ipaddress

IP address.

x121-address

X.121 address

broadcast

Means that this address map permits sending broadcast packets

ebackup

Means this address map belongs to enhances backup type.

no

Means delete an exchange virtual circuit may, otherwise add one.

default:

No configuration of the map to remote server.

command mode:

Interface configuration

Explanation:

When client’s X.121 address is not certain (for example the client enters into the network through X.32 or dial-up with X.28), you should configure the client’s X.121 address as 8 “0”s, here the router will not actively call the client.

As most data packet router protocols send packets to their neighbour via multicast or broadcast, so you should use key word “broadcast” to run such router protocol on X.25.

In order to avoid the confusion of configuration, a given protocol address pair cannot be applied on various maps on the same interface.

example:

The following example maps the IP address 172.20.2.5 as X.121 address 000000010300. key word “broadcast” sends the broadcast to the designated X.121 address through this interface.

Router_config#interface s1/0

Router_config_s1/0#x25 map 171.20.2.5 svc 000000010300 broadcast

related commands:

show x25

x25 mod

To designate basic (modulus8) and extension (modulus128) protocol mode of LAPB and X25.

x25 mod modulus

parameter:

modulus

8 or 128. 8 designates the basic mode, 128 for extension mode. 8 by default.

default:

Modulus 8

command mode:

Interface configuration mode

Explanation:

Modulus parameter determines whether to use basic mode or extension mode. Basic mode attributes serial number to information frames between 0-7, extension mode attributes serial number to information frames between 0-128. We use basic mode more often, and it is enough for most links. Extension mode is optional this function can have more transmission volume on high speed links with lower error rate.

LAPB mode can be configured on LAPB link or X.25. the modulus of X.25 has no relation with the modulus of LAPB layer, you should use the same LAPB modulus on the two sides of the link. In order to simplify the configuration, the router simultaneously configures the modulus of LAPB and X.25, which means that this command can simultaneously configure the operation mode of LAPB and X25, the two are always the same.

When using LAPB modulus 128 (extension mode), you should add window parameter k to send more frames before requesting confirmation. Adding window parameter is the basis to acquire more volume of the high speed link with a low error rate.

Change the window size when the protocol is in connection mode, and it will result in protocolreset.

example:

he following example uses LAPB extension mode to configure X.25 link:

Router_config#interface s1/1

Router_config_s1/1#encapsulation x25

Router_config_s1/1#x25 mod 128

Router_config_s1/1#x25 k 40

related commands:

x25 k  

 

x25 n1

To designate the maximum frame length (LAPB N1 parameter), use X25 n1 interface configuration command:

x25 n1 bytes

parameter:

Bytes

Maximum byte, 137-1512.

default:

1500

command mode:

Interface configuration mode

Explanation:

The change of value of LAPB N1 parameter cannot give much benefit to the interface MTU, and if the configuration is wrong, it will easily cause link failure. It is suggested that you save this parameter as the default value.

X.25 accepts calls of default grouping size, this call designates the maximum size which is greater than what LAPB layer supports, but negotiates the calls on the maximum interface it may support. For exchange calls, the grouping size performs port to port negotiation through the router, so the calls will not exceed the maximum grouping size of any ports of the concerned two.

example:

Set n1 to 136:

Router_config# interface s1/1

Router_config_s1/1# x25 n1 137

x25 n2

To designate the maximum times of the data frame transmission (LAPB N2 parameter), use X25 n2 interface configuration command:

x25 n2 tries

parameter:

tries

Transfer calculation. Range from 1-255. 16 by default.

default:

16 times

command mode:

Interface configuration mode

Explanation:

Normally 5-16 for N2.

example:

The following example set N2 to 50:

Router_config#interface s1/0

Router_config_s1/0#x25 n2 50

x25 nps

Open/close the grouping length negotiation function

[no] x25 nps

parameter:

no

Prohibit grouping length negotiation (outgoing calls)

default:

Prohibit grouping length negotiation (outgoing calls)

command mode:

Interface configuration mode

Explanation:

When the router receives all X.25 incoming call groupings, it can process the related negotiation parameters about length and window in grouping, and makes corresponding treatment. This parameter mainly means whether to attach negotiation parameters during outgoing calls.

example:

Open the grouping length negotiation function (outgoing calls)

Router_config_s1/1#x25 nps

 

x25 nui

Use x25 nui interface configuration command to set the network user identification and password.

[no] x25 nui passwd&nui

parameter:

Passwd&nui

password and nui, nui has 8 bits by standard.

default:

No default value for standard X.25 encapsulation.

command mode:

Interface configuration

example:

Set the NUI as SHSHX000, and the password is ABCDEF

Router_config_s1/1#x25 nui ABCDEFSHSHX000

 

x25 nws

Open/close the grouping window size negotiation function

[no] x25 nws

parameter:

no

Prohibit grouping window size negotiation (outgoing calls)

default:

Prohibit grouping window size negotiation (outgoing calls)

command mode:

Interface configuration mode

Explanation:

When the router accepts all X.25 incoming call groupings, it can process the related negotiation parameters about length and window in groupings, and treat them accordingly. This parameter mainly means whether to attach negotiation parameter during outgoing calls.

example:

Open the grouping window size negotiation function (outgoing calls)

Router_config_s1/1#x25 nws

 x25 pad-access

Open/close x25 pad access control function

[no] x25 pad-access

parameter:

no

Prohibit X25 pad access control function

default:

Prohibit x25 pad access control function

command mode:

Interface configuration mode

Explanation:

When configured this function, the router checks x121 address of the calling source during acceptance of all X25 pad incoming call groupings, if this address is in the pad map list statically configured, accepts it, otherwise refuses it. If not configured pad map list, refuses all pad incoming calls.

example:

Enable X25 pad access control function

Router_config_s1/1#x25 pad-access

 

x25 psize

Set the grouping size of X25 grouping layer, use x25 psize interface configuration command:

x25 psize size

parameter:

size

Grouping size of grouping layer (byte as the unit), range (128,256,512,1024)

default:

128 by default

command mode:

Interface configuration mode

Explanation:

When modifying the value of psize, remember to set the N1 value greater than 8 plus psize value.

example:

Change psize to 256

Router_config_s1/1#x25 psize 256

 

x25 pvc

In order to set the maximum permanent virtual circuit number, use x25 pvc interface configuration command:

x25 pvc circuit-number

parameter:

circuit-number

Virtual circuit number between 1 and 1024, if there isn’t a virtual circuit, the number is 0. 0 by default. The maximum value is affected by command x25 htc.

default:

0

command mode:

Interface configuration mode

Explanation:

The number of PVCs should be less or equal to the total virtual circuits. Under the following configuration, the modees of various virtual circuits are as follows:

Virtual circuit

1

2

3

4

...

14

15

16

Mode

pvc

pvc

svc

svc

...

svc

svc

svc

example:

The following example sets the range of effective PVC:

Router_config#interface s1/0

Router_config_s1/0#x25 pvc 2

related commands:

x25 htc

x25 clear  

 

x25 t1

In order to set resend timer circle (LAPB T1 parameter), use x25 t1 interface configuration command:

x25 t1 seconds

parameter:

Seconds

Time in seconds. Value ranges from 1 to 64 seconds. 3 seconds by default.

default:

3

command mode:

Interface configuration mode

Explanation:

    After resend timer decides how much time the transfer frame can remain uncertain, LAPB soft begins to make enquiry confirmation. LAPB protocol design defines that if it does not receive confirmation in T1, the frame is supposed to be lost. A too small value of T1 can result in repeat control information, this may seriously interrupt the service.

example:

The following example sets the T1 resend timer to 2 seconds:

Router_config#interface s1/0

Router_config_s1/0#x25 t1 2

 

x25 t2

To configure the link layer receiving overtime timer, use x25 t2 interface configuration command:

x25 t2 seconds

parameter:

seconds

Link layer receiving overtime seconds, ranges from 1 to 32.

default:

1

command mode:

Interface configuration mode

Explanation:

T2 value in DTE device can be different with t2 value in DCE, but should inform the client. When t2 timer dues, DTE(or DCE) should send confirmation frame, so as to enable it to receive confirmation frame (t2<t1) before T1 timer of DTE(or DCE) overtimes.

example:

设置t22

Set t2 as 2:

Router_config#interface s1/0

Router_config_s1/0#encapsulation x25

Router_config_s1/0#x25 t2 2

related commands:

x25 n2

x25 t1 

x25 t20

In order to configure resend timer(t20) of DTE device, please use command x25 t20:

x25 t20 seconds

parameter:

seconds

Number of seconds, 180 seconds by default.

default:

180

command mode:

Interface configuration mode

for example:

The following example sets the T20 timer as 90:

Router_config#interface s1/0

Router_config_s1/0#x25 t20 90

x25 t23

In order to the clear request resend timer (T23) of DTE device, use x25 t23 interface configuration command:

x25 t23 seconds

parameter:

seconds

Number of seconds. 180 seconds by default

default:

180

command mode:

Interface configuration mode

example:

The following example configures the T23 timer to 90 seconds:

interface s1/0

 x25 t23 90

x25 tcp

     Configure the x25-tcp exchange gateway related parameter

    x25 tcp user-data line

    x25 tcp pkt-format [rfc1006|transparent|user]

    x25 tcp iso-address line  

    x25 tcp pvc-cause-diag  cause diag

    x25 tcp pvc-rst-timeout-value

parameter:

Line

String format in hex form

Rfc1006

Performs packet exchange with rfc1006 format

Trans-parent

Performs packet exchange with transparent mode

user

Performs packet exchange according to specific format defined by the user.

pvc-cause-diag

When adopting pvc mode of X25-TCP, the cause and diagnose code of pvc reset packet

pvc-rst-timeout

The wait timer before receiving the second pvc reset

default:

user-data   empty by default

rfc1006 by default

Empty by default  

0,0 by default

60 seconds by default

command mode:

Interface configuration mode

Explanation:

The configuration of user-data is set according to the configuration requirement of destination exchanger. User of pkt-format enabled the requirement of specific user, normally no need to configure this option, for iso-address, some exchangers require it while others do not, no configuration by default. Different types of exchangers may use different cause and diagnose code to set up pvc connection, you can configure command x25 pvc pvc-cause-diag. Different types of exchangers may require different times of pvc reset process, for each reset process, you can set the pvc-rst-timeout to the shortest (1s), for two reset processes, you can set pvc-rst-timeout to the longest (255s)to guarantee the second reset process.

example:

The following example configures the user data as “10300025”, this data will be taken in the setup packets when x25 establishes a link.

config_s1/1#x25 tcp user-data 10300025

   

x25 wsize

Configure x.25 grouping layer window size, use x25 wsize interface configuration command:

x25 wsize packets

parameter:

packets

Grouping layer window size, range from 2 to wsize modulus minus 1

default:

2 by default

command mode:

Interface configuration mode

Explanation:

When the modulus is 8, this parameter has a value from 2 to 7, when the modulus is 128, this parameter has a value from 2 to 127

example:

Change wsize to 5.

config_s1/1#x25 wsize 5

 

x25switch connect

Use interface configuration command x25 switch connect to add/delete a PVC connection route in X.25 exchange list.

[no] x25switch connect port1 port1_pvc_no port2 port2_pvc_no

parameter:

port1

The first port of PVC exchange.

port1_pvc_no

The PVC number of the first port.

port2

The second port of pvc exchange.

port2_pvc_no

The pvc number of the second port.

no

Means to delete a pvc connection route, otherwise means to add one.

default:

none

command mode:

global configuration mode  

Explanation:

When configuring the exchange list, the two sides connected should be encapsulated as x25, and there should be effective pvc.

example:

Set s1/0,s1/1 port as X25, set their pvc number as 2, add pvc connection in the x25 exchange list, exchange grouping between the first pvc of s1/0 port and that of s1/1 port.

Router_config#int s1/0

Router_config_s1/0#enca x25

Router_config_s1/0#x25 pvc 2

Router_config_s1/0#quit

Router_config#int s1/1

Router_configs1/1# enca x25

Router_config_s1/10#x25 pvc 2

Router_config_s1/1#quit

Router_config#x25sw connect s1/0 1 s1/1 1

x25switch destination

Add/delete a port address in x.25(SVC) exchange list:

[no] x25switch destination [x121addr|default] port

parameter:

x121addr

X121 address (can use “*” to illustrate 0-9

default

Default word, means all the undesignated x.121 address.

port

Encapsulated as port X.25

no

Means to delete a PVC connection route, otherwise means add one.

default:

none

command mode:

global configuration mode  

Explanation:

When you configure the exchange list, the exchange port should be encapsulated as X.25.

example:

Set the s1/0, s1/1 port as X.25, add svc connection in the X.25 exchange list: 1111->s1/0, 2222->s1/1, then the two hosts can communicate directly on X.25 through calling 1111, 2222, meanwhile to complete the IP packet exchange.

Router_config#int s1/0

Router_config_s1/0#enca x25

Router_config_s1/0#x25 interface dce

Router_config_s1/0#quit

Router_config#int s1/1

Router_config_s1/1#enca x25

Router_config_s1/1#x25 interface dce

Router_config_s1/1#quit

Router_config#x25sw destination 1111 s1/0

Router_config#x25sw destination 2222 s1/1

 

x25switch xot pvc

This command is used to configure the X25 over TCP based on PVC.

parameter:

local-interface

Local interface

local-pvc-number

Local pvc number

remote-interface

Remote interface

remote-pvc-number

remote pvc number

remote-ip-address

remote ip address

[source interface]

source interface

default:

none

command mode:

global configuration mode

Explanation:

You cannot establish TCP connection on the first configured interface, you must wait until the other interfaces are configured and then initiate the connection request on the other side to establish a connection. When configuring this command, you should notice the pvc number on both interfaces or the crossing of the IP address.

example:

The following configuration set the X25 packet on pvc2 of local serial 1/0 to the remote 192.168.20.92 through TCP, the packet will be forwarded to PVC 3 of serial 1/0 on the remote side.

Router_config#x25switch xot pvc serial 1/0 2 serial 1/0 3 192.168.20.92

related commands:

show_x25_xot

debug_x25

x25switch xot svc

This command is used to configure the X25 over TCP based on SVC.

parameter:

X.121-address

remote X.121 address

remote-ip-address

Remote IP address

[source interface]

Source interface

default:

none

command mode:

global configuration mode

explanation:

Explanation:

After local configuration, TCP is established when it receives calls to remote destination (X.121-address); when it disables the configuration or receives the information to clear the connection, the TCP connection disconnects.

example:

the following example configures to receive the calls to destination 1760001, and forwards to the remote 192.168.20.92 through TCP connection.

Router_config#x25switch xot svc 1760001 192.168.20.92

related commands:

show_x25_xot

debug x25

 

x29 profile

    Configure the x3 related parameter used by pad operation

    x29 profile default [[x3-param:x3-value]…]

    x29 profile profile-number [[x3-param:x3-value]…]

parameter:

Default

Configure the X3 parameter used by x29d

profile-number

Configure the X3 parameter of designated profile number

x3-param

X3 parameter serial

x3-value

X3 parameter value

default:

X3 parameters of x29 and x29d are the same

  1:1    2:1    3:66   4:0    5:0    6:5    7:0    8:0    9:0   10:0   11:14

 12:0   13:0   14:0   15:1   16:0   17:0   18:0   19:0   20:0   21:0   22:0

 

command mode:

Configuration mode

Explanation:

You can input as many parameter value pairs as you want during the configuration process, for the same parameter serial, use the last pair arisen.

example:

Router_config# x29 profile default 3:2  

 

clear x25

Clear the certain X25 exchange virtual circuit (SVC).

clear x25  port vc-number

parameter:

port

X25 port number

vc-number

SVC serial between 1 and 1024,(this is the default value, the upper and lower limit are determined separately with x25 pvc and x25 htc)

command mode:

Interface configuration mode

Explanation:

This command form is used to force stoppage of service on individual circuits.

example:

The following command clears the no1 SVC on s1/0 interface:

Router#clear x25 s1/0 1

show x25

Show the version information of X25.

show x25

parameter:

none

command mode:

Configure mode

Explanation:

command show x25 shows the following information:

l         Version information of X25;

l         Version information of XOT;

example:

The following is the example of command show x25 output:

Router# show x25

X.25 software, Version 2.0.1d

XOT software, Version 1.0.1d 

show x25 tcp

Show the established information of x25-tcp.

show x25 tcp

parameter:

none

command mode:

supervisor mode

explanation:

Command show x25 tcp shows the following information:

·     x25-tcp PVC exchange information established;

·     x25-tcp SVC exchange information established

          (This function is not provided in the formal version, it is currently only provided in some trial version)

 

Example:

The following is the example of command show x25 tcp output:

Router#show x25 tcp

Serial1/0 PVC 1: Connected

  TCP: [192.168.20.73,2000/192.168.20.70,1672]

  X25: Is521/0, Os1/0

  TCP: Is1/525, Os1/0

Serial1/0 SVC 3: From 1111 Connect To 4444

  TCP: [192.168.20.73,2000/192.168.20.70,3840]

  X25: Is2084/0, Os1/0

  TCP: Is1/2100, Os1/0

show x25 xot

Show the configured xot information

show x25 xot

parameter:

none

command mode:

supervisor mode

explanation:

Command show x25 vc shows the following information:

l         The configured XOT PVC exchange routing information;

l         XOT SVC exchange routing information using

 

Example:

The following is the example of command x25 XOT output:

Router#show x25 xot

Serial1/0 SVC 1024, Interface: [192.168.20.78,20011/192.168.20.92,1998]

Connects From 2750 To 1760001

Window size input: 2, output: 2

Packet size input: 128, output: 128

Is 11/6 RESETs 1/0 RNRs 0/0 REJs 1/0 INTs 1/0 Discards 0/0

show x25 vc

Show the information of configured X25 exchange list.

show x25 vc

parameter:

none

command mode:

supervisor mode

explanation:

Command show x25 vc shows the following information:

l         Configured X.25 PVC exchange routing table;

l         Configured X.25 SVC exchange routing table;

l           Configured X.25 XOT exchange routing table;

example:

The following is the example of command show x25 vc output:

Router#show x25 vc

X.25/IP state Serial1/0 DOWN Serial1/1 UP =============================================================================

No. Port VC I/O State X.121 Address IP Address XOT =============================================================================

01 Serial1/1 11 in clr_out 0.0.0.0 

 

show x25switch

Show the information of configured X25 exchange list.

show x25switch

parameter:

none

command mode:

supervisor mode

explanation:

Command show x25 switch shows the following information:

l         Configured X.25 PVC exchange routing table;

l         Configured X.25 SVC exchange routing table;

 

Example:

The following is the example of command show x25switch output:

Router#show x25switch

X.25 switch SVC route table

X.121 address         port

==============================================

1111       -->    Serial0/0

2222       -->    Serial0/1 

show x29

Show all configuration information of x29 profile.

show x29

parameter:

none

command mode:

supervisor mode

explanation:

Command show x29 shows the following information:

·       Profile information of x29d;

·       All profile information of x29;

example:

The following is the example of command show x29 output:

Router#show x29

X.29d X3 pad parameters:

  1:1    2:1    3:66   4:0    5:0    6:5    7:0    8:0    9:0   10:0   11:14

 12:0   13:0   14:0   15:1   16:0   17:0   18:0   19:0   20:0   21:0   22:0 

X.29 X3 pad Profile 0:

  1:1    2:1    3:66   4:0    5:0    6:5    7:0    8:0    9:0   10:0   11:14

 12:0   13:0   14:0   15:1   16:0   17:0   18:0   19:0   20:0   21:0   22:0 

X.29 X3 pad Profile 1:

  1:1    2:1    3:66   4:0    5:0    6:5    7:0    8:0    9:0   10:0   11:14

 12:0   13:0   14:0   15:1   16:0   17:0   18:0   19:0   20:0   21:0   22:0 

 

debug lapb

Show the LAPB interactive information. Such as sending SABM frame, receiving UA frame, sending I frame, receiving I frame or so. When the router and the host can not communicate through X.25 protocol, it can be used to analyze LAPB interactive information.

[no] debug lapb [iframes | sframes| uframes | raw] Serial

parameter:

Serial

The port name requires opening debug information. This port can be physical port or E1 mapped port.

Iframes

Only display I frame.

Sframes

Only display S frame.

Uframes

Only display U frame.

Raw

Show the raw frame to send and receive.

If the port name is not input, then it will open the LAPB debug information of all X.25 ports.

command mode:

supervisor mode  

explanation:

    The related commands of debug x25 tcp are not provided in the formal version, but only provided in some trial versions.

 

example:

1. Show all sent and received frames of s1/1

Router#debug lapb s1/1 uframes s1/0

Router#debug lapb s1/1 iframes s1/0

Router#debug lapb s1/1 sframes s1/0

LAPB Serial1/1: TX -> SABM abyte=01 cbyte=3f P=1

LAPB Serial1/1: RX <- UA abyte=01 cbyte=73 F=1

LAPB Serial1/1: TX -> I(0,0) abyte=01 cbyte=00 P=0

LAPB Serial1/1: RX <- RR(1) abyte=01 cbyte=21 PF=0

LAPB Serial1/1: RX <-I(0,1) abyte=03 cbyte=20 P=0

LAPB Serial1/1: TX -> RR(1) abyte=03 cbyte=21 PF=0

The first line indicates that LAPB sends a SABM frame and the address is 01 (DCE), the control field is 3f, placed in the exploration position.

The second line indicates that LAPB receives UA response frame, its address is 01 (DTE), control filed is 73, placed at responding position. This means that x25 protocol from both sides successfully handshakes.

The third line indicates that LAPB transmits I frame, the transmit serial is 0, receiving serial is 0 also. For detailed information in this frame, you should consult debug of X.25.

The forth line indicates that LAPB has received RR responding frame, indicates that it has received the frames before serial 1.

The fifth line indicates that LAPB receives I frame, the sending serial is 0 and receiving serial is 1.

The sixth line indicates that LAPB sends RR responding frame, and has received the frames before serial 1.

2. Do not show the interactive information of U frame of S1/1 port LAPB Router#no debug lapb uframes s1/1

debug x25

Show X.25 layer interactive information. Such as sending re-enable request, receiving dismantlement request, receiving data grouping, sending reset request or so. When the router and the host can not communicate through X.25 protocol, and can be used to analyze the X.25 interactive information. Use no debug x25 to stop showing the information.

[no] debug x25 [events | normal | packet | tcp |xot] Serial

parameter:

Serial

Port name requires opening debug information. This port can be physical port or E1 mapped port.

Events

Show all calls, remove the lines, reenable, reset, diagnosis and register the grouping.

Normal

Show all data groupings.

packet

Show HEX form of all X25 packets.

tcp

Show the establishment, dismantlement of connection information, link mode and data packets of X25-TCP.

Xot

Show all received XOT data packet (this command does not aim at port, it is global)

If the port name is not input, then it will open the X.25 debug information of all X.25 ports.

command mode:

supervisor mode

example:

Router#debug x25 events s1/0

X25 Serial1/0: TX -> RESTART, cause 0, diag 0

X25 Serial1/0: RX <- RESTART CONFIRM

X25 Serial1/0: TX -> CALL on vc 1, From: 2222 To: 1111

X25 Serial1/0: RX <- CLEAR on vc 1, cause 0, diag 47

The first line means that the interface sends re-enable request grouping, cause is 0 and diagnose code is 0.

The second line means that the interface receives re-enable authentication grouping.

The third line means that the interface sends establish link request, virtual circuit number is 1, main calling address is 2222, called address is 1111, no configuration of D byte, call grouping is 0. The forth line is the detail information of grouping.

The forth line means that the interface receives clear virtual circuit request, the virtual circuit number is 1, cause is 0, diagnosis code is 47.

The fifth line means that the interface sends a clear virtual circuit confirmation, the virtual circuit number is 1, cause is 8, diagnosis code is 68.