Vous êtes sur la page 1sur 93

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Table of Contents

Table of Contents
Chapter 1 PPP and MP Commands...................................................................................... 1-1 1.1 encapsulation ppp..................................................................................................... 1-1 1.2 multilink.................................................................................................................... 1-2 1.3 multilink-user............................................................................................................ 1-2 1.4 ppp authentication..................................................................................................... 1-3 1.5 ppp callback ............................................................................................................. 1-4 1.6 ppp chap host........................................................................................................... 1-5 1.7 ppp chap password................................................................................................... 1-6 1.8 ppp compression stac ............................................................................................... 1-6 1.9 ppp multilink ............................................................................................................. 1-7 1.10 ppp negotiation timeout ........................................................................................... 1-8 1.11 ppp pap sent-username........................................................................................... 1-8 Chapter 2 SLIP Commands.................................................................................................. 2-1 2.1 encapsulation slip ..................................................................................................... 2-1 Chapter 3 ISDN Commands................................................................................................. 3-1 3.1 isdn answer1............................................................................................................ 3-1 3.2 isdn answer2............................................................................................................ 3-2 3.3 show isdn active ....................................................................................................... 3-2 3.4 show isdn answer ..................................................................................................... 3-3 3.5 show isdn status ....................................................................................................... 3-4 3.6 show isdn timer......................................................................................................... 3-5 Chapter 4 LAPB, X.25 and X.25 Switching Commands........................................................ 4-1 4.1 clear xot ................................................................................................................... 4-2 4.2 encapsulation lapb .................................................................................................... 4-2 4.3 encapsulation x25 ..................................................................................................... 4-3 4.4 lapb k....................................................................................................................... 4-4 4.5 lapb modulo.............................................................................................................. 4-5 4.6 lapb n1..................................................................................................................... 4-6 4.7 lapb n2..................................................................................................................... 4-6 4.8 lapb t1...................................................................................................................... 4-7 4.9 lapb t2...................................................................................................................... 4-8 4.10 lapb t3.................................................................................................................... 4-8 4.11 x25 accept-reverse.................................................................................................. 4-9 4.12 x25 address.......................................................................................................... 4-10 4.13 x25 alias ............................................................................................................... 4-11 4.14 x25 check-response-address ................................................................................. 4-12

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Table of Contents

4.15 x25 default............................................................................................................ 4-13 4.16 x25 facility ............................................................................................................ 4-13 4.17 x25 hic ................................................................................................................. 4-15 4.18 x25 hoc ................................................................................................................ 4-16 4.19 x25 hold-queue ..................................................................................................... 4-17 4.20 x25 hold-vc-timer .................................................................................................. 4-17 4.21 x25 htc ................................................................................................................. 4-18 4.22 x25 idle................................................................................................................. 4-19 4.23 x25 ips ................................................................................................................. 4-20 4.24 x25 lic .................................................................................................................. 4-21 4.25 x25 linkrestart ....................................................................................................... 4-22 4.26 x25 loc ................................................................................................................. 4-22 4.27 x25 ltc .................................................................................................................. 4-23 4.28 x25 map............................................................................................................... 4-24 4.29 x25 modulo........................................................................................................... 4-26 4.30 x25 nvc ................................................................................................................. 4-27 4.31 x25 ops ................................................................................................................ 4-28 4.32 x25 pvc (encapsulating)......................................................................................... 4-29 4.33 x25 pvc (switched) ................................................................................................ 4-30 4.34 x25 pvc (XOT)....................................................................................................... 4-31 4.35 x25 response-called-address ................................................................................. 4-32 4.36 x25 response-calling-address ................................................................................ 4-33 4.37 x25 roa................................................................................................................. 4-34 4.38 x25 route interface ................................................................................................ 4-35 4.39 x25 route xot......................................................................................................... 4-36 4.40 x25 routing............................................................................................................ 4-36 4.41 x25 suppress-called-address ................................................................................. 4-37 4.42 x25 suppress-calling-address ................................................................................ 4-38 4.43 x25 threshold ........................................................................................................ 4-38 4.44 x25 tx0................................................................................................................. 4-39 4.45 x25 tx1................................................................................................................. 4-40 4.46 x25 tx2................................................................................................................. 4-41 4.47 x25 tx3................................................................................................................. 4-42 4.48 x25 use-source-address ........................................................................................ 4-42 4.49 x25 win................................................................................................................. 4-43 4.50 x25 wout............................................................................................................... 4-44 4.51 show x25 alias ...................................................................................................... 4-45 4.52 show x25 interface................................................................................................ 4-45 4.53 show x25 map....................................................................................................... 4-48 4.54 show x25 switch-vc-table....................................................................................... 4-49 4.55 show x25 route ..................................................................................................... 4-49 4.56 show x25 vc .......................................................................................................... 4-50

ii

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Table of Contents

4.57 debug x25 xot ....................................................................................................... 4-51 Chapter 5 Frame Relay Commands..................................................................................... 5-1 5.1 clear frame-relay-inarp .............................................................................................. 5-1 5.2 encapsulation frame-relay ......................................................................................... 5-2 5.3 frame-relay interface-dlci ........................................................................................... 5-2 5.4 frame-relay intf-type.................................................................................................. 5-3 5.5 frame-relay inverse-arp ............................................................................................. 5-4 5.6 frame-relay ip tcp header-compress ........................................................................... 5-5 5.7 frame-relay lmi-n391dte............................................................................................. 5-6 5.8 frame-relay lmi-n392dce............................................................................................ 5-6 5.9 frame-relay lmi-n392dte............................................................................................. 5-7 5.10 frame-relay lmi-n393dce.......................................................................................... 5-8 5.11 frame-relay lmi-n393dte........................................................................................... 5-9 5.12 frame-relay lmi-t391dte.......................................................................................... 5-10 5.13 frame-relay lmi-t392dce......................................................................................... 5-11 5.14 frame-relay lmi-type............................................................................................... 5-12 5.15 frame-relay local-dlci ............................................................................................. 5-12 5.16 frame-relay map.................................................................................................... 5-13 5.17 frame-relay route................................................................................................... 5-14 5.18 frame-relay switching............................................................................................. 5-15 5.19 show frame-relay lmi ............................................................................................. 5-16 5.20 show frame-relay map ........................................................................................... 5-16 5.21 show frame-relay packet........................................................................................ 5-17 5.22 show frame-relay pvc ............................................................................................ 5-17 5.23 show frame-relay route.......................................................................................... 5-18 5.24 show frame-relay status ........................................................................................ 5-19 5.25 show frame-relay traffic ......................................................................................... 5-20 5.26 debug frame-relay ................................................................................................. 5-20 Chapter 6 HDLC Commands................................................................................................ 6-1 6.1 encapsulation hdlc .................................................................................................... 6-1 6.2 keepalive.................................................................................................................. 6-1 6.3 debug hdlc ............................................................................................................... 6-2

iii

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Chapter 1 PPP and MP Commands


PPP and MP configuration commands include: l l l l l l l l l l l encapsulation ppp multilink multilink-user ppp authentication ppp callback ppp chap host ppp chap password ppp compression stac ppp multilink ppp negotiation timeout ppp pap sent-username

1.1 encapsulation ppp


To configure the link-layer protocol encapsulation on the interface as PPP, use the command encapsulation ppp. encapsulation ppp

Default
Default protocol encapsulation is PPP.

Command Mode
Interface configuration mode

Usage Guideline
PPP is a link-layer protocol supporting network-layer packets over the point-to-point link. It defines a whole set of protocols including LCP (link control protocol), NCP (network-layer control protocol), PAP (Password Authentication Protocol) and CHAP (Challenge Handshake Authentication Protocol). It is widely in use for it provides user authentication, easy scalability and supports synchronization and asynchronization. The link-layer encapsulation protocol on the local interface should be the same as that on the remote interface.

Example
! The following example configures PPP encapsulation on interface Serial0. Quidway(config-if-Serial0)# encapsulation ppp

Related Command
show interface

1-1

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

1.2 multilink
To configure MP parameter, use the command multilink. multilink { max-bind binds | max-frags frags }

Syntax Description
binds Maximum number of link binds allowed by a MP. Frags Maximum number of fragments allowed by a MP.

Default
Default number is 4 for both the binds and frags .

Command Mode
Global configuration mode

Usage Guideline
The multilink max-bind binds command can be used to set the maximum number of link binds allowed by an MP. MP allows a data packet to be broken down into fragments so that they can be sent over different links to improve efficiency. The multilink max-frags frags command can be used to set the maximum number of fragments allowed. These two parameters will affect the size of the receiving buffer, so one should make choice according to the actual situation.

Example
! The following example sets the maximum number of link binds for an MP to 10. Quidway(config)# multilink max-bind 10 ! The following example sets the maximum number of frags for an MP to 10. Quidway(config)# multilink max-frags 10

Related Command
ppp multilink, multilink-user

1.3 multilink-user
To configure MP binds based on the username, use the command multilink-user. multilink-user user-name bind virtual-template number

Syntax Description
user-name username. number interface serial number.
1-2

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Command Mode
Global configuration mode

Usage Guideline
The specified interface should be encapsulated with PPP, and its MP attributes should be specified. After PPP authentication succeeds, it can be decided whether to bind the MP based on the remote username and which interfaces operating parameter is to be adopted for binding. If a virtual interface template is specified, a new virtual interface will be adopted.

Example
! The following example specifies the corresponding virtual interface template 1 for the username Quidway, and configures the IP address of the virtual interface template as 202.38. 60.1. Quidway(config)# multilink-user Quidway bind virtual-template 1 Quidway(config)# interface virtual-template 1 Quidway(config-virtual-template1)# ip address 202.38.60.1 255.255.255.0

Related Command
ppp multilink

1.4 ppp authentication


To set the PPP authentication method for the remote router, use the command ppp authentication. To disable the configuration, use the no form of the command. ppp authentication { chap | pap } [ callin ] [ default | name-list ] no ppp authentication

Syntax Description
chap using CHAP authentication pap using PAP authentication chap pap first performs CHAP authentication, then perform PAP authentication pap chap first performs PAP authentication, then perform CHAP authentication callin means that only when the remote user calls in can he be authenticated. default and name-list AAA authentication methods lists. For detailed description, refer to the corresponding section of AAA settings.

Default
No PPP authentication is specified.

1-3

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Command Mode
Interface configuration mode

Usage Guideline
There are two PPP authentication methods: PAP and CHAP. PAP is a twice handshake authentication, which transfers the password in plain text. CHAP is a three-time handshake, which does not transfer the password in the network. Comparatively, CHAP authentication has the better secrecy, and is more secure and reliable. At an asynchronous dialer interface, you can perform authentication only on incoming calls instead of outgoing calls. This configuration is necessary when the router serves as an access server. In addition, the defined AAA authentication method is used. CHAP or PAP is just an authentication process. The success of the authentication is decided by AAA, which can authenticate based on the local authentication database or AAA server.

Example
! The following example authenticates the remote router by means of PAP method on interface Serial0. Quidway(config-if-Serial0)# ppp authentication pap

Related Command
user, ppp chap host, ppp pap sent-username, aaa authentication ppp

1.5 ppp callback


To enable PPP to send or accept the callback request, use the command ppp callback. To disable the function, use the no form of the command. ppp callback { request | accept } no ppp callback { request | accept }

Syntax Description
request sending a callback request. accept accepting a callback request.

Default
Disabled.

Command Mode
Interface configuration mode

1-4

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Usage Guideline
The callback function can save transmission costs for the caller. Callback function is necessary in some special circumstances.

Example
! The following example enables interface Serial0 to accept PPP callback request. Quidway(config-if-Serial0)# ppp callback accept

Related Command
encapsulation ppp

1.6 ppp chap host


To the local router name with the CHAP, use the command ppp chap host . To disable the configuration, use the no form of the command. ppp chap host hostname no ppp chap host

Syntax Description
hostname name of the local router

Default
Quidway or domain name of a router configured via the hostname command.

Command Mode
Interface configuration mode

Usage Guideline
While configuring CHAP authentication, you need to configure the hostname as the remote user, and the corresponding password must be the same. The no form of the command can delete the configured hostname (name of the local router).

Example
! The following example configures the local router named as Quidway when CHAP authentication is performed on interface Serial0. Quidway(config-if-Serial0)# ppp chap host Quidway

Related Command
ppp authentication, user

1-5

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

1.7 ppp chap password


To configure the default CHAP password when the local router authenticates the remote router, use the command ppp chap password. To disable the configuration, use the no form of the command. ppp chap password { 0 | 7 } password no ppp chap password

Syntax Description
password Password transmitted. 0 Display the password simple text. 7 Display the password in encrypted text.

Default
CHAP password is null.

Command Mode
Interface configuration mode

Usage Guideline
While configuring CHAP authentication, if you cannot find out the username that is sent from the far end in the user table, authenticate the remote user with the password configured via this command.

Example
! The following example sets the user password as Quidway in simple text when the local routers perform the authentication via CHAP. Quidway(config-if-Serial0)# ppp chap password 0 Quidway

Related Command
ppp authentication chap, user

1.8 ppp compression stac


To enable the Stac compression algorithm on the PPP of the interface, use the command ppp compression stac. To disable the function, use the no form of the command. ppp compression stac no ppp compression stac

Default
Disabled.

1-6

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Command Mode
Interface configuration mode.

Usage Guideline
When Stac compression is configured on the interface, the data frame size can be reduced through data compression without incurring damage to the data. But in this way, it use will add to the load of your router. So you had better disable this function. In addition, only when Stac is configured at both ends of a point-to-point link will this PPP link support Stac compression.

Example
! The following example configures Stac compression on the local router. Quidway(config-if-Serial0)# ppp compression stac

1.9 ppp multilink


To enable Multilink PPP (MP) on interface, use the command ppp multilink. To disable the MP attribute, use the no form of the command. ppp multilink no ppp multilink

Default
SP (Single PPP) mode.

Command Mode
Interface configuration mode

Usage Guideline
To increase bandwidth, multiple PPP links can be bound to form a logical MP interface. For this purpose, it is necessary to specify a virtual interface template on the corresponding physical interface. MP can be configured on any physical interface encapsulated with PPP, and it can also be configured on the virtual interface template and Dialer interfaces. Note that, to use MP on the virtual interface template and Dialer interface, The physical interface can only use MP only after the MP on this template and interface is enabled first.

Example
! The following example configures PPP encapsulation on interface Serial0 operates in MP mode. Quidway(config-if-Serial0)# ppp multilink

1-7

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Related Command
encapsulation ppp, multilink-user, interface virtual-template

1.10 ppp negotiation timeout


To set the PPP negotiation timeout, use the command ppp negotiation timeout. To restore to the default value, use the no form of the command. ppp negotiation timeout seconds ppp negotiate timeout

Syntax Description
seconds negotiation timeout in second. During PPP negotiation, if no acknowledgement is received from the remote end within this time range, PPP will retransmit the packets that have been previously transmitted.

Default
3 seconds.

Command Mode
Interface configuration mode

Example
! The following example sets the PPP negotiation timeout to 10 seconds. Quidway(config-if-Serial0)# ppp negotiate timeout 10

Related Command
encapsulation ppp

1.11 ppp pap sent-username


