Académique Documents
Professionnel Documents
Culture Documents
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
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
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
Chapter 1
PPP and MP Commands
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
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
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
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
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
Syntax Description
request sending a callback request. accept accepting a callback request.
Default
Disabled.
Command Mode
Interface configuration mode
1-4
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
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
Chapter 1
PPP and MP Commands
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
Default
Disabled.
1-6
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
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
Chapter 1
PPP and MP Commands
Related Command
encapsulation ppp, multilink-user, interface virtual-template
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
Syntax Description
sent-username username sent. password password sent. 0 password in simple text. 7 password in encrypted text.
1-8
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
Chapter 2
SLIP Commands
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
Chapter 3
ISDN Commands
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
Chapter 3
ISDN Commands
Related Command
isdn answer2, show isdn answer
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
Chapter 3
ISDN Commands
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.
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
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
Related Command
show interface, show x25 interface
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
Related Command
show x25 interface, x25 response-called-address, x25 response-calling-address
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-13
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.
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
Related Command
show x25 interface, x25 map
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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
Syntax Description
minutes Number of minutes to prevent calls from going to previously failed destination.
4-17
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
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
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
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
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
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
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
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
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
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-22
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-23
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-24
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
Syntax Description
modulus modulo size, whose value is 8 or 128.
Default
modulo 8.
4-26
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
Related Command
x25 facility, x25 ips, x25 pvc
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
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
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
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
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
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-32
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
Related Command
x25 facility, x25 map
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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-36
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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
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
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
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
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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
Default
Disabled.
4-42
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
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
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
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
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
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$
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-45
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
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
Chapter 4
LAPB, X.25 and X.25 Switching Commands
Related Command
show interface
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 .
Related Command
x25 map, x25 pvc, show x25 interface
4-48
Chapter 4
LAPB, X.25 and X.25 Switching Commands
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
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
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
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
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-51
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
Chapter 5
Frame Relay Commands
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
Chapter 5
Frame Relay Commands
Related Command
frame-relay inverse-arp
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-2
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
Syntax Description
dte , dce and nni are three FR operations.
Default
DTE
Command Mode
Interface configuration mode
5-3
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
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
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
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
Chapter 5
Frame Relay Commands
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-6
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-7
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
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
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
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
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
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
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
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
Chapter 5
Frame Relay Commands
Related Command
frame-relay intf-type, frame-relay lmi-t391dte
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-12
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
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
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
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
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
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
Chapter 5
Frame Relay Commands
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
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
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
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-17
Chapter 5
Frame Relay Commands
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
Command Mode
Privileged user mode
Usage Guideline
Users can use the command to check if frame relay routes are correctly configured.
5-18
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
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
Chapter 5
Frame Relay Commands
Related Command
show interface
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
Syntax Description
all Enable on the FR information-debugging. arp Enable the FR address resolution information-debugging.
5-20
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
Chapter 6
HDLC Commands
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
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
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