To configure the username and password when the local router is authenticated by the remote router via the PAP method, use the command ppp pap sent-username. To disable the configuration, use the no form of the command. ppp pap sent-username sent-username password { 0 | 7 } password no ppp pap sent-username

Syntax Description
sent-username username sent. password password sent. 0 password in simple text. 7 password in encrypted text.
1-8

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 1
PPP and MP Commands

Default
When the local router is authenticated by the remote end via PAP method, both the username and password sent are quidway by default.

Command Mode
Interface configuration mode

Usage Guideline
When the local router is authenticated via the PAP method by the remote router, the sent-username and password sent by the local router must be the same as the user and password of the remote router.

Example
! The following example sets the username of the local router authenticated by the remote end via the PAP method as Huawei and the password as Quidway. Quidway(config-if-Serial0)# ppp pap sent-username Huawei password 0 Quidway

Related Command
ppp authentication pap, user

1-9

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 2
SLIP Commands

Chapter 2 SLIP Commands


SLIP configuration commands include: l encapsulation slip

2.1 encapsulation slip


To set the SLIP protocol encapsulation on the interface encapsulation slip

Default
Protocol encapsulation on the interface is PPP encapsulation.

Command Mode
Interface configuration mode

Usage Guideline
SLIP (Serial Line IP), a simpler link-layer protocol, can be used over a point-to-point link. It is mainly used to run TCP/IP over the point-to-point serial interface connection. SLIP can only be used over the asynchronous link. SLIP simply defines the start and end signs for a frame so as to intercept the IP packet on the serial line. As compared with PPP, it involves no address concept, no negotiation process, no packet type discrimination (so only one network protocol can be supported at one time), and no error correction function. While SLIP is used, SLIP encapsulation must be configured on the interfaces at both ends of a link.

Example
! The following example configures SLIP encapsulation on interface Serial0. Quidway(config-if-serial0)# encapsulation slip

2-1

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 3
ISDN Commands

Chapter 3 ISDN Commands


ISDN configuration commands include: l l l l l l isdn answer1 isdn answer2 show isdn active show isdn answer show isdn status show isdn timer

3.1 isdn answer1


To have the router verify a called-party number or sub-address number in the incoming setup packet, use the command isdn answer1. To remove the verification request, use the no form of the command. isdn answer1 [ called-party-number ] [ :subaddress ] no isdn answer1 [ called-party-number ] [ :subaddress ]

Syntax Description
called-party-number called number, 20 or fewer characters long. subaddress sub-address, 20 or fewer digits/letters long, case insensitive.

Default
The router does not verify the called number or sub-address number.

Command Mode
ISDN BRI and PRI Interface configuration mode

Usage Guideline
This command is used to set checking items in the incoming setup packet. When the sub-address is set, this call will be rejected be the remote user no sending a subaddress or sending a wrong sub-address. In addition, the isdn answer2 command can be used to set an additional check item.

Example
! The following example sets the check number for BRI0 incoming setup packet to 66668888. Quidway(config-if-Bri0)# isdn answer1 66668888 ! The following example removes the above setting. Quidway(config-if-Bri0)# no isdn answer1

3-1

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 3
ISDN Commands

Related Command
isdn answer2, show isdn answer

3.2 isdn answer2


To have the router verify an additional called-party number or sub-address number in the coming setup packet, use the command isdn answer2. To remove the verification request, use the no form of the command. isdn answer2 [ called-party-number ] [ :subaddress ] no isdn answer2 [ called-party-number ] [ :subaddress ]

Syntax Description
called-party-number called number, 20 or fewer characters long. Subaddress sub-address, 20 or fewer digits/letters long, case insensitive.

Default
The router does not verify the called number or sub-address number.

Command Mode
ISDN BRI and PRI Interface configuration mode

Usage Guideline
This command is used to set checking items in incoming setup packet. When the subaddress is set, this call will be rejected be the remote user not sending a sub-address or sending a wrong sub-address. The additional check item and check item are two independent settings. Meeting either of them, an incoming setup packet can pass the check.

Example
! The following example sets the sub-address requiring additional verification on interface Bri0 to sub2000. Quidway(config-if-Bri0)# isdn answer2: sub2000 ! The following example removes the above setting. Quidway(config-if-Bri0)# no isdn answer2

Related Command
isdn answer1, show isdn answer

3.3 show isdn active


To display the current call information on the ISDN interface, use the command show isdn active .
3-2

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 3
ISDN Commands

show isdn active [ interface interface-name ]

Syntax Description
interface-name name of the interface. If no interface name is specified, all the current call information will be displayed.

Command Mode
Privileged user mode

Usage Guideline
The user can use the information shown via this command to diagnose the ISDN call problems.

Example
The following is sample output from the command. Quidway# show isdn active interface bri 0
Bri0 : Channel Call Info Property B1 Digital B2 Analog Call Type Out In Calling Calling Called Called Number Subaddress Number Subaddress 8810124 8810118 380 8810150 2201

The above information indicates that there are two active calls on the ISDN Bri0 interface: l l Digital call to 8810124 by B1 channel. Analog call from a terminal whose number is 8810118 and sub-address is 380 by B2 channel.

3.4 show isdn answer


To display the incoming called-party number and sub-address to be checked on the ISDN interface, use the command show isdn answer. show isdn answer [ interface interface-name ]

Syntax Description
interface-name name of the interface. If no interface name is specified, all the incoming called-party number and sub-address will be checked on ISDN interface.

Command Mode
Privileged user mode

Usage Guideline
After incoming call verification is over, the user can confirm if the configuration is correct according to the information output via this command.

3-3

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 3
ISDN Commands

Example
! The following is sample output from the command. Quidway# show isdn answer interface bri 0
Bri0 : ISDN Answer1 ISDN Answer2 66668888 :sub2000

The above information indicates that the called-party number to be checked on Bri0 in incoming setup packet is 66668888, the sub-address requiring additional check is sub2000.

Related Command
isdn answer1, isdn answer2

3.5 show isdn status


To display the current status of the ISDN interface, use the command show isdn status. show isdn status [ interface interface-name ]

Syntax Description
interface-name name of the interface. If no interface name is specified, all the current status on the ISDN interface will be displayed.

Command Mode
Privileged user mode

Usage Guideline
The information output via this command includes the states of the layers of the ISDN protocol on the interface, including Q.921 and Q.931. Using this command, users can make fault diagnosis.

Example
! The following is sample output from the command. Quidway# show isdn status interface bri 0
Bri0: Layer 2 Status: TEI = 64 , State = MULTIPLE_FRAME_ESTABLISHED Layer 3 Status: 2 Active Layer 3 Call(s) CCIndex = 0x0001 , State = Setup , CES = 1 , Channel =0x00000002 , Calling_Num = 661003 , Calling_Sub = , Called_Num = 660066 , Called_Sub = CCIndex = 0x0000 , State = Active , CES = 1 , Channel = 0x00000001 , Calling_Num = 661004 , Calling_Sub = , Called_Num = 660066 , Called_Sub =

The above information indicates the following: l layer-2 link TEI on ISDN Bri0 is 64, and its status is multiple-frame-setup

3-4

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 3
ISDN Commands

The count of active calls on layer 3 is 2. For the call with index number 0x000, its state is Setup, CES is 1, channel is 0x00000002, the calling and called numbers are 661003 and 660066 respectively, and calling and called sub-addresses are both vacant. For the call with index number 0x0000, its status is Active, CES is 1, the channel is 0x00000001, the calling and called numbers are 661004 and 660066 respectively, the calling and called sub-addresses are both vacant.

Related Command
show interface

3.6 show isdn timer


To display the value of the ISDN timer, use the command show isdn timer. show isdn timer

Command Mode
Privileged user mode

Usage Guideline
This command is mainly intended for technical support engineers in their fault diagnosis and troubleshooting.

Example
! The following is sample output of the command. Quidway# show isdn timer
ISDN Layer 2 K N200 T200 T202 T203 ISDN Layer 3 T301 T302 T303 T304 T305 T308 T309 T310 T313 T314 T316 T317 T318 T319 T321 T322 values = 1 = 3 = 1 = 2 = 10 Values = 240 = 15 = 4 = 15 = 30 = 4 = 90 = 10 = 4 = 4 = 120 = 10 = 4 = 4 = 30 = 4 Outstanding I-frames on BRI port Max number of retransmits Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds Seconds

Related Command
show interface

3-5

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Chapter 4 LAPB, X.25 and X.25 Switching Commands


LAPB, X.25, and X.25 switch configuration commands include: l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l clear xot encapsulation lapb encapsulation x25 lapb k lapb modulo lapb n1 lapb n2 lapb t1 lapb t2 lapb t3 x25 accept-reverse x25 address x25 alias x25 check-response-address x25 default x25 facility x25 hic x25 hoc x25 hold-queue x25 hold-vc-timer x25 htc x25 idle x25 ips x25 lic x25 linkrestart x25 loc x25 ltc x25 map x25 modulo x25 nvc x25 ops x25 pvc x25 pvc x25 pvc XOT x25 response-called-address x25 response-calling-address x25 roa x25 route x25 route XOT x25 routing x25 supress-called-address x25 supress-calling-address x25 threshold x25 tx0 x25 tx1 x25 tx2 x25 tx3 x25 use-source-address
4-1

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

l l l l l l l l l

x25 win x25 wout show x25 alias show x25 interface show x25 map show x25 switch-vc-table show x25 route show x25 vc debug x25 xot

4.1 clear xot


To clear a XOT link initiatively, use the command clear xot remote ip-address1 port1 local ip-address2 port2 clear xot remote ip-address1 port1 local ip-address2 port2

Syntax Description
remote indicates that the following parameters are those of the remote host. ip-address1 the remote ip-address connected via XOT port1 the remote port number connected via XOT local indicates that the following parameters are those of the local host. ip-address2 the local ip-address connected via XOT port2 the local port number connected via XOT

Command Mode
Privileged user mode

Usage Guideline
Using the command clear xot can initiatively clear the XOT link .

Example
! Clear a XOT link. Quidway# clear xot remote 10.1.1.2 1024 local 10.1.1.1 1998

Related Command
show x25 vc x25 routing

4.2 encapsulation lapb


To specify a serial interface using LAPB encapsulation, use the command encapsulation lapb. encapsulation lapb [ dte | dce ] [ ip ]

4-2

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
dte specifies operation as a data terminal equipment device. dce specifies operation as a data communications equipment device. ip specifies the IP as the network-layer protocol supported by LAPB.

Default
DTE operation is the default LAPB mode. IP is the default protocol.

Command Mode
Interface configuration mode

Usage Guideline
Though a layer-2 protocol of X.25, LAPB can act as an independent link-layer protocol for serial interface encapsulation and simple data transmission. Generally, LAPB encapsulation can be used when two routers are connected directly with a dedicated line. Now one end works in DTE mode, and the other in DCE mode.

Example
! The following example sets the operating mode as DCE and specifies LAPB encapsulation on Serial0. Quidway(config-if-Serial0)# encapsulation lapb dce

Related Command
show interface

4.3 encapsulation x25


To specify a serial interfaces operation as an X.25 device, use the command encapsulation x25. Later on, all the incoming or outgoing datagram will be transmitted in X.25 encapsulation mode. The interface that has executed this command is called the X.25 interface. encapsulation x25 [ dte | dce ] [ ietf | ddn | bfe | cisco-compatible ]

Syntax Description
dte specifies operation as a DTE. This is the default mode. dce specifies operation as a DCE. ietf specifies that the interfaces datagram encapsulation defaults to use of the IETF standard method, as defined by RFC-1356. ddn specifies DDN encapsulation on an interface using DDN X.25 standard service. bfe specifies BFE encapsulation on an interface attached to a BFE device. cisco-compatible specifies that the interface datagram encapsulation is compatible with that of Cisco.
4-3

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Default
The default interface encapsulation is PPP. For X.25 encapsulation, the default operation is DTE IETF.

Command Mode
Interface configuration mode

Usage Guideline
One end of an X.25 link must be a logical DCE and the other end a logical DTE (This assignment is independent of the interfaces hardware DTE or DCE identity). Typically, when connecting to an X.25 public data network (PDN), the customer equipment acts as the DTE and the PDN attachment acts as the DCE. However, if two routers are connected simply back to back, both routers actually act as user equipment (routers). The both ends of this connection should be a logical DTE and a DCE respectively (that is, in a setting where the two routers are connected back-to-back, one works in DTE mode and the other in DCE mode). Once a X.25 interface is re-encapsulated, be it with other link-layer protocol or X.25 protocol, all the X.25 parameters that you have configured except the address mapping are restored to their default values. That is to say, when X.25 encapsulation is used again on this interface, you can only use address mapping among the configurations that have been previously used. In a normal application without any special requirement, please select datagram encapsulation in the IETF format.

Example
! The following example specifies the use of X.25 encapsulation on the specified Serial0, which works in DTE IETF mode. Quidway(config-if-Serial0)# encapsulation x25 dte ietf

Related Command
show interface

4.4 lapb k
To configure the LAPB window parameter K, use the command lapb k. To restore the default value of LAPB window parameter K, use the no form of the command. lapb k k-value no lapb k

Syntax Description
k-value maximum permissible number of I frames to be determined by the DTE or DCE in the specified time. If the modulo size is 8, then the window parameter K ranges 1 through 7; if the modulo size is 128, the window parameter K ranges 1 through 127.

4-4

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Default
Default window parameter K is 7.

Command Mode
Interface configuration mode

Usage Guideline
The value of the window parameter K needs to be determined by the modulo size. no lapb k is used to restore the default value.

Example
! The following example sets the LAPB window parameter K as 7 on Serial0. Quidway(config-if-Serial0)# lapb k 7

Related Command
lapb modulo

4.5 lapb modulo


To specify the LAPB frame protocol mode (also called modulo size), use the command lapb modulo. Use the no form of the command to restore to the default value. lapb modulo { 128 | 8 } no lapb modulo

Syntax Description
128 modulo128 protocol mode is used. 8 modulo128 protocol mode is used..

Default
Default LAPB frame protocol mode is modulo 8.

Command Mode
Interface configuration mode

Usage Guideline
There are two LAPB frame protocol methods: modulo 8 and modulo 128. Each data frame (I frame) is numbered in sequence, ranging 0 to one less than the window modulus. And serial numbers will cycle within the range of modulo size. Modulo 8 is a basic method, implemented by all the standard LAPB standards. It is sufficient for most links. Modulo 128 can achieve greater throughput on a high-speed link that has a lower error rate. The maximum value of the LAPB window parameter K is constrained by modulo size, that is, the maximum value is one less than the window

4-5

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

modulus; and K specifies the maximum frames that can be sent before receipt of the acknowledgement.

Example
! The following example set the LAPB frame protocol mode on Serial0 to modulo 8 Quidway(config-if-Serial0)# lapb modulo 8

Related Command
lapb k

4.6 lapb n1
To configure the LAPB N1parameter, use the command lapb n1. To restore to the default N1 value, use the no form of the command. lapb n1 n1-value no lapb n1

Syntax Description
n1-value the N1 parameter, ranging 1080 bits to 12056 bits.

Default
Default is 12032 bits.

Command Mode
Interface configuration mode

Usage Guideline
The N1 value is the maximum number of bits of I frame that the DCE or DTE expects to receive from the DTE or DCE. This value should be 8 times the MTU plus the packet size of the protocol header. This value defines the maximum size of the transmission frame, thus deciding the maximum size of the encapsulated X.25 packet.

Example
! The following example sets the LAPB N1parameter on Serial0 to 1080. Quidway(config-if-Serial0)# lapb n1 1080

4.7 lapb n2
To specify LAPB N2 parameter, use the command of lapb n2. To restore to the default value, use the no form of the command. lapb n2 n2-value no lapb n2

4-6

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
n2-value the value of the N2 parameter, ranging 1 to 255.

Default
Default value of LAPB N2 parameter is 5.

Command Mode
Interface configuration mode

Usage Guideline
The N2 value is the maximum numbers of tries for successful frame transmissions from a DCE/DTE to a DTE/DCE.

Example
! The following example sets the LAPB N2 parameter on Serial0 to 20. Quidway(config-if-Serial0)# lapb n2 20

4.8 lapb t1
To se the LAPB transmission timer T1, use the command lapb t1. To restore to the default value of T1, use the no form of the command. lapb t1 t1-value no lapb t1

Syntax Description
t1-value the value of T1, ranging 1ms to 64000 ms.

Default
Default value of T1 for the LAPB system is 2000ms.

Command Mode
Interface configuration mode

Usage Guideline
T1 is a transmission timer. When T1 expires, DTE (DCE) will start retransmission. The value of T1 should be greater than the maximum time spanning between sending a frame and receiving an acknowledgement. no lapb t1 is used to restore the default value of this parameter.

Example
! The following example sets the T1 transmission timer on Serial0 to 1000ms. Quidway(config-if-Serial0)# lapb t1 1000
4-7

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Related Command
lapb t2, lapb t3

4.9 lapb t2
To configure LAPB system transmission timer T2, use the command lapb t2. To restore to the default value of T2, use the no form of the command. lapb t2 t2-value no lapb t2

Syntax Description
t2-value the value of the timer T2, ranging 1ms to 64000 ms.

Default
Default value of the LAPB system timer is 1000ms.

Command Mode
Interface configuration mode

Usage Guideline
T2 is a reception timer. When it times out, the DTE/DCE must send an acknowledgement frame so that this frame can be received before the remote DTE/DCE T1 timer expires (T2<T1). no lapb t2 is used to restore the default value of this parameter.

Example
! The following example sets the LAPB timer T2 on Serial0 to 2000ms. Quidway(config-if-Serial0)# lapb t2 2000

Related Command
lapb t1

4.10 lapb t3
To set the LAPB system timer T3, use the command of lapb t3. To restore to the default value of T3, use the no form of the command. lapb t3 t3-value no lapb t3

Syntax Description
t3-value value of the timer T3, ranging 0ms to 64000ms.

4-8

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Default
Default value of the LAPB timer T3 is 0ms.

Command Mode
Interface configuration mode

Usage Guideline
T3 is an idle timer. When it expires, the DCE reports to the packet layer that the channel stays idle for a long time. It should be greater than the timer T1 (T3>T1) on a DCE. When T3 is 0, this indicates that it does not function yet. no lapb t3 is used to restore the default value of this parameter.

Example
! The following example sets the LAPB timer T3 on Serial0 to 10000ms. Quidway(config-if-Serial0)# lapb t3 10000

Related Command
lapb t1

4.11 x25 accept-reverse


To configure an X.25 interface to accept all reverse charge calls, use the command x25 accept-reverse . To disable the facility, use the no form of the command. x25 accept-reverse no x25 accept-reverse

Default
Disabled.

Command Mode
Interface configuration mode

Usage Guideline
This function does not affect any call without the reverse charge call function On an X.25 interface, you can enable the function of reverse charge call. Then, any such calls to the X.25 interface will be accepted. If the option of accept-reverse in the x25 map command enables the function for a mapping, only the calls with related mapping to this interface could be accepted while the other calls (i.e., the calls carrying the request of reverse charge, but with no related mapping) will be cleared. Use show x25 interface serial command, you can check if the function on an X.25 interface is enabled.

4-9

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example sets acceptance of reverse charge calls function on interface Serial0. Quidway(config-if-Serial0)# x25 accept-reverse

Related Command
show x25 interface serial, x25 map

4.12 x25 address


To set the X.121 address of an X.25 interface, use the command x25 address. To delete the address, use the no form of the command. x25 address x.121-address no x25 address

Syntax Description
x.121-address X.121 address of an interface.

Default
If the data encapsulation format on this X.25 interface is IETF, this interface has no address. If the data encapsulation format on this X.25 interface is BFE or DDN, then the X121 address of this interface is derived through dynamic conversion of IP address on this interface. And it is not allowed to modify this X.121 address.

Command Mode
Interface configuration mode

Usage Guideline
If a router is connected to an X.25 public data network, then the ISP shall assign a legal X.121 address for it. In a setting where two routers are connected back to back, this legal X.121 address can be specified at your discretion. If you want the router to work in a switched mode, you do not have to configure the X.121 address. When you reconfigure an X.121 address for an X.25 interface, you do not have to delete the original X.121 address, for the new address will overwrite the old one. After re-encapsulating an X.25 interface, the original X.121 address will be deleted. Only after the re-encapsulation shall the new X.121 address take effect. Note: For the format of the X.121 address and the dynamic conversion of IP address and X.121 address, please consult ITU-T Recommendation X.121 and relevant RFC documents.

Example
! The following example configures X.25 encapsulation on interface Serial0 and sets the X.121 address as 20112451. Quidway(config)# interface serial 0
4-10

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 address 20112451

Related Command
show interface, show x25 interface

4.13 x25 alias


To specify an alias for X.25 interface that will allow the interface to match all types of mode, use the command x25 alias. To delete the alias, use the no form of the command. x25 alias match-type alias-string no x25 alias match-type alias-string

Syntax Description
match-type match type of the alias. The optional match types include: l l l l l l l l l free: free match free-ext: extended free match left: left alignment match left-ext: extended left alignment match right: right alignment match right-ext: extended right alignment match strict: strict match whole: whole match whole-ext: extended whole match

alias-string string of the alias

Default
No x.25 alias is configured.

Command Mode
Interface configuration mode

Usage Guideline
When an X.25 call is forwarded between networks, different X.25 networks may perform some operations on the destination addresses (that is, the called DTE address) carried by this call packet, for example, routinely adding or deleting the prefix and suffix. In this case, you need to set an interface alias for the router to adapt to this change. Please consult your ISP to learn if the network supports this function before deciding if the alias function is enabled or not. For the detail about the X.25 alias matching method, please consult the chapter LAPB, X.25 and X.25 Switch Configuration in the manual of Configuration Guide.

4-11

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example specifies X.25 encapsulation on interface Serial0, configures the X.121 address as 20112451, and set two aliases in different match types for it. Quidway(config)# interface serial 0 Quidway(cofnig-if-Serial0)# encapsulation x25 Quidway(cofnig-if-Serial0)# x25 address 20112451 Quidway(cofnig-if-Serial0)# x25 alias 20112451$ Quidway(cofnig-if-Serial0)# x25 alias $20112451 With the above configurations, a call whose destination address is 20112451 can be accepted as long as it can reach the local X.25 interface Serial0, no matter whether the network is performing the prefix adding operation or suffix adding operation.

Related Command
show x25 alias, show x25 interface serial, x25 address

4.14 x25 check-response-address


To configure and check the field of the address code group in the X.25 call accept/connection packet, use the command x25 check-response-address. To disable the function, use the no form of the command. x25 check-response-address no x25 check-response-address

Default
Check the x25 check-response-address.

Command Mode
Interface configuration mode

Usage Guideline
Some networks require that, when the called DTE returns the call accept packet to the calling DTE, it cannot carry the field of the called DTE address. Some require that it cannot carry the field of the calling DTE address. Some require that it can carry neither while some require that it can carry both. To meet various requirements, the X. 25 of the Quidway series of routers offers this function. You can consult the ISP about these requirements before deciding if this function is to be enabled or not.

Example
! The following example enables this function for the X.25 interface Serial0. Quidway(config-if-Serial0)# x25 check-response-address

4-12

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Related Command
show x25 interface, x25 response-called-address, x25 response-calling-address

4.15 x25 default


To set a default protocol for X.25 interface, use the command x25 default. To remove the protocol specified, use the no form of the command. x25 default protocol-type no x25 default

Syntax Description
protocol-type protocol type.

Default
IP is carried over X.25 by default.

Command Mode
Interface configuration mode

Usage Guideline
For received calls not carrying caller user data (CUD) or carrying a CUD that cannot be resolved, the X.25 of the Quidway series of routers need to decide the upper-layer protocol over this call through this parameter. If this parameter is not configured, all such incoming calls will be cleared.

Example
! The following example sets the default upper-layer protocol over the X.25 interface Serial0 to IP. Quidway(config-if-Serial0)# x25 default ip

Related Command
x25 map

4.16 x25 facility


To set user options for an X.25 interface, use the command x25 facility. After an option is set, all outgoing X.25 calls from the X.25 interface will carry a relevant information field. To disable the facility, use the no form of the command. x25 facility facility-type facility-value no x25 facility facility-type facility-value

4-13

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
facility-type user facility type. facility-value facility value.

Default
No facility is set.

Command Mode
Interface configuration mode

Usage Guideline
The following table shows the user facilities supported by X.25 of the Quidway series of routers and the parameters required. Table LLC-4-1 X.25 facility type and parameters
Facility type and parameter value cug number packetsize in-size out-size windowsize in-size out-size Meaning Specifies a closed user group (CUG) number for the X.25 interface. CUG can be used by a PDN to create a VPN within the larger network and to restrict access. CUGs 1 to 9999 are allowed. Specifies input maximum packet size (in-size) and output maximum packet size (out-size) for flow control parameter negotiation. Both values must be one of the following value: 16, 32, 64, 28, 256, 512, 1024, 2048, 4096. Specifies the packet count for input windows (in-size) and the output windows (out-size) when the call is originated by X.25 interface. Two parameters, i.e., the in-size and out-size, must be in the range of 1 to one less than the window modulus (including 1 and one less than the modulus). Specifies reverse charging on all calls originated by this X.25 interface. Set the requested throughput class negotiation values when a call is originated by X.25 interface. The values of in/out are defined to be 75, 150, 300, 600, 1200, 2400, 4800, 9600, 19200, and 48000. Specifies the maximum network transit delay to request for the duration of outgoing calls for a network when a call is originated by the X.25 interface. You can set this request to any value ranging 0 second to 65534 second (including 0 and 65534). Specifies the name defined by the x25 roa command in Global configuration mode for the X.25 interface.

reverse throughput in out transit-delay value

roa name

The user facilities set via this command are effective for all the calls originated by this X.25 interface. You can set a user option for a X.25 call from a certain address mapping through the command of x25 map protocol-name protocol-address x.121-address facility-type facility-value.

Example
! The following example specifies the traffic flow parameters negotiation with the remote end for all the calls from the X.25 interface serial0. Quidway(config-if-Serial0)# x25 facility packetsize 512 512 Quidway(config-if-Serial0)# x25 facility windowsize 5 5

4-14

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Related Command
show x25 interface, x25 map

4.17 x25 hic


To set the highest incoming-only X.25 virtual circuit number, use the command x25 hic. To restore to the default value, use the no form of the command. x25 hic circuit-number no x25 hic

Syntax Description
circuit-number virtual circuit number, ranging 0 to 4095. If this parameter is 0, you must set another parameter lic (the lowest incoming-only virtual circuit number) of X.25 to 0, indicating that the incoming-only virtual circuit is disabled.

Default
Default highest incoming-only X.25 virtual circuit number is 0.

Command Mode
Interface configuration mode

Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only and outgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please set the VC range correctly according to the requirements of the ISP. For VC setting requirements, please consult the chapter of LAPB, X.25 and X.25 Switch Configuration.

Example
! The following example specifies X.25 encapsulation on Serial0, enables incomingonly and two-way virtual circuit and disables the outgoing-only virtual circuit. After this serial command is executed, the three ranges are respectively: [1, 7], [8, 1024] and [0, 0]. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 lic 1 Quidway(config-if-Serial0)# x25 hic 7 Quidway(config-if-Serial0)# x25 ltc 8

Related Command
x25 hoc, x25 htc, x25 lic, x25 loc, x25 ltc

4-15

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

4.18 x25 hoc


To set the highest outgoing-only X.25 virtual circuit number, use the command x25 hoc. To restore to the default value, use the no form of the command. x25 hoc circuit-number no x25 hoc

Syntax Description
circuit-number VC number, ranging 0 to 4095. If this parameter is 0, you must set loc (the lowest outgoing-only virtual circuit number) to 0, indicating that the outgoing-only virtual circuit is disabled.

Default
Default highest out-going virtual circuit number is 0.

Command Mode
Interface configuration mode

Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only and outgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please set the VC range correctly according to the requirements of the ISP. For VC setting requirements, please consult the chapter of LAPB, X.25 and X.25 Switch Configuration.

Example
! The following example specifies X.25 encapsulation on Serial0,3 enables outgoingonly and two-way virtual circuit and disables the incoming-only virtual circuit. After this serial command is executed, the three ranges are respectively: [1, 7], [8, 1024] and [0, 0]. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 ltc 8 Quidway(config-if-Serial0)# x25 htc 10 Quidway(config-if-Serial0)# x25 loc 15 Quidway(config-if-Serial0)# x25 loc 20

Related Command
x25 hic, x25 htc, x25 lic, x25, x25 ltc

4-16

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

4.19 x25 hold-queue


To set the length of the hold queue of the X.25 Virtual circuit, use the command x25 hold-queue . To restore the length of the queue to the default value, use the no form of the command. x25 hold-queue queue-length no x25 hold-queue

Syntax Description
queue-length length of the queue (with the number of packets as the unit).

Default
Default length of the hold queue in the X.25 VC is 50.

Command Mode
Interface configuration mode

Usage Guideline
When the data traffic is too heavy, you can use this command to extend the receive queue and send queue of the X.25 VC to avoid data loss which may affect transmission performance. It should be noted here that modifying this parameter would not affect the hold queue limits of the existing VC.

Example
! The following example sets the X.25 hold queue to hold 75 datagrams. Quidway(config-if-Serial0)# x25 hold-queue 75

Related Command
x25 ips, x25 ops

4.20 x25 hold-vc-timer


To start the timer that prevents additional calls to a destination, use the command x25 hold-vc-timer. To restore the default value for the timer, use the no form of the command. x25 hold-vc-timer minutes no x25 hold-vc-timer

Syntax Description
minutes Number of minutes to prevent calls from going to previously failed destination.

4-17

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Default
Default value is 0.

Command Mode
Interface configuration mode

Usage Guideline
Sending call requests to a wrong destination (which does not exist or is faulty) will deteriorate the working efficiency of the Quidway router. The use of this function can avoid this problem to some degree. If this parameter is set to 0, this is equal to disabling the function. In addition, this function is effective to the locally originated calls only. That is, this parameter is meaningless when the X.25 of the Quidway router works in switched mode.

Example
! The following example sets the timer on the X.25 interface Serial0 to 5 minutes. Quidway(config-if-Serial0)# x25 hold-vc-timer 5

Related Command
show x25 interface serial

4.21 x25 htc


To set the highest two-way VC number, use the command x25 htc. To restore the default value, use the no form of the command. x25 htc circuit-number no x25 htc

Syntax Description
circuit-number VC number, ranging 0 to 4095. If this parameter is 0 , you must set another X.25 parameter 1tc (lowest two-way VC number) to 0, indicating that the twoway VC is disabled. For VC setting requirements, please consult LAPB, X.25 and X.25 Switch Configuration.

Default
Default highest two-way X.25 VC number is 1024.

Command Mode
Interface configuration mode

4-18

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only and outgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please set the VC range correctly according to the requirements of the ISP. For VC setting requirements, please consult the chapter of LAPB, X.25 and X.25 Switch Configuration.

Example
! The following command series configures X.25 encapsulation on interface Serial0, disables the incoming-only virtual circuit, and enables the two-way and the outgoingonly virtual circuit. When this command series is executed, the three ranges are [0, 0], [8, 10] and [11, 20], respectively. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 ltc 8 Quidway(config-if-Serial0)# x25 htc 10 Quidway(config-if-Serial0)# x25 loc 11 Quidway(config-if-Serial0)# x25 loc 20

Related Command
x25 hic, x25 hoc, x25 lic, x25 loc, x25 ltc

4.22 x25 idle


To define the maximum period of SVC idle time for a certain interface, use the command x25 idle To restore the default value, use the no form of the command. x25 idle minutes no x25 idle

Syntax Description
minutes maximum SVC idle period in minute.

Default
0 minute.

Command Mode
Interface configuration mode

Usage Guideline
This parameter does not affect a PVC and a SVC. When a SVC stays idle for a period of time (without data transmission), X.25 in the Quidway series of routers will clear this

4-19

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

SVC automatically. If this parameter is set to 0, this SVC will be reserved no matter how long it stays idle. The setting of this parameter will affect all the SVCs on this X.25 interface. Also you can set the maximum idle time for a SVC attached to this address map through the option in the command of x25 map.

Example
! The following example sets the maximum idle time for the SVC on interface Serial0 to 10 minutes. Quidway(config-if-Serial0)# x25 idle 10

Related Command
clear x25 vc, x25 map

4.23 x25 ips


To set the maximum input packet size for an X.25 interface, use the command x25 ips. To restore to the default value, use the no form of the command. x25 ips bytes no x25 ips

Syntax Description
bytes maximum packet size in byte. It can be one of the following value: 16, 32, 64, 28, 256, 512, 1024, 2048, 4096.

Default
Default maximum packet size is 128.

Command Mode
Interface configuration mode

Usage Guideline
Usually, the X.25 public data network has a maximum transmission packet size, and the size of a packet sent by the DTE shall not exceed this length (otherwise it will trigger the resetting of the VC). So, the DTEs at both the send and receive ends are required to have the fragmentation and reassembling functions. The DTE at the send end break the packet into more packets with the more data bit (M-bit) set except for the last. When the DTE at the receive end receives this series of fragments, it reassembles these fragments into a packet according to the M bit, and sends it to the upper-layer protocol. Please consult your ISP about this maximum receive packet size. Normally, the maximum receive packet size is equivalent to the maximum send packet. Unless your ISP allows, please do not set these two parameters to different values.

4-20

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example sets the maximum incoming packet size and maximum outgoing packet size on X.25 interface Serial0 to 256 bytes. Quidway(config-if-Serial0)# x25 ips 256 Quidway(config-if-Serial0)# x25 ops 256

Related Command
x25 facility, x25 ops, x25 pvc

4.24 x25 lic


To set the lowest incoming virtual circuit number, use the command x25 lic. To restore to the default value, use the no form of the command. x25 lic circuit-number no x25 lic

Syntax Description
circuit-number VC number, ranging 0 to 4095. If this parameter is set to 0, you must set another X.25 parameter hic (the highest number of incoming-only virtual circuit) to 0, indicating that the incoming-only virtual circuit is disabled.

Default
Default lowest incoming-only virtual circuit number is 0.

Command Mode
Interface configuration mode

Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only and outgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please set the VC range correctly according to the requirements of the ISP. For VC range setting requirements, please consult LAPB, X.25 and X.25 Switch Configuration.

Example
! The following example configures X.25 encapsulation on Serial0, enables the incoming-only and the two-way virtual circuits and disables the outgoing-only virtual circuit. When this serial commands are executed, the three ranges are [1, 9], [11, 1024] and [0, 0], respectively. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 lic 1

4-21

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Quidway(config-if-Serial0)# x25 hic 9 Quidway(config-if-Serial0)# x25 ltc 11 Quidway(config-if-Serial0)# x25 htc 1024

Related Command
x25 hic, x25 hoc, x25 htc, x25, x25 ltc

4.25 x25 linkrestart


To force X.25 levels 3 (packet level) to restart when layer 2 (LAPB, link level) resets, use the command x25 linkrestart. To shut down the function, use the no form of the command. x25 linkrestart no x25 linkrestart

Default
Enabled.

Command Mode
Interface configuration mode

Usage Guideline
Generally, this function is necessary. The function should not be shut down unless special requirements are made for a network environment.

Example
! The following example shut down the function on the X.25 interface Serial0. Quidway(config-if-Serial0)# no x25 linkrestart

Related Command
clear x25 vc

4.26 x25 loc


To set the lowest outgoing-only VC number, use the command x25 loc. To restore to the default value, use the no form of the command. x25 loc circuit-number no x25 loc

4-22

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
circuit-number VC number, ranging 0 to 4095. If the parameter is set to 0, you must set another X.25 parameter hoc (highest outgoing-only virtual circuit number) to 0, indicating that the outgoing-only virtual circuit is disabled.

Default
Default lowest outgoing-only virtual circuit number is 0.

Command Mode
Interface configuration mode

Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only and outgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please set the VC range correctly according to the requirements of the ISP. For VC range setting requirements, please consult LAPB, X.25 and X.25 Switch Configuration.

Example
! The following serial command configures X.25 encapsulation on Serial0, disables incoming-only virtual circuit, enables the two-way and the outgoing-only virtual circuits. When this serial command is executed, the three ranges are [0, 0], [1990, 1995] and [2000, 2005], respectively. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 ltc 1990 Quidway(config-if-Serial0)# x25 htc 1995 Quidway(config-if-Serial0)# x25 loc 2000 Quidway(config-if-Serial0)# x25 hoc 2005

Related Command
x25 hic, x25 hoc, x25 htc, x25 lic, x25 ltc

4.27 x25 ltc


To set the lowest two-way VC number, use the command x25 ltc. To restore to the default value, use the no form of the command. x25 ltc circuit-number no x25 ltc

4-23

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
circuit-number VC number, ranging 0 to 4095. It the parameter is set to 0, you must set another X.25 parameter htc (the highest two-way VC number) to 0, indicating that the two-way VC is disabled.

Default
Default lowest two-way VC number is 1.

Command Mode
Interface configuration mode

Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only and outgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please set the VC range correctly according to the requirements of the ISP. For VC range setting requirements, please consult Chapter 4 LAPB, X.25 and X.25 Switch Configuration.

Example
! The following serial command configures X.25 encapsulation on Serial0, enables the incoming-only and two-way virtual circuits, and disables outgoing-only virtual circuit. When this serial commands are executed, the three ranges are [1, 9], [20, 25] and [0, 0], respectively. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 lic 1 Quidway(config-if-Serial0)# x25 hic 9 Quidway(config-if-Serial0)# x25 ltc 20 Quidway(config-if-Serial0)# x25 htc 25

Related Command
x25 hic, x25 hoc, x25 htc, x25 lic, x25 loc

4.28 x25 map


To set up the LAN protocols-to-X.121 address mapping, use the command x25 map. To retract a prior mapping, use the no form of the command. x25 map { ip | ipx } protocol-address x.121-address [option] no x25 map { ip | ipx } protocol-address

4-24

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
protocol-type network protocol type of the address mapping. At present, X.25 of the Quidway series of routers supports both IP and IPX. protocol-address network protocol address of the remote host. x.121-address X.121 address of the remote host. option additional feature or user facility (optional)

Default
No mapping is set up.

Command Mode
Interface configuration mode

Usage Guideline
The X.25 network has no protocol to dynamically detect the remote X.121 address. Therefore, you must specify the corresponding mapping for all the destination addresses before X.25 can work correctly. Once you have specified a mapping, all the contents of this mapping (including the protocol address, X.121 address and all the options) cannot be changed. To make any modification, you can first delete this mapping (with the no x25 map command), and then set up a new mapping. On the same X.25 interface, there should not be two or more mappings with the same protocol address (actually, the X.25 of the Quidway series of router will reject such a configuration). It is recommended that the X.121 addresses of all the mappings on a X.25 should be different from each other; otherwise, such configuration may have side effect on the system. The following table shows all the options and their meanings: Table LLC-4-2 Map Options Supported by X.25
Option accept-reverse broadcast cug group-number idle minutes lin logical-channel-number no-incoming no-outgoing nvc count packetsize in-size out-size Meaning Accept a call to this address map with a reverse-charged call request. If this option is not selected, all such requests will be cleared. Direct any broadcasts of network protocol and the multicast of IP to the destination. This option provides powerful support for some routing protocols (such as Routing Information Protocol). Specifies a closed user group number of an X.25 interface. Maximum period of idle time for the VC associate with the address map. 0 means that the idle time is infinite. Logic channel number of the address map in the backup center (please consult Backup Center Configuration. Deny call to the address map. Deny call originating from the address map. Maximum number of VCs for the map. When the address map is used to originate a call, it negotiates the maximum packet size with the remote end. The packetsize is counted in byte, which must range from 16 to 4096 (including 16 and 4096), and must be the integer power of 2. Specifies reverse charging for outgoing calls.

reverse

4-25

User Manual - Command Reference (Volume 1) Versatile Routing Platform Option throughput in out transit-delay milliseconds windowsize in-size out-size

Chapter 4
LAPB, X.25 and X.25 Switching Commands Meaning When the address map is used to originate a call, it negotiates throughput with the remote end. The value of in/out is defined to 75, 150, 300, 600, 1200, 2400, 4800, 9600, 19200, or 48000. When the address map is used to originate a call, it carries the maximum transmission transit delay request. When the address is used to originate a call, it negotiates the windowsize with the remote end. The in-size and out-size range between 1 and modulo size minus 1 of the X.25 interface where the address is mapped (including 1 and modulo size minus 1). Name of the ROA list configured through the X25 roa command in Global configuration mode on the X.25 interface.

roa name

Example
! The following example sets two mappings on the X.25 interface Serial0 and Serial1 respectively. The attribute for each of the four mappings is different. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# x25 map ip 202.38.160.11 20112451 reverse acceptreverse Quidway(config-if-Serial0)# x25 map ip 202.38.160.138 20112450 packetsize 512 512 idle 10 Quidway(config)# interface serial 1 Quidway(config-if-Serial1)# x25 map ipx 20.30.4.1 25112451 windowsize 4 4 broadcast Quidway(config-if-Serial0)# x25 map ipx 20.30.4.8 25112450 no-incoming lin 6

Related Command
show x25 interface serial, show x25 map, x25 accept-reverse , x25 facility, x25 idle, x25 nvc

4.29 x25 modulo


To configure a packet numbering mode of an X.25 interface, use the command x25 modulo. To restore to the default value, use the no form of the command. x25 modulo modulus no x25 modulo

Syntax Description
modulus modulo size, whose value is 8 or 128.

Default
modulo 8.

4-26

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Command Mode
Interface configuration mode

Usage Guideline
The slip window is the basis for X.25 traffic control, and the key about the slip window is that the sent packets are numbered cyclically in order and are to be acknowledged by the remote end. The order in numbering refers to the ascending order, like 2, 3, 4, 5, 6 Cyclically means that the numbering starts again from the beginning when a certain number (called modulo) is reached. For example, when the modulo is 8, the numbering goes 4, 5, 6, 7, 0, 1 X.25 defines two numbering modulus: 8 (also called the basic mode) and 128 (also called extended mode), and the X.25 of the Quidway series of routers supports both modes.

Example
! The following example sets the modulo on the X.25 interface Serial0 to 128. Quidway(config-if-Serial0)# x25 modulo 128

Related Command
show interface, show x25 interface serial, x25 facility, x25 map, x25 pvc, x25 win, x25 wout

4.30 x25 nvc


To set the maximum number of VCs that can be attached to all the address maps on the X.25 interface, use the command x25 nvc. To restore to the default value, use the no form of the command. x25 nvc count no x25 nvc

Syntax Description
count number of VCs, ranging 1 to 8.

Default
1.

Command Mode
Interface configuration mode

Usage Guideline
If you set this parameter to a value greater than 1, a new VC to the same destination will be created on the line with a greater transit delay when the output window and output queue of the VC are full. Otherwise the data will be dropped.

4-27

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example sets this parameter on the X.25 interface Serial0 to 3. Quidway(config-if-Serial0)# x25 nvc 3

Related Command
show interface, show 25 interface serial, x25 map

4.31 x25 ops


To set the maximum output packet size for an X.25 interface, use the command x25 ops. To restore to the default value, use the no form of the command. x25 ops bytes no x25 ops

Syntax Description
bytes maximum output packet size in byte. The byte count can be a value of the following: 16, 32, 64, 28, 256, 512, 1024, 2048, 4096.

Default
128 bytes.

Command Mode
Interface configuration mode

Usage Guideline
Usually, the X.25 public data network has a maximum output packet size, and the size of a packet sent by the DTE shall not exceed this length (otherwise it will trigger the resetting of the VC). So, the DTEs at both the send and receive ends are required to have the fragmentation and reassembling function. That is, the DTE at the send end breaks the packets with larger size into more packets with the more data bit set except for the last. When the DTE at the receive end receives this series of fragments, it reassembles these fragments into a packet according to the M bit, and sends it to the upper-layer protocol. Please consult your ISP about this maximum input packet size. Normally, the maximum input packet size is equivalent to the maximum output packet. Unless with your ISPs permission, please do not set these two parameters to different values.

Example
! The following example sets the maximum input and output packet sizes on the X.25 interface Serial0 to 512 bytes. Quidway(config-if-Serial0)# x25 ips 256 Quidway(config-if-Serial0)# x25 ops 256

4-28

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Related Command
x25 facility, x25 ips, x25 pvc

4.32 x25 pvc (encapsulating)


To establish an encapsulation PVC, use the encapsulating version of the command x25 pvc. To delete the PVC, use the no form of the command. x25 pvc pvc-number protocol-type protocol-address x.121-address [ option ] no x25 pvc pvc-number protocol-type protocol-address x.121-address [ option ]

Syntax Description
pvc-number PVC number, which must be a positive integer ranges between 1 and 4095 (including 1 and 4095), and must be in the PVC range. protocol-type supported protocol of this PVC. protocol-address protocol address of the host at the other end of the PVC. x.121-address remote X.121 address of this PVC. option additional feature of this PVC (optional)

Default
By default, no encapsulation PVC is established. While creating a PVC, if you do not set the corresponding attributes, its traffic control parameter is the same as that on the X.25 interface (the traffic control parameter at an X.25 interface is set through such commands as x25 ips, x25 ops, x25 win, and x25 wout).

Command Mode
Interface configuration mode

Usage Guideline
As a map is implied from the PVC configuration, it is not necessary (or impossible) to create a map first before creating PVCs. Before creating PVCs, you should first enable the PVC range. The range is between 1 and the lowest VC number minus 1(including 1 and the lowest VC number minus 1). Naturally, if the lowest VC number is 1, the PVC range will be disabled. The following table shows some typical PVC ranges. Table LLC-4-3 PVC channel intervals of typical configurations
One-way inbound channel interval [0, 0] [0, 0] [1, 10] [5, 10] [0, 0] [0, 0] Two-way channel interval [1, 1024] [10, 24] [15, 30] [15, 25] [0, 0] [0, 0] One-way outbound channel interval [0, 0] [0, 0] [0, 0] [30, 32] [20, 45] [0, 0] PVC channel interval Disabled [1, 9] Disabled [1, 4] [1, 19] [1, 4095]

4-29

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

While setting this PVC, you can specify some of its attributes, like the traffic control parameter. The following table shows the options and their meanings. Table LLC-4-4 Options and meanings of PVC attributes
Option broadcast packetsize in-size out-size windowsize in-size out-size Meaning Broadcast to the remote end of this PVC. The maximum packet size of this PVC in byte. Both value must be one of the following value: 16, 32, 64, 28, 256, 512, 1024, 2048, 4096. Packet count for input window and output window for this PVC, which range from 1 to the modulo size minus 1 on the X.25 interface where this PVC is established (including 1 and modulo size minus 1).

Example
! The following example configures X.25 encapsulation on interface Serial0, enables the PVC range, and finally set two VCs. Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 Quidway(config-if-Serial0)# x25 ltc 8 Quidway(config-if-Serial0)# x25 pvc 2 ip 202.38.168.1 20112451 broadcast packetsize 512 512 Quidway(config-if-Serial0)# windowsize 5 5 x25 pvc 6 ip 202.38.168.3 20112453 broadcast

Related Command
show x25 interface serial, show x25, x25 map

4.33 x25 pvc (switched)


To configure a switched PVC route for a given interface, use the command x25 pvc. To delete the route, use the no form of the command. x25 pvc pvc-number1 interface serial number pvc pvc-number2 [option] no x25 pvc pvc-number1 interface serial number pvc pvc-number2

Syntax Description
pvc-number1 PVC number that will be used on the input interface. It is a positive integer, ranging 1 to 4095. pvc-number2 PVC number that will be used on the output interface. It is a positive integer, ranging 1 to 4095. Number Output interface number. option Adds certain features to the mapping specified.

4-30

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Default
No switched PVC is configured.

Command Mode
Interface configuration mode

Usage Guideline
By configuring X.25 switching, you can use the Quidway series of routers as a simple X.25 switch. When the PVC switch is configured, the input and output interfaces must be encapsulated with X.25, and the PVCs specified at both interfaces already exists and is valid. Note that no PVC switch can be configured on the X.25 sub-interface.

Example
! The following example packet switches the first PVC on Serial0 and the first PVC on Serial1. Quidway(config-if-Serial0)# encapsulation x25 dce ietf Quidway(config-if-Serial1)# encapsulation x25 dce ietf Quidway(config-if-Serial1)# x25 pvc 1 in serial 0 pvc 1

Related Command
show x25 vc, x25 routing

4.34 x25 pvc (XOT)


To add a PVC route of XOT, use the command x25 pvc. To delete the PVC route of the appointed XOT, use the no form of the command. x25 pvc pvc-number1 xot ip-address interface interface-type interface-number pvc pvc-number2 [ xot-keepalive-period seconds xot-keepalive-tries times xot-source interface-name ] no x25 pvc pvc-number1

Syntax Description
pvc-number1 PVC number of the interface at this end, ranging 1 to 4095. pvc-number2 PVC number of the peer interface, ranging 1 to 4095. ip-address The destination IP address connected via XOT. interface-type Type of the peer interface. interface-number Number of the peer interface. seconds Delay of the keepalive timer connected via XOT. The timer sends keepalive packets when it is overtime to detect the usability of the connection. times The maximum failure time of sending keepalive. Disconnect the XOT link when the failure time exceeds times.
4-31

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

interface-name The name of the interface initiating XOT connection at this end.

Default
No PVC route.

Command Mode
Interface configuration mode

Usage Guideline
After the user configures the XOT switch command of X.25 PVC, he can implement the connection between local and remote X.25 net, spanning the IP net. After configuring keepalive, it can support the link detection of XOT.

Example
! Connect PVC1 of interface Serial0 (10.1.1.1) on the router RTA to PVC2 of interface Serial1 (10.1.1.2) on the peer router RTB via XOT tunnel, to implement packet switching. ! Configure on router RTA RTA(config-if-Ethernet0)#ip address 10.1.1.1 255.255.255.0 RTA(config-if-Ethernet0)#interface serial 0 RTA(config-if-Serial0)#encapsulation x25 dce ietf RTA(config-if-Serial0)#x25 pvc 1 xot 10.1.1.2 interface serial 1 pvc 2 ! Configure on router RTB RTB(config-if-Ethernet0)#ip address 10.1.1.2 255.255.255.0 RTB(config-if-Ethernet0)#interface serial 1 RTB(config-if-Serial1)#encapsulation x25 dce ietf RTB(config-if-Serial1)#x25 pvc 2 xot 10.1.1.1 interface serial 0 pvc 1

Related Command
show x25 vc x25 routing

4.35 x25 response-called-address


To sets the called DTE address field in outgoing calls while X.25 sends the call input packet, use the command x25 response-called-address. To reset this command to its default value, use the no form of the command. x25 response-called-address no x25 response-called-address

4-32

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Default
Disabled.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, the input packet of a call may or may not carry an address code group, depending on the specific network requirements. This command enables you to easily specify whether the input packet of a call sent by X.25 of the Quidway series routers carries the called DTE address.

Example
! The following example specifies that the input packet of a call sent from the X.25 interface Serial0 carries the called DTE address. Quidway(config-if-Serial0)# x25 response-called-address

Related Command
show x25 interface serial, x25 response-calling-address, x25 suppress-calledaddress, x25 suppress-calling-address

4.36 x25 response-calling-address


To sets the calling DTE address field in outgoing calls while X.25 sends the call input packet, use the command x25 response-calling-address. To reset this command to its default value, use the no form of the command. x25 response-calling-address no x25 response-calling-address

Default
Disabled.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, the input packet of a call may or may not carry an address code group, depending on the specific network requirements. This command enables you to easily specify whether the input packet of a call sent by X.25 of the Quidway series of routers carries the calling DTE address.

4-33

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example specifies that the input packet of a call sent from the X.25 interface Serial0 carries the calling DTE address Quidway(config-if-Serial0)# x25 response-calling-address

Related Command
show x25 interface serial, x25 response-called-address, x25 suppress-calledaddress, x25 suppress-calling-address

4.37 x25 roa


To define the ROA list, use the command x25 roa . To delete a ROA list entry, use the no form the command. x25 roa roa-name id1 [ ,id2, id3 ] no x25 roa name id1 [ ,id2,id3 ]

Syntax Description
name ROA name. id ROA-specified ID which ranges from 0 through 9999. Multiple IDs can be specified.

Default
No x.25 roa is defined.

Command Mode
Global configuration mode

Usage Guideline
Multiple ROAs (0 to 20) can be configured, and multiple IDs (1 to 10) can be specified for each ROA. When an ROA is configured, it can be quoted by name in the x25 facility or x25 map command.

Example
! The following examples define two ROA lists, and then quote the list on serial interfaces 0 and 1. Quidway(config)# x25 roa list1 11 23 45 Quidway(config)# x25 roa list2 345 Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# x25 facility roa list1 Quidway(config)# interface serial 1 Quidway(config-if-Serial1)# x25 facility roa list2

4-34

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Related Command
x25 facility, x25 map

4.38 x25 route interface


To create a SVC static route, use the command x25 route interface . To delete one such route, use the no form of the command. x25 route x.121-address interface serial interface-number no x25 route x.121-address interface serial interface-number

Syntax Description
x.121-address remote x.121-address number output interface number.

Default
No SVC static route is configured.

Command Mode
Global configuration mode

Usage Guideline
By configuring the X.25 switching, you can use the Quidway series of routers as a simple X.25 switch. While configuring the SVC switching, you do not have to configure X.25 encapsulation on an outgoing interface. However, X.25 encapsulation on an outgoing interface is necessary before this SVC route takes effect. Before using this command, x.25 switching must be enabled by the x.25 routing command.

Example
! The following example switches VC 1 to interface Serial0, and switches VC 2 to interface Serial1. Quidway(config)# x25 route 1 interface serial 0 Quidway(config)# x25 route 2 interface serial 1 Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation x25 dce ietf Quidway(config)# interface serial 1 Quidway(config-if-Serial1)# encapsulation x25 dce ietf

Related Command
x25 route xot, show x25 route, x25 routing

4-35

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

4.39 x25 route xot


To add a SVC route of XOT, use the command x25 route xot. To delete the SVC route of the appointed XOT, use the no form of the command. x25 route dest-address xot ip-address [ xot-keepalive-period seconds ] [ xotkeepalive-tries times ] [ xot-source interface- name ] no x25 route dest-address xot ip-address [ xot-keepalive-period seconds ] [ xotkeepalive-tries times ] [ xot-source interface- name ]

Syntax Description
dest-address the number of virtual circuit. ip-address the destination ip-address connected via XOT. seconds delay of the keepalive timer connected via XOT. When it is time out, the timer sends keepalive packets to check the usability of the link . times the maximum failure time of sending keepalive. When the time exceeds times, disconnect the XOT link . interface-name the name of the interface initiating the XOT link.

Default
Seconds and times are 0.

Command Mode
Global configuration mode

Usage Guideline
After the user configures the XOT switch command of X.25 SVC, he can implement the connection between local and remote X.25 net, spanning the IP net. After configuring keepalive, it can support the link inspection.

Example
! Switch virtual circuit1 to the destination ip-address 10.1.1.1 Quidway(config)# x25 route 1 xot 10.1.1.1

Related Command
x25 route interface, show x25 route, x25 routing

4.40 x25 routing


To enabling X.25 switching, use the command x25 routing. To disable the function, use the no form of the command. x25 routing

4-36

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

no x25 routing

Default
Disabled.

Command Mode
Global configuration mode

Usage Guideline
The X.25 packet switch is to receive packets from an X.25 interface, and send them from a certain interface according to the destination information contained in the packet. When the packet-layer switching function is enabled, the router can serve as a small packet switch.

Example
! The following example enables the X.25 switching function. Quidway(config)# x25 routing

Related Command
x25 pvc, x25 route, show x25 vc, show x25 route

4.41 x25 suppress-called-address


To omit the X.121 address of the called DTE in outgoing calls while X.25 originates the call, use the command of x25 suppress-called-address. To disable the function, use the no form of the command. x25 suppress-called-address no x25 suppress-called-address

Default
Disabled.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, the call request packet must carry the address code group. But in some occasions, the X.25 call request does not have to carry the called/calling DTE address in a specific network environment or as is required by the application. This command enables you to specify whether the call request sent by X.25 in the Quidway series of routers carries the called DTE address.

4-37

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example suppresses or omits the called address in call request packet sent from the X.25 interface on Serial0. Quidway(config-if-Serial0)# x25 suppress-called-address

Related Command
show x25 interface serial, x25 response-called-address, x25 response-callingaddress x25 , suppress-calling-address

4.42 x25 suppress-calling-address


To omit the X.121 address of the calling DTE in outgoing calls while X.25 originates the call, use the command of x25 suppress-calling-address. To disable the function, use the no form of the command. x25 suppress-calling-address no x25 suppress-calling-address

Default
Disabled.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, the call request packet must carry the address code group. But in some occasions, the X.25 call request does not have to carry the called/calling DTE address in a specific network environment or as is required by the application. This command enables you to specify whether the call request sent by X.25 in the Quidway series of routers carries the calling DTE address.

Example
! The following example suppresses or omits the calling address in call request packet sent from the X.25 interface Serial0. Quidway(config-if-Serial0)# x25 suppress-calling-address

Related Command
show x25 interface serial, x25 response-called-address, x25 response-callingaddress x25, suppress-called-address

4.43 x25 threshold


To set the maximum number of input packets before X.25 send an acknowledgement, use the command of x25 threshold. To restore to the default value, use the no form of the command.
4-38

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

no x25 threshold count no x25 threshold

Syntax Description
count Count of packets that can be received before the acknowledgement, ranging 0 and to input windowsize. If it is set to 0 or the windowsize, this function will be disabled. If it is set to 1, X.25 of the Quidway series of routers will send an acknowledgement for each correct packet received.

Default
0 packet.

Command Mode
Interface configuration mode

Usage Guideline
After enabling this function, the Quidway series of routers can send acknowledgement to the remote router upon the receipt of correct packets, even if the input window is not yet full. If there is not many data traffic in your application environment, you can appropriately adjust this parameter to meet the requirement.

Example
! The following example specifies that each VC on the X.25 interface Serial0 acknowledges the receipt of each correct packet. Quidway(config-if-Serial0)# x25 threshold 1

Related Command
x25 win, x25 wout

4.44 x25 tx0


To set the delay value of the X.25 restart indication retransmission timer on DTE (or DCE) devices, use the command x25 tx0. To restore to the default value, use the no form of the command. x25 tx0 seconds no x25 tx0

Syntax Description
seconds delay value for the X.25 restart indication retransmission timer in second.

Default
Default delay on the X.25 DTE restart timer is 180 seconds and that on the DCE timer is 60 seconds.

4-39

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, a timer should be started when a DTE sends a restart request (or a DCE sends a restart indication). If no remote acknowledgement is received after this timer is timeout, the sending end will take some measures to guarantee the normal proceeding of the local procedure. This parameter specifies the delay value of this timer before timeout.

Example
! The following example sets the timer delay on the X.25 interface Serial0 to 120 seconds. Quidway(config-if-Serial0)# x25 tx0 120

Related Command
x25 tx1, x25 tx2, x25 tx3

4.45 x25 tx1


To set the delay value of Call Request Indication Retransmission timer on DTE/DCE devices, use the command x25 tx1. To restore to the default value, use the no form of the command. x25 tx1 seconds no x25 tx1

Syntax Description
seconds delay value of Call Request Indication Retransmission timer in second.

Default
Default value for the call request retransmission timer on a DTE is 200 seconds; default value for the call request retransmission timer on a DCE is 180 seconds.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, a timer should be started when a DTE sends a call request (or a DCE sends a call indication). If no remote acknowledgement is received after this timer is timeout, the sending end will take some measures to guarantee the normal proceeding of the local procedure. This parameter specifies the delay value of this timer before timeout.

4-40

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example sets the timer delay on the X.25 interface Serial0 to 100 seconds. Quidway(config-if-Serial0)# x25 tx1 100

Related Command
x25 tx0, x25 tx2, x25 tx3

4.46 x25 tx2


To set the delay value for reset indication retransmission timer on a DTE/DCE, use the command x25 tx2. To restore to the default value, use the no form of the command. x25 tx2 seconds no x25 tx2

Syntax Description
seconds Delay value of the reset indication retransmission timer in second.

Default
Default value for the reset request retransmission timer on a DTE is 180 seconds; default value for the reset request retransmission timer on a DCE is 60 seconds.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, a timer should be started when a DTE sends a reset request (or a DCE sends a reset indication). If no remote acknowledgement is received after this timer is timeout, the sending end will take some measures to guarantee the normal proceeding of the local procedure. This parameter specifies the delay value of this timer before the timeout.

Example
! The following example sets the reset timer delay on the X.25 interface Serial0 to 120 seconds. Quidway(config-if-Serial0)# x25 tx2 120

Related Command
x25 tx0, x25 tx1, x25 tx3

4-41

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

4.47 x25 tx3


To set the delay value for clear indication retransmission timer on a DTE/DCE, use the command x25 tx3. To restore to the default value, use the no form of the command. x25 tx3 seconds no x25 tx3

Syntax Description
seconds Delay value of the clear indication retransmission timer in second.

Default
Default value for the clear indication retransmission timer on a DTE is 180 seconds; default value for the clear indication retransmission timer on a DCE is 60 seconds.

Command Mode
Interface configuration mode

Usage Guideline
According to X.25, a timer should be started when a DTE sends a clear request (or a DCE sends a clear indication). If no remote acknowledgement is received after this timer is timeout, the sending end will take some measures to guarantee the normal proceeding of the local procedure. This parameter specifies the delay value of this timer before the timeout.

Example
! The following example sets the delay value of clear indication retransmission timer on the X.25 interface Serial0 to 100 seconds. Quidway(config-if-Serial0)# x25 tx3 100

Related Command
x25 tx0, x25 tx1, x25 tx2

4.48 x25 use-source-address


To change the calling address as the local address while setting the call-forwarding packets, use the command x25 use-source-address. To disable the function, use the no form of the command. x25 use-source-address no x25 use-source-address

Default
Disabled.

4-42

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Command Mode
Interface configuration mode

Usage Guideline
If you connect your private X.25 data network to the X.25 public data network via the Quidway router, and if your private network has an internal private address, this function is necessary. Any call originated from a host inside any private network and whose destination is not in this private network will be forwarded to the public data network. So, this call should have a legal, unified public data network address. When this function is enabled, the source addresses of such calls will be replaced by the X.121 address (i.e., legal X.121 address recognized by the public data network) on the interface of the public data network to which the Quidway router is connected. In this way, the internetworking is implemented between the private and public data networks.

Example
! The following example enables the router work in switched mode, and all the source addresses of the calls forwarded from the X.25 interface Serial0 will be replaced by 012020112451. Quidway(config)# x25 routing Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# x25 address 012020112451 Quidway(config-if-Serial0)# x25 use-source-address

Related Command
show x25 interface, x25 address

4.49 x25 win


To set the incoming windowsize on the X.25 interface, use the command x25 win. To restore to the default value, use the no form of the command. x25 win packets no x25 win

Syntax Description
packets size of the incoming window, ranging 1 to one less than the window modulus. (including 1 and one less than the modulus).

Default
Default incoming windowsize on the X.25 interface is 2 packets.

Command Mode
Interface configuration mode

4-43

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Usage Guideline
This parameter specifies the maximum count of correct packets received before X.25 sends correct acknowledgement. As long as the bandwidth allows, the greater the windowsize is, the higher the transmission efficiency. Please consult your ISP about the incoming and outgoing windowsize. Unless supported by the network, do not set these two parameters to different values.

Example
! The following example sets the incoming and outgoing windowsizes on the X.25 interface Serial0 to 5. Quidway(config-if-Serial0)# x25 win 5 Quidway(config-if-Serial0)# x25 wout 5

Related Command
show interface, show x25 interface serial, x25 map, x25 pvc, x25 threshold, x25 wout

4.50 x25 wout


To set the outgoing window size on X.25 interface, use the command x25 wout. To restore to the default value, use the no form of the command. x25 wout packets no x25 wout

Syntax Description
packets size of the outgoing windowsize, ranging 1 to one less than the modulus (including 1 and one less than the modulus).

Default
Default outgoing windowsize on the X.25 interface is 2.

Command Mode
Interface configuration mode

Usage Guideline
This parameter specifies the maximum count of correct packets received before X.25 sends correct acknowledgements. As long as the bandwidth allows, the greater the windowsize is, the higher the transmission efficiency. Please consult your ISP about the incoming and outgoing windowsizes. Unless supported by the network, do not set these two parameters to the different values.

4-44

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Example
! The following example sets the incoming and outgoing windowsizes on the X.25 interface Serial0 to 5. Quidway(config-if-Serial0)# x25 win 5 Quidway(config-if-Serial0)# x25 wout 5

Related Command
show interface, show x25 interface serial, x25 map, x25 pvc, x25 threshold, x25 win

4.51 show x25 alias


To configure an X.25 interface to accept all reverse charge calls, use the command show x25 alias. show x25 alias

Command Mode
Privileged user mode.

Usage Guideline
This command can be used to show all the aliases set for all the X.25 interfaces.

Example
! The following example displays the X.25 alias table. Quidway# show x25 alias
Alias for Serial0: Alias for Serial1: Alias1: $20112405$ Alias2: $20112450 Alias3: 20112450$

strict left right

The above information indicates that, no alias is set for Serial0; 3 aliases are set for Serial1, and they are $20112405$ (matching mode: strict), $20112405 (matching mode: left alignment), and 20112405$ (matching mode: right alignment ).

Related Command
show x25 interface, x25 alias

4.52 show x25 interface


To display the X.25 interface information, use the command show x25 interface . show x25 interface serial [number]

4-45

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
number interface serial number.

Default
If no interface serial number is specified, the information about all X.25 interfaces will be displayed.

Command Mode
Privileged user mode

Usage Guideline
After configuring some X.25 parameters and attributes, or enabling or disabling some X.25 functions, you can use the command to view the result of your operation and obtain the related X.25 configuration information on this interface.

Example
! The following is sample output about X.25 interface Serial0 from the command. Quidway# show x25 interface serial 0
Encapsulation X.25 DTE IETF, address is , state Ready, modulo 8 input/output: window sizes 2/2, packet sizes 128/128 Channels: Incoming-only 0-0, Two-way 1-1024, Outgoing-only 0-0 Timers: T20 180, T21 200, T22 180, T23 180, T28 300, Idle_Timer 0 New configuration(will be effective after restart): modulo 8 input/output: window sizes 2/2, packet sizes 128/128 Channels: Incoming-only 0-0, Two-way 1-1024, Outgoing-only 0-0 Statistic: Restarts 0 (Restart Collisions 0) Refused Incoming Call 0, Failing Outgoing Call 0 input/output: RESTART 0/0 CALL 0/0 DIAGNOSE 0/0 DATA 0/0 INTERRUPT 0/0 Bytes 0/0 RR 0/0 RNR 0/0 REJ 0/0 Invalid Pr: 0 Invalid Ps: 0 Unknown: 0 LAPB DTE, module 8, k 7, N1 2104, N2 5 timer: T1 2000, T2 1000, T3 0 (milliseconds) state DISCONNECT, VS 0, VR 0, Remote VR 0 IFRAME 0/0, RR 0/0, RNR 0/0, REJ 0/0 FRMR 0/0, SABM 0/0, DM 0/0, UA 0/0 DISC 0/0, invalid ns 0, invalid nr 0, link resets 0

4-46

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Table LLC-4-5 LAPB information displayed via show x25 interface command
Field Encapsulation LAPB LAPB DTE module 8 k7 N1 12032 N2 5 timer: state VS VR Remote VR IFRAME 0/0 ... DISC 0/0 Invalid Ns Invalid Nr Link Resets Meaning The current encapsulation protocol on this interface is LAPB protocol. This LAPB interface works in DTE mode. The information frame and monitor frame sent by this LAPB interface is numbered in modulo 8 mode. The LAPB window size on this interface is 7. The maximum frame size that can be sent by this LAPB interface is 12032 bits. The maximum number of times that the LAPB information frames can be retransmitted by this interface is 5. Delay values of the LAPB timers on this interface in second. Current state of this LAPB interface. Outgoing variable on this LAPB interface. Incoming variables on this LAPB interface. Final verification of remote information frame received by LAPB on this interface. Statistics of frames received and transmitted on this interface; format: frames received/frames transmitted. LAPB erroneous statistics on this interface: number of incoming information frames with numbering errors. LAPB erroneous statistics on this interface: number of incoming information frames and monitor frames with numbering errors. Number of LAPB link reset times on this interface.

Table LLC-4-6 X.25 information displayed via the show x25 interface command
Field Encapsulation X.25 DTE IETF address is state modulo input/output: window sizes... Channels: Timers: New Configuration Restarts 0 ( Restart Collision 0) Refused Incoming Call Failing Outgoing Call Input/output: RESTART 0/0... REJ 0/0 Invalid Ps Invalid Pr Unknown Meaning The encapsulation protocol on this interface is X.25, which works in DTE mode; the datagram encapsulation format is IETF X.121 address of this X.25 interface; if there is no such an address, this field is blank. Current state of this X.25 interface. All the data packets and traffic control packets sent from this X.25 interface are numbered in modulo 8 mode Traffic control parameters for this X.25 interface, including the window size, outgoing window size, maximum incoming packet size (in byte), and maximum outgoing packet size (in byte). Division of channels for this X.25 interface: they are incoming-only channel, two-way channel, and outgoing channel. If both values of a range are 0, this area is disabled. The delay values of the timers on this X.25 interface in second. New configuration on this X.25 interface that will take effect when the system is restarted. If there is error in it, it will restore to the default values. Statistics of this X.25 interface: number of restart times (including the number of collisions after the restart) Statistics of this X.25 interface: number of times for the incoming calls refused Statistics of this X.25 interface: number of outgoing calls failed Statistics of this X.25 interface: number of packets incoming or outgoing, the format: number of incoming packets/number of outgoing packets Erroneous statistics on this interface: number of incoming data packets with numbering errors. Erroneous statistics on this interface: number of incoming data packets and traffic control packets with numbering errors. Erroneous statistics on this interface: number of incoming data packets that cannot be resolute.

4-47

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Related Command
show interface

4.53 show x25 map


To display the X.25 address maps, use the command show x25 map. show x25 map

Command Mode
Privileged user mode

Usage Guideline
The X.25 address map can be configured in two approaches: special configuration (through the x25 map command) or implied configuration (through the x25 pvc command). The show x25 map command can be used to show all the address maps.

Example
! The following is sample output from the command. Quidway# show x25 map
Serial0: X.121 20112450 <--> ip 202.38.165.19 No VC attched Facility: ACCEPT_REVERSE; BROADCAST; PACKET_SIZE: I 512 O 512 ; SVC_MAP

Serial1: X.121 20112451 <--> ip 202.38.166.20 PVC_MAP 1 VC: 3* Facility: BROADCAST; WINDOW_SIZE: I 5 O 5 ; The following table explains with detail the meanings of the fields in the above address map information .

Table LLC-4-7 X.25 address map information


Field Serial0 X.121 20112451 ip 202.38.165.19 SVC_MAP 1 VC: 3* Facility Meaning Name of the X.25 interface on which this map is configured X.121 address of the destination of this address map Protocol type and address of the destination of the higher-level protocol mapped to the remote host Type of this address map: SVC_MAP stands for a SVC address map; PVC_MAP stands for a PVC address map. There is only one virtual circuit related with this address map, whose number is 3; if there is no virtual circuit attach to this address map, this field is set to No VC attached Option for this address map. For example, Broadcast means that broadcast enabled via this address map

Related Command
x25 map, x25 pvc, show x25 interface

4-48

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

4.54 show x25 switch-vc-table


To display the X.25 SVC table, use the command show x25 switch-vc-table. show x25 switch-vc-table

Command Mode
Privileged user mode

Usage Guideline
This command is used for displaying the condition of the X.25 switched virtual circuit.

Example
! The following is sample output from the command. Quidway(config)# show x25 switch-vc-table
# 1 # 2 (In: Serial0-vc1024) (In: Serial1-vc1024) (Out: Serial1-vc1) (Out: Serial0-vc1)

The above information indicates that there are two records in the current switched virtual circuit: l l in from virtual circuit 1024 on Serial0, and out from virtual circuit 1 on interface Serial1. in from virtual circuit 1024 on Serial1, and out from virtual circuit 1 on interface Serial0.

Related Command
x25 pvc x25 route interface, x25 route xot

4.55 show x25 route


To display the X.25 routing table, use the command show x25 route . show x25 route

Command Mode
Privileged user mode, global configuration mode, interface configuration mode, routing protocol configuration mode, etc.

Usage Guideline
Information shown via this command includes: virtual circuit number and its switch interface.

Example
! The following is sample output from the command. Quidway(config)# show X25 route
Number X.121 CUD FowardTo

4-49

User Manual - Command Reference (Volume 1) Versatile Routing Platform


# 1 # 2 1 2

Chapter 4
LAPB, X.25 and X.25 Switching Commands
Serial0 Serial1

The above information indicates that, the call whose destination X.121 is 1 will be switched to Serial0 for an output, and the call whose destination X.121 address is 2 will be switched to Serial1 for an output.

Related Command
show x25 interface, x25 routing, x25 pvc, x25 route interface , x25 route xot

4.56 show x25 vc


To display information about the X.25 virtual circuit, use the command show x25 vc. show x25 vc [ lcn ]

Syntax Description
lcn logic channel number.

Default
If no logic channel number is specified, all the virtual circuits will be displayed.

Command Mode
Privileged user mode, global configuration mode, interface configuration mode, routing protocol configuration mode, etc.

Usage Guideline
SVC (switched virtual circuit) is set up temporarily by X.25 through call connection when data transmission is required. PVC is configured manually, and exists regardless of the data transmission requirement. When the router works in X.25 switched mode, virtual circuits will be set up for transmission of the switched data. The information about these virtual circuits can be shown via this command, only some fields in the displayed information differ.

Example
! The following is sample output from the command. Quidway# show x25 vc
SVC 1, State:TRANSFER, Interface: Serial0 Started: 1998-1-1 1:48:11, Last input: 0:45:57, Last output: 0:45:59 Connects: X.121 20112450 <--> ip 202.38.165.19 Window size: input 5 output 5 Packet Size: input 128 output 128 PS: 0 PR: 0 ACK: 0 Remote PR: 0 RCNT: 0 RNR: FALSE Reset times: 0 input/output: DATA 1154/1022 INTERRUPT 0/0 Bytes 1569732/1435638 RR 143/165 RNR 0/0 REJ 0/0 Snd Queue: Current length 0 Max length 50 Drops 0 Rcv Queue: Current length 0 Max length 50 Drops 0 PVC 3, State:TRANSFER, Interface: Serial1 ed: 1998-1-1 1:48:11, Last input: 0:30:09, Last output: 0:30:17 Connects: X.121 20112451 <--> ip 202.38.166.20

4-50

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Window size: input 5 output 5 Packet Size: input 128 output 128 PS: 0 PR: 0 ACK: 0 Remote PR: 0 RCNT: 0 RNR: FALSE Reset times: 0 input/output: DATA 0/0 INTERRUPT 0/0 Bytes 0/0 RR 0/0 RNR 0/0 REJ 0/0 Snd Queue: Current length 0 Max length 50 Drops 0 Rcv Queue: Current length 0 Max length 50 Drops 0

The above information indicates that: on the X.25 interface Serial0, there exists a SVC whose number is 1; on the X.25 interface Serial1, there exists a PVC whose number is 3. The following table offers the description of the fields in the above information: Table LLC-4-8 Information about X.25 virtual circuit
Field SVC 1 State Interface Started Last input Last output Meaning The type and number of the virtual circuit. SVC stands for the switched virtual circuit, and PVC for the permanent virtual circuit Current state of the virtual circuit Name of the interface on which the virtual circuit is established Time elapsed since the VC was created. Format: : year-month-day hour: minute: second Time of last input (when the show x25 vc is executed) on the virtual circuit. Format: hour: minute: second Shows time of the last output (when the show x25 vc is executed) on the virtual circuit. Format: hour: minute: second If the router is the start / end point (that is, the router does not work in X.25 switched mode), this field indicates the address map attached to this virtual circuit. If the virtual circuit is set up for switching (that is, the router works in switched mode), this field describes the type and number of the VC on another X.25 interface attached to this VC. For example, Serial1 SVC 1024 indicates that this VC is attached to SVC1024 on the X.25 interface Serial1 The incoming window size and outgoing window size of this VC The maximum packet size of this VC Variable currently sent on this VC Variable current received on this VC Current acknowledgement variable on this VC Last acknowledgement from the far end on this VC Count of unacknowledged output packets If this VC is in the Receiver Not Ready status. TRUE indicate that it is in this status, and FALSE indicates that it is not in this status Number of VC reset times Statistics about this VC, including the input and output packets, and the total bytes of all the data packets Current status of the output queue of this VC: maximum hold size, current queue length, and packets dropped due to a full queue Current status of the input queue of this VC: maximum hold size, current queue length, and packets dropped due to a full queue

Connects

Window size Packet size Vs Vr ACK Remote Vr RCNT RNR Reset times input/output: DATA...REJ 0/0 Snd Queue Rcv Queue

Related Command
clear x25 vc, show x25 interface serial, x25 pvc

4.57 debug x25 xot


To enable the XOT debugging information output, use the debug x25 xot [ all | event | packet ] command. debug x25 xot [ all | event | packet ]

4-51

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 4
LAPB, X.25 and X.25 Switching Commands

Syntax Description
all Enable all the XOT debugging information output. event Enable the XOT event debugging information output . packet Enable the XOT packet debugging information output.

Default
Disable all the XOT debugging information output.

Command Mode
Privileged user mode

Usage Guideline
After enabling the XOT packet debugging information output, all the packets received and sent by XOT will be output. After enabling the XOT event debugging information output, all the XOT events will be output.

Example
! Enable all the XOT debugging information output. Quidway# debug x25 xot all

Related Command
debug all show debugging logging on logging console

4-52

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Chapter 5 Frame Relay Commands


Frame relay commands include: l l l l l l l l l l l l l l l l l l l l l l l l l l clear frame-relay-inarp encapsulation frame-relay frame-relay interface-dlci frame-relay intf-type frame-relay inverse-arp frame-relay ip tcp header-compress frame-relay local-dlci frame-relay lmi-n391dte frame-relay lmi-n392dce frame-relay lmi-n392dte frame-relay lmi-n393dce frame-relay lmi-n393dte frame-relay lmi-t391dte frame-relay lmi-t392dce frame-relay lmi-type frame-relay map frame-relay route frame-relay switching show frame-relay lmi show frame-relay map show frame-relay packet show frame-relay pvc show frame-relay route show frame-relay status show frame-relay traffic debug frame-traffic

5.1 clear frame-relay-inarp


To clear all the Frame Relay maps created by the use of Inverse Address Resolution Protocol, use the clear frame-relay-inarp command. clear frame-relay-inarp

Command Mode
Privileged user mode

Usage Guideline
In some special circumstances, the change of the network architecture will cause the failure of the dynamic Frame Relay map that originally created and it is necessary to create it again. You can use this command to clear all the dynamically created maps.

Example
! The following example clears all the dynamic frame relay maps. Quidway# clear frame-relay-inarp

5-1

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Related Command
frame-relay inverse-arp

5.2 encapsulation frame-relay


To enable Frame Relay encapsulation, use the encapsulation frame-relay Interface configuration command. encapsulation frame-relay [ ietf | cisco-compatible ]

Syntax Description
ietf Sets the encapsulation method to comply with the Internet Engineering Task Force (IETF) standard. This is the default encapsulation. cisco-compatible Sets the encapsulation method to comply with Cisco.

Default
Default link-layer protocol encapsulation on the interface is PPP. Default frame-relay protocol encapsulation is IETF.

Command Mode
Interface configuration mode

Usage Guideline
In the Quidway series of routers, the frame relay encapsulation can either be the IETF or cisco-compatible. IETF encapsulation conforms with RFC1294, that is, support IETF standard; cisco-compatible encapsulation method is the same as that used in the Cisco router.

Example
! The following example configures Frame Relay encapsulation on interface Serial0 and the default ietf encapsulation is used. Quidway(config-if-Serial0)# encapsulation frame-relay

Related Command
show interface

5.3 frame-relay interface-dlci


To assign a data link connection identifier to a specified Frame Relay main interface or sub-interface, use frame-relay interface-dlci Interface configuration command. To remove this assignment, use the no form of this command. frame-relay interface-dlci dlci no frame-relay interface-dlci dlci

5-2

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Syntax Description
dlci DLCI number to be used on the specified FR main interface or sub-interface.

Command Mode
Interface configuration mode

Default
No DLCI is assigned.

Usage Guideline
Functionally this command is similar to the frame-relay local-dlci command, with the difference that frame-relay local-dlci can only specify a DLCI for the main interface while frame-relay interface-dlci can specify a DLCI for both the main interface and sub-interface. While configuring the frame relay main interface, you only specify the DLCIs at the DCE side. While configuring the frame relay sub-interface, you must specify the DLCIs at the DCE and DTE sides at the same time

Example
! The following example assigns a DLCI 100 to Frame Relay sub-interface Serial0.1. Quidway(config-if-Serial0.1)# frame-relay interface-dlci 100

Related Command
encapsulation frame-relay

5.4 frame-relay intf-type


To set the Frame Relay terminal type, use the frame-relay intf-type . To restore to the default Frame Relay terminal type, use the no form of the command. frame-relay intf-type { dte | dce | nni } no frame-relay intf-type

Syntax Description
dte , dce and nni are three FR operations.

Default
DTE

Command Mode
Interface configuration mode

5-3

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Usage Guideline
In frame relay, there are two communicating parties, namely, the user side and network side. The user side is called data terminal equipment (DTE), and the network side is called as data communications equipment (DCE). The frame relay interface of the Quidway series of routers can either work in DTE mode or DCE mode. If two routers are connected back to back, then one is DCE, and the other is DTE. If a router is connected to the frame relay switch, then the router should work in DTE mode. If a certain frame relay interface is required to support the PVC switch, it is then necessary to set the operation mode of this interface to NNI, and the corresponding interface at the remote router should be set to NNI accordingly. Note that, to configure DCE or NNI, you first need to enable the frame-relay switching in Global configuration.

Example
! The following example configures the frame relay interface Serial0 working in the DCE mode. Quidway(config)# frame-relay switching Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# frame-relay intf-type dce

Related Command
encapsulation frame-relay, frame-relay switching

5.5 frame-relay inverse-arp


To dynamically enable the Inverse Address Resolution Protocol, use frame-relay inverse-arp command. To disable the use of protocol, use the no form of the command. frame-relay inverse-arp [ ip | ipx ] [ dlci ] no frame-relay inverse-arp [ ip | ipx ] [ dlci ]

Syntax Description
ip IP is supported for inverse address resolution . ipx IPX is supported for inverse address resolution . dlci data link connection identifier number, indicating that inverse address resolution is performed for this DLCI number only.

Default
Disabled.

Command Mode
Interface configuration mode
5-4

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Usage Guideline
When frame relay sends data over the interface, it is also necessary to map the network address to the DLCI numbers. Such a map can be specified manually or can be completed via the function of automatic inverse address resolution.

Example
! The following example enable inverse address resolution only on IP at the frame relay main interface Serial0. Quidway(config-if-Serial0)# frame-relay inverse-arp ip

Related Command
frame-relay map, clear frame-relay inverse-arp, show frame-relay map

5.6 frame-relay ip tcp header-compress


To enable the compression of TCP/IP packet header, use the command frame-relay ip tcp header-compress. To disable the compression of TCP/IP packet header, use no form of the command. frame-relay ip tcp header-compress [ passive ] no frame-relay ip tcp header-compress

Syntax Description
passive Passive compression mode will be used on the interface.

Default
Active header compression

Command Mode
Interface configuration mode

Usage Guideline
TCP/IP header compression is supported by frame relay protocol. Only when the Frame Relay encapsulation is cisco-compatible can TCP/IP header compression be enabled. TCP/IP header compression can either be specified on an interface or be specified when configuring the static mapping.

Example
! The following example configures serial interface0 to use the passive TCP/IP header compression. Quidway(config-if-Serial0)# frame-relay ip tcp head-compress passive

5-5

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

5.7 frame-relay lmi-n391dte


To set a PVC status counter, use the command frame-relay lmi-n391dte . To restore to the default value of PVC status counter, use the no form of the command. frame-relay lmi-n391dte n391-value no frame-relay lmi-n391dte n391-value

Syntax Description
n391-value counter value of the PVC status. Acceptable value is a positive integer in the range of 1 through 10.

Default
Default is 3 errors.

Command Mode
Interface configuration mode

Usage Guideline
The DTE sends a Status-Enquiry packet set by T391 at regular interval to the DCE. There are two types of Status-Enquiry packets: link integrity authentication packet and link status enquiry packet. The N391 parameter defines the ratio of the two outgoing packets, that is, link integrity authentication packets: link status enquiry packets = (N391-1): 1.

Example
! The following example sets DTE as the operation on frame relay interface Serial0, and the counter value of the PVC status request to 8. Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dte Quidway(config-if-Serial0)# frame-relay lmi-n391dte 8

Related Command
frame-relay intf-type, frame-relay lmi-t391dte

5.8 frame-relay lmi-n392dce


To set LMI error threshold on a DCE, use the command frame-relay lmi-n392dce . To remove the current setting, use the no form of the command. frame-relay lmi-n392dce n392dce-value frame-relay lmi-n392dce

5-6

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Syntax Description
n392dce-value LMI error threshold on a DCE. Acceptable value is a positive integer in the range of 1 through 10.

Default
Default is 3 errors.

Command Mode
Interface configuration mode

Usage Guideline
The DCE requires the DTE to send a Status-Enquiry packet at regular interval (decided by T392). If the DCE does not receive the Status-Enquiry packet, it will record the error by adding 1 to the error count. If the errors reach the threshold, the DCE would declare the physical channels and all the DLCI to be down. N392 and N393 together, define the error threshold. N393 indicates the event count observed and N392 indicates the error threshold in the event count observed. That is, if error count that occurred to the DEC is up to N392 in N393 time intervals, DCE will consider the errors have exceeded the threshold and declare the physical channels and all DLCIs to be down. N392 should be less than N393.

Example
! The following example sets the operation of frame relay interface Serial0 as DCE mode and sets N392 to 4. Quidway(config)# frame-relay switching Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dce Quidway(config-if-Serial0)# frame-relay lmi-n393dce 4

Related Command
frame-relay intf-type, frame-relay lmi-n393dce

5.9 frame-relay lmi-n392dte


To set the error threshold on a DTE, use the command frame-relay lmi-n392dte . To remove the current setting, use the no form of the command. frame-relay lmi-n392dte n392dte-value no frame-relay lmi-n392dte

5-7

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Syntax Description
n392dte-value LMI error threshold on a DTE. Acceptable value is a positive integer in the range of 1 through 10.

Default
Default is 3 errors.

Command Mode
Interface configuration mode

Usage Guideline
The DTE sends a Status-Enquiry packet at a regular interval (set by T392) to the DCE. On receiving this packet, the DCE will immediately send a Status-Enquiry packet. If the DCE does not receive the Status-Enquiry packet in the specified time, it will record the error by adding 1 to the error count. If the errors reach the threshold, then the DCE will declare the physical channels and all the DLCIs to be down. N392 and N393 together, define the error threshold. N393 defines the event count observed and N392 defines the error threshold in the event count observed. That is, if N392 errors occur to N393 Status-Enquiry packets in the DEC, the DCE will consider that the error count reached the threshold and declares physical channels and all DLCIs to be down. N392 should be less than N393.

Example
! The following example sets the operation of frame relay interface Serial0 as DTE mode and sets N392 to 5. Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dte Quidway(config-if-Serial0)# frame-relay lmi-n392dte 5

Related Command
frame-relay intf-type, frame-relay lmi-n393dte

5.10 frame-relay lmi-n393dce


To set the LMI event counter value on a DCE, use the command frame-relay lmin393dce . To remove the current setting, use the no form of this command. frame-relay lmi-n393dce n393dce-value no frame-relay lmi-n393dce

Syntax Description
n393dce-value LMI event counter value on a DCE. Acceptable value is a positive integer in the range of 1 through 10.

5-8

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Default
Default is 4 errors.

Command Mode
Interface configuration mode

Usage Guideline
The DCE requires the DTE to send a Status-Enquiry packet at a regular interval (set by T392). If the DCE does not receive the Status-Enquiry packet, it will record the error by adding 1 to the error count. If the errors reach the threshold, the DCE would declare that the physical channels and all the DLCIs to be down. N392 and N393 together define the error threshold. N393 defines the event count observed and N392 defines the error threshold in the event count observed. That is, if error count that occurred to the DEC is up to N392 in N393 time intervals, DCE will consider the errors have exceeded the threshold and declare the physical channels and all DLCIs to be down. N392 should be less than N393.

Example
! The following example sets the operation of frame relay interface Serial0 as DCE mode and sets N393 to 4. Quidway(config)# frame-relay switching Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dce Quidway(config-if-Serial0)# frame-relay lmi-n393dce 4

Related Command
frame-relay intf-type, frame-relay lmi-n393dce

5.11 frame-relay lmi-n393dte


To set the LMI event counter value on a DtE, use the command frame-relay lmin393dte . To remove the current setting, use the no form of this command. frame-relay lmi-n393dte n393-value no frame-relay lmi-n393dte

Syntax Description
n393dte-value LMI event counter value on a DTE. Acceptable value is a positive integer in the range of 1 through 10.

5-9

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Default
Default is 4 errors.

Command Mode
Interface configuration mode

Usage Guideline
The DTE sends a Status-Enquiry packet at a regular interval (set by T392) to the DCE to inquire the link status. On receiving this packet, the DCE will immediately send a Status-Response packet. If the DCE does not receive the acknowledgement in the specified time, it will record the error by adding 1 to the error count. If the errors reach the threshold, the DTE will declare that the physical channels and all the DLCIs to be down. N392 and N393 together, define the error threshold. N393 indicates the event count observed and N392 indicates the error threshold in the event count observed. That is, if N392 errors occur to N393 Status-Enquiry packets in the DCE, the DCE would consider that the error count reached the threshold and declare the physical channels and all DLCIs to be down. N392 should be less than N393.

Example
! The following example sets the operation of frame relay interface Serial0 as DTE mode and sets N393 to 5. Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dte Quidway(config-if-Serial0)# frame-relay lmi-n393dte 5

Related Command
frame-relay intf-type, frame-relay lmi-n392dte

5.12 frame-relay lmi-t391dte


To set the polling timer value on a DTE, use the command frame-relay lmi-t391dte . To remove the current setting, use the no form of this command. frame-relay lmi-t391dte t391dte-value frame-relay lmi-t391dte

Syntax Description
t391dte-value value of the polling timer. It can be a value in the range of 5s through 30s.

Default
15s.
5-10

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Command Mode
Interface configuration mode

Usage Guideline
This parameter defines the time interval for DTE sending the Status-Enquiry packet.

Example
! The following example sets the operation of frame relay interface Serial0 as DTE and sets T391 to 15 seconds. Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dte Quidway(config-if-Serial0)# frame-relay lmi-t391dte 15

Related Command
frame-relay intf-type, frame-relay lmi-t392dce

5.13 frame-relay lmi-t392dce


To set the polling timer value on a DCE, use the command frame-relay lmi-t392dce . To remove the current setting, use the no form of this command. frame-relay lmi-t392dce t392-value no frame-relay lmi-t392dce

Syntax Description
t392dce-value value of the polling timer on a DCE. It can be a value in the range of 5s through 30s.

Default
15s.

Command Mode
Interface configuration mode

Usage Guideline
This parameter defines the maximum time for DCE waiting for a Status-Enquiry, where T392 should be greater than T391.

Example
! The following example sets the operation of frame relay interface Serial0 as DCE mode and set T392 to 16s. Quidway(config-if-Serial0)# frame-relay intf-type dce

5-11

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Quidway(config-if-Serial0)# frame-relay lmi-t392dce 15

Related Command
frame-relay intf-type, frame-relay lmi-t391dte

5.14 frame-relay lmi-type


To select the LMI type, use the command frame-relay lmi-type . To return to the default LMI type, use the no form of the command. frame-relay lmi-type { cisco-compatible | ansi | q933a } frame-relay lmi-type

Syntax Description
cisco-compatible LMI type compatible with the Cisco standard. ansi Annex D defined by ANSI T1.617. q933a ITU-T Q.933 Annex A.

Default
q933a .

Command Mode
Interface configuration mode

Usage Guideline
The Quidway series of routers usually supports three LMI protocols, that is, Q.933 Annex A, Annex D of ANSI T1.617 and CISCO-compatible LMI.

Example
! The following example sets the FR LIMI type of Serial0 to Q.933 Annex A. Quidway(config-if-Serial0)# frame-relay lmi-type q933a

Related Command
show interface

5.15 frame-relay local-dlci


To set a DLCI number for Frame Relay main interface, use frame-relay local-dlci command. To delete a DLCI number for Frame Relay main interface, use the no form of the command. frame-relay local-dlci dlci no frame-relay local-dlci dlci

5-12

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Syntax Description
dlci Local DLCI number of the Frame Relay main interface.

Default
No DLCI number is set.

Command Mode
Interface configuration mode

Usage Guideline
The FR DLCi is determined at the DCE side, so it is unnecessary to configure this parameter at the DTE side.

Example
! The following example specifies the FR interface operation as DCE and the DLCI number as 100 and 200 Quidway(config)# frame-relay switching Quidway(config)# interface serial 0 Quidway(config-if-Serial0)# encapsulation frame-relay Quidway(config-if-Serial0)# frame-relay intf-type dce Quidway(config-if-Serial0)# frame-relay local-dlci 100 Quidway(config-if-Serial0)# frame-relay local-dlci 200

Related Command
frame-relay intf-type

5.16 frame-relay map


To add an entry of FR static mapping, use frame-relay map. Use the no form of the command to delete an entry. frame-relay map { ip | ipx } protocol-address dlci [ broadcast ] [ cisco-compatible | ietf ] [ lin logical-number ] [ nocompress | tcp header-compress [ active | passive ] ] no frame-relay map { ip | ipx } protocol-address dlci

Syntax Description
ip and ipx Frame Relay supported network protocol. protocol-address Destination protocol address. dlci DLCI number used to connect to. Broadcast broadcast is supported.

5-13

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

cisco-compatible FR interface encapsulation is compatible with that of Cisco ietf FR interface encapsulation adopts the ietf method lin logical-number Indicate where the logical channel the interface is attached nocompress Prohibit the interface to use the TCP/IP header compression tcp header-compress active Active header compression is used tcp header-compress passive Passive header compression is used

Default
Dynamic inverse address resolution enabled.

Command Mode
Interface configuration mode

Usage Guideline
The mapping can be manually created or can be completed via the inverse address resolution protocol. Manually configure the static mapping when there are few remote hosts or there is a default route. When the remote router supports inverse address resolution protocol and the network is rather complex, dynamically create the mapping via the inverse address resolution protocol.

Example
! The following example maps the destination IP address of the router 202.38.163.252 to local interface serial0. There is a DLCI = 50 on local Serial0 connected to this router. Configure the static mapping: Quidway(config-if-Serial0)# frame-relay map ip 202.38.163.252 50

Related Command
show frame-relay map, frame-relay inverse-arp

5.17 frame-relay route


To configure Frame Relay route for PVC switching, use the command frame-relay route . To remove the route, use the no form of the command. frame-relay route in-dlci interface serial number out-dlci no frame-relay route in-dlci

Syntax Description
in-dlci DLCI on which the packet is received on the interface number interface number of packet forwarded by a router out-dlci DLCI on which the packet is forwarded by a router on the specified interface.

5-14

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Default
No route is specified.

Command Mode
Interface configuration mode

Usage Guideline
Before the static route of FR PVC is configured, it is necessary to enable the FR PVC switching first by using the command frame-relay switching.

Example
! The following example configures a static route that allows packets in DLCI 100 on Seiral1 and transmits packets out over DLCI 200 on interface Serial2. Quidway(config-if-Serial1)# frame-relay route 100 interface Serial2 200

Related Command
show frame-relay route, frame-relay switching

5.18 frame-relay switching


To enable PVC switching on a frame relay DCE or an NNI interface, use the command frame-relay switching. Use the no form of the command to disable switching. frame-relay switching no frame-relay switching

Default
Disabled

Command Mode
Global configuration mode

Usage Guideline
Quidway series of routers can be used as Frame Relay switch and perform FR PVC switching. After enabling PVC switching on a frame relay DCE or an NNI interface, it is necessary to configure a route for PVC switching.

Example
! The following example enables PVC switching on FR interface. Quidway(config)# frame-relay switching

Related Command
frame-relay route

5-15

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

5.19 show frame-relay lmi


To display statistics about the Q.933, use the command show frame-relay lmi . show frame-relay lmi

Command Mode
Privileged user mode

Usage Guideline
The Q.933 signaling frame is used to maintain the current frame relay link, including the status enquiry packet and status packet. Such information helps the user to diagnose the fault.

Example
! The following is sample output from the command show frame-relay lmi. Quidway# show frame-relay lmi
LMI Statistics for Serial0(interface type: DTE) 100 status enquiry sent , 100 status received 0 status discarded, 0 status timeo uts

The above information indicates that: The terminal type of the FR encapsulation on this serial interface is DTE. 100 Status Enquiry packet have been sent and 100 Status packets are received. No Status Packet is dropped and there is no timeout for waiting for the Status Packet.

Related Command
frame-relay intf-type

5.20 show frame-relay map


To display the current FR mapping table, use the command show frame-relay map. show frame-relay map

Command Mode
Privileged user mode

Usage Guideline
The displayed information of the command indicates whether the static mapping configured by the user is correct and whether the dynamic mapping operates normally.

Example
! The following is sample output from the command. Quidway# show frame-relay map
Serial0(protocol is down): ip 1.1.1.1 100, static

5-16

User Manual - Command Reference (Volume 1) Versatile Routing Platform


ip 2.2.2.2 200, dynamic

Chapter 5
Frame Relay Commands

The above information indicates that: the FR protocol status on this serial interface has not yet been enabled. There are two IP addresses maps to the DLCI: one is the manually configured mapping from 1.1.1.1 to 100, and the other is the automatically generated mapping from 2.2.2.2 to 200. Table LLC-5-1 Information in frame relay address map
Field static dynamic Meaning The mapping relation is manually configured. The mapping relation is automatically generated via the inverse address resolution protocol.

Related Command
frame-relay map, frame-relay inverse-arp

5.21 show frame-relay packet


To display the Frame Relay statistics about the incoming and outgoing packets, use the command show frame-relay packet. show frame-relay packet

Command Mode
Privileged user mode

Usage Guideline
The output information of this command can help the user to make FR traffic statistics, fault diagnosis, etc.

Example
! The following is sample output from the command. Quidway# show frame-relay packet
Frame-relay packet statistics for interface Serial0: 7001 packet input, 96848 bytes 7001 packet output, 91013 bytes 3 input error, 0 output error

The above information indicates that: this interface has received 7001 incoming packets and 96848 bytes and transmitted out 7001 outgoing packets and 91013 bytes. 3 errors are received and no errors have been made while transmitting packets.

Related Command
show interface

5.22 show frame-relay pvc


To display the FR PVC table, use the command show frame-relay pvc.

5-17

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

show frame-relay pvc

Command Mode
Privileged user mode

Usage Guideline
This command displays the statistics of the FR PVC status and incoming/outgoing data on this VC.

Example
! The following is sample output from the command. Quidway# show frame-relay pvc
Serial0 Frame Relay DTE statistics: DLCI=100, status=ACTIVE FECNs=0, BECNs=0, RecvFrames=3, RecvOctets=90, SentFrames=0, SentOctets=0

The above information indicates that: this interface works in frame relay DTE mode. DLCI= 100 is up. No forward explicit congestion notification and backward explicit congestion notification received on this DLCI. Three frames with 90 bytes are received. There is no outgoing frame. Their meanings are given in the following table. Table LLC-5-2 Information in frame relay PVC
Field DLCI status FECNs BECNs RecvFrames RecvOctets SentFrames SentOctets Meaning Data link connection identifier DLCI status Number of Forward explicit congestion notifications received Number of Backward explicit congestion notifications received Number of frames received Number of octets received Number of frames sent Number of octets sent

Related Command
frame-relay local-dlci

5.23 show frame-relay route


To display all the configured FR routes along with their status, use the command show frame-relay route . show frame-relay route

Command Mode
Privileged user mode

Usage Guideline
Users can use the command to check if frame relay routes are correctly configured.
5-18

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Example
! The following is sample output from the command. Quidway# show frame-relay route
Input Intf Serial1 Serial1 Serial1 Serial1 Serial2 Serial2 Serial2 Serial3 Input Dlci 100 101 102 103 200 201 202 203 Output Intf Serial2 Serial2 Serial2 Serial3 Serial1 Serial1 Serial1 Serial1 Output Dlci 200 201 202 203 100 101 102 103 Status active active active inactive active active active inactive

The description of the fields is as follows: Table LLC-5-3 Frame relay routing table description
Field Input Intf Input DlCI Output Intf Output DlCI Status input interface and unit input DLCI number output interface and unit output DLCI number status of the connection Description

Related Command
frame-relay route

5.24 show frame-relay status


To display the FR status on each interface, use the command show frame-relay status. show frame-relay status

Command Mode
Privileged user mode

Usage Guideline
This command can output the FR protocol status on each interface, which is helpful for the users to make fault diagnosis.

Example
! The following is sample output from the command. Quidway# show frame-relay status
Serial 0 Current Status: DOWN Serial 1 Current Status: UP

The above information indicates that: the FR interface Serial0 is DOWN and Serial1 is UP. Their meanings are given in the following table.

5-19

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

Table LLC-5-4 FR protocol status information on the interface


Field UP DOWN Description Connected with the remote end and the link layer already enabled Link-layer is not enabled yet.

Related Command
show interface

5.25 show frame-relay traffic


To display the packet statistics of the FR Inverse Address Resolution Protocol, use the command, show frame-relay traffic. show frame-relay traffic

Command Mode
Privileged user mode

Usage Guideline
The packets of FR inverse ARP include address resolution request packet and address resolution response packet. According to the output information of this command, the user can diagnose if the inverse address resolution protocol operates normally.

Example
! The following is sample output from the command. Quidway# show frame-relay traffic
ARP request sent 0 ARP request recvd 0 ARP replies sent 0 ARP replies recvd 0

The above information indicates that no address resolution request packet and address resolution response packet are received or sent.

Related Command
frame-relay inverse-arp

5.26 debug frame-relay


To enable the information-debugging of FR packets, use the command debug framerelay. debug frame-relay { all | arp | event | lmi | packet } [ interface type number ]

Syntax Description
all Enable on the FR information-debugging. arp Enable the FR address resolution information-debugging.

5-20

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 5
Frame Relay Commands

event Enable the FR event information-debugging. lmi Enable the LMI protocol information-debugging. packet Enable the FR data packet information-debugging. interface type number Enable the FR packet information-debugging of a specified interface.

Command Mode
Privileged user mode

5-21

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 6
HDLC Commands

Chapter 6 HDLC Commands


HDLC configuration commands include: l l l encapsulation hdlc keepalive debug hdlc

6.1 encapsulation hdlc


To specify the interface link-layer protocol encapsulation as HDLC, use the command encapsulation hdlc. encapsulation hdlc

Default
Default is PPP protocol.

Command Mode
Interface configuration mode

Usage Guideline
The command will apply HDLC protocol encapsulation on the interface.

Example
! The following example configures HDLC encapsulate on interface Serial0. Quidway(config-if-Serial0)# encapsulation hdlc

Related Command
show interface

6.2 keepalive
To set the keepalive interval, use the command keepalive. Use the no form to disable keepalive. keepalive seconds no keepalive

Syntax Description
seconds keepalive interval value. The interval must be set as a positive integer that is in the range of 0 through 32767. 0 indicates that the keepalive function is disabled.

6-1

User Manual - Command Reference (Volume 1) Versatile Routing Platform

Chapter 6
HDLC Commands

Default
10 seconds.

Command Mode
Interface configuration mode

Usage Guideline
Two routers interconnected should have the same keepalive interval value. If they have two values greatly different, the router with the smaller value will send the keepalive frames several times consecutively. After that, if this router still cannot receive the keepalive frame of the opposite router, the protocol will declare down status.

Example
! The following example sets the keepalive interval value on interface Serial0 as 100 seconds. Quidway(config-if-Serial0)# keepalive 100

Related Command
show interface

6.3 debug hdlc


To enable the information-debugging of HDLC packets, use the command debug hdlc. debug hdlc { all | event | packet } [ interface type number ]

Syntax Description
all Enable all the HDLC information-debugging. event Enable the HDLC event information-debugging. packet Enable the HDLC data packet information-debugging. interface type number Enable the HDLC packet information-debugging of a specified interface.

Command Mode
Privileged user mode

6-2

Vous aimerez peut-être aussi