03LLC(Link Layer Protocol Configuration Command).PDF
Transcript of 03LLC(Link Layer Protocol Configuration Command).PDF
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
1/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform Table of Contents
i
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-54.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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
2/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform Table of Contents
ii
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-424.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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
3/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform Table of Contents
iii
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-25.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-175.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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
4/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-1
Chapter 1 PPP and MP Commands
PPP and MP configuration commands include:
l encapsulation pppl multilinkl multilink-userl ppp authenticationl ppp callbackl ppp chap hostl ppp chap passwordl ppp compression stacl ppp multilinkl ppp negotiation timeout
l ppp pap sent-username
1.1 encapsulation ppp
To configure the link-layer protocol encapsulation on the interface as PPP, use thecommand encapsulation ppp.
encapsulation ppp
Default
Default protocol encapsulation is PPP.
Command Mode
Interface configuration mode
Usage Guideline
PPP is a link-layer protocol supporting network-layer packets over the point-to-pointlink. 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 userauthentication, easy scalability and supports synchronization and asynchronization.
The link-layer encapsulation protocol on the local interface should be the same as thaton the remote interface.
Example
! The following example configures PPP encapsulation on interface Serial0.
Quidway(config-if-Serial0)# encapsulation ppp
Related Command
show interface
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
5/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-2
1.2 multilink
To configure MP parameter, use the command multilink.
multilink { max-bindbinds | max-fragsfrags }
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-bindbinds command can be used to set the maximum number oflink 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-fragsfrags command canbe 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-useruser-namebindvirtual-template number
Syntax Description
user-name username.
number interface serial number.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
6/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-3
Command Mode
Global configuration mode
Usage Guideline
The specified interface should be encapsulated with PPP, and its MP attributes shouldbe specified.
After PPP authentication succeeds, it can be decided whether to bind the MP based onthe remote username and which interface s operating parameter is to be adopted forbinding. If a virtual interface template is specified, a new virtual interface will beadopted.
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 as202.38. 60.1.
Quidway(config)# multilink-user Quidway bind virtual-template 1
Quidway(config)# interface virtual-template 1
Quidway(config-virtual-template1)# ip address 202.38.60.1 255.255.255.0
Related Command
ppp multilink
1.4 ppp authentication
To set the PPP authentication method for the remote router, use the command pppauthentication . To disable the configuration, use the no form of the command.
ppp authentication { chap | pap } [ callin ] [ default | name-list]
no ppp authentication
Syntax Description
chap using CHAP authentication
pap using PAP authentication
chap pap first performs CHAP authentication, then perform PAP authentication
pap chap first performs PAP authentication, then perform CHAP authentication
callin means that only when the remote user calls in can he be authenticated.
default and name-list AAA authentication methods lists. For detailed description, referto the corresponding section of AAA settings.
Default
No PPP authentication is specified.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
7/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-4
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-timehandshake, 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 servesas 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 orAAA server.
Example
! The following example authenticates the remote router by means of PAP method oninterface Serial0.
Quidway(config-if-Serial0)# ppp authentication pap
Related Command
user, ppp chap host, ppp pap sent-username, aaa authentication ppp
1.5 ppp callback
To enable PPP to send or accept the callback request, use the command ppp callback.To disable the function, use the no form of the command.
ppp callback { request | accept }
no ppp callback { request | accept }
Syntax Description
request sending a callback request.
accept accepting a callback request.
Default
Disabled.
Command Mode
Interface configuration mode
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
8/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-5
Usage Guideline
The callback function can save transmission costs for the caller. Callback function isnecessary in some special circumstances.
Example
! The following example enables interface Serial0 to accept PPP callback request.
Quidway(config-if-Serial0)# ppp callback accept
Related Command
encapsulation ppp
1.6 ppp chap host
To the local router name with the CHAP, use the command ppp chap host. To disablethe configuration, use the no form of the command.
ppp chap hosthostname
no ppp chap host
Syntax Description
hostname name of the local router
Default
Quidway or domain name of a router configured via the hostname command.
Command Mode
Interface configuration mode
Usage Guideline
While configuring CHAP authentication, you need to configure the hostname as the
remote user, and the corresponding passwordmust be the same. The no form of thecommand can delete the configured hostname (name of the local router).
Example
! The following example configures the local router named as Quidway when CHAPauthentication is performed on interface Serial0.
Quidway(config-if-Serial0)# ppp chap host Quidway
Related Command
ppp authentication, user
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
9/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-6
1.7 ppp chap password
To configure the default CHAP password when the local router authenticates the
remote router, use the command ppp chap password. To disable the configuration,use the no form of the command.
ppp chap password { 0 | 7 }password
no ppp chap password
Syntax Description
password Password transmitted.
0 Display the password simple text.
7 Display the password in encrypted text.
Default
CHAP password is null.
Command Mode
Interface configuration mode
Usage Guideline
While configuring CHAP authentication, if you cannot find out the username that is sentfrom 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 thelocal routers perform the authentication via CHAP.
Quidway(config-if-Serial0)# ppp chap password 0 Quidway
Related Command
ppp authentication chap, user
1.8 ppp compression stac
To enable the Stac compression algorithm on the PPP of the interface, use the
command ppp compression stac. To disable the function, use the no form of thecommand.
ppp compression stac
no ppp compression stac
Default
Disabled.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
10/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-7
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 thisway, it use will add to the load of your router. So you had better disable this function. Inaddition, only when Stac is configured at both ends of a point-to-point link will this PPPlink support Stac compression.
Example
! The following example configures Stac compression on the local router.
Quidway(config-if-Serial0)# ppp compression stac
1.9 ppp multilink
To enable Multilink PPP (MP) on interface, use the command ppp multilink. To disablethe MP attribute, use the no form of the command.
ppp multilink
no ppp multilink
Default
SP (Single PPP) mode.
Command Mode
Interface configuration mode
Usage Guideline
To increase bandwidth, multiple PPP links can be bound to form a logical MP interface.For this purpose, it is necessary to specify a virtual interface template on thecorresponding physical interface. MP can be configured on any physical interfaceencapsulated with PPP, and it can also be configured on the virtual interface templateand Dialer interfaces.
Note that, to use MP on the virtual interface template and Dialer interface, The physicalinterface can only use MP only after the MP on this template and interface is enabledfirst.
Example
! The following example configures PPP encapsulation on interface Serial0 operates inMP mode.
Quidway(config-if-Serial0)# ppp multilink
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
11/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-8
Related Command
encapsulation ppp, multilink-user, interface virtual-template
1.10 ppp negotiation timeout
To set the PPP negotiation timeout, use the command ppp negotiation timeout. Torestore to the default value, use the no form of the command.
ppp negotiation timeoutseconds
ppp negotiate timeout
Syntax Description
seconds negotiation timeout in second. During PPP negotiation, if no
acknowledgement is received from the remote end within this time range, PPP willretransmit the packets that have been previously transmitted.
Default
3 seconds.
Command Mode
Interface configuration mode
Example
! The following example sets the PPP negotiation timeout to 10 seconds.
Quidway(config-if-Serial0)# ppp negotiate timeout 10
Related Command
encapsulation ppp
1.11 ppp pap sent-username
To configure the username and password when the local router is authenticated by theremote router via the PAP method, use the command ppp pap sent-username. Todisable the configuration, use the no form of the command.
ppp pap sent-usernamesent-usernamepassword { 0 | 7 }password
no ppp pap sent-username
Syntax Description
sent-username username sent.
password password sent.
0 password in simple text.
7 password in encrypted text.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
12/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 1PPP and MP Commands
1-9
Default
When the local router is authenticated by the remote end via PAP method, both theusername 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 passwordsent by the local router must be the same as the userandpasswordof the remote router.
Example
! The following example sets the username of the local router authenticated by theremote 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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
13/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 2SLIP Commands
2-1
Chapter 2 SLIP Commands
SLIP configuration commands include:
l encapsulation slip
2.1 encapsulation slip
To set the SLIP protocol encapsulation on the interface
encapsulation slip
Default
Protocol encapsulation on the interface is PPP encapsulation.
Command Mode
Interface configuration mode
Usage Guideline
SLIP (Serial Line IP), a simpler link-layer protocol, can be used over a point-to-point link.
It is mainly used to run TCP/IP over the point-to-point serial interface connection. SLIPcan only be used over the asynchronous link.
SLIP simply defines the start and end signs for a frame so as to intercept the IP packeton the serial line. As compared with PPP, it involves no address concept, no negotiationprocess, no packet type discrimination (so only one network protocol can be supportedat one time), and no error correction function.
While SLIP is used, SLIP encapsulation must be configured on the interfaces at bothends of a link.
Example
! The following example configures SLIP encapsulation on interface Serial0.
Quidway(config-if-serial0)# encapsulation slip
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
14/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 3ISDN Commands
3-1
Chapter 3 ISDN Commands
ISDN configuration commands include:
l isdn answer1l isdn answer2l show isdn activel show isdn answerl show isdn statusl show isdn timer
3.1 isdn answer1
To have the router verify a called-party number or sub-address number in the incomingsetup packet, use the command isdn answer1. To remove the verification request, usethe no form of the command.
isdn answer1[ called-party-number ] [ :subaddress ]
no isdn answer1[ called-party-number] [ :subaddress ]
Syntax Description
called-party-number called number, 20 or fewer characters long.
subaddress sub-address, 20 or fewer digits/letters long, case insensitive.
Default
The router does not verify the called number or sub-address number.
Command Mode
ISDN BRI and PRI Interface configuration mode
Usage Guideline
This command is used to set checking items in the incoming setup packet. When the
sub-address is set, this call will be rejected be the remote user no sending a sub-
address 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 to66668888.
Quidway(config-if-Bri0)# isdn answer1 66668888
! The following example removes the above setting.
Quidway(config-if-Bri0)# no isdn answer1
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
15/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
16/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 3ISDN Commands
3-3
show isdn active [ interface interface-name ]
Syntax Description
interface-name name of the interface. If no interface name is specified, all the currentcall 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 callproblems.
Example
The following is sample output from the command.
Quidway# show isdn active interface bri 0Bri0 :Channel Call Call Calling Calling Called CalledInfo Property Type Number Subaddress Number SubaddressB1 Digital Out 8810124B2 Analog In 8810118 380 8810150 2201
The above information indicates that there are two active calls on the ISDN Bri0interface:
l Digital call to 8810124 by B1 channel.l Analog call from a terminal whose number is 8810118 and sub-address is 380 by
B2 channel.
3.4 show isdn answer
To display the incoming called-party number and sub-address to be checked on theISDN interface, use the command show isdn answer.
show isdn answer[ interfaceinterface-name ]
Syntax Description
interface-name name of the interface. If no interface name is specified, all the incoming
called-party number and sub-address will be checked on ISDN interface.
Command Mode
Privileged user mode
Usage Guideline
After incoming call verification is over, the user can confirm if the configuration iscorrect according to the information output via this command.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
17/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 3ISDN Commands
3-4
Example
! The following is sample output from the command.
Quidway# show isdn answer interface bri 0Bri0 :
ISDN Answer1 66668888ISDN Answer2 :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 issub2000.
Related Command
isdn answer1, isdn answer2
3.5 show isdn statusTo display the current status of the ISDN interface, use the command show isdnstatus.
show isdn status [ interface interface-name ]
Syntax Description
interface-name name of the interface. If no interface name is specified, all the currentstatus 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 ISDNprotocol on the interface, including Q.921 and Q.931. Using this command, users canmake 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_ESTABLISHEDLayer 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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
18/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
19/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-1
Chapter 4 LAPB, X.25 and X.25 Switching
Commands
LAPB, X.25, and X.25 switch configuration commands include:
l clear xotl encapsulation lapbl encapsulation x25l lapb kl lapb modulol lapb n1l lapb n2l lapb t1
l lapb t2l lapb t3l x25 accept-reversel x25 addressl x25 aliasl x25 check-response-addressl x25 defaultl x25 facilityl x25 hicl x25 hocl x25 hold-queuel x25 hold-vc-timerl x25 htc
l x25 idlel x25 ipsl x25 licl x25 linkrestartl x25 locl x25 ltcl x25 mapl x25 modulol x25 nvcl x25 opsl x25 pvcl x25 pvcl x25 pvc XOT
l x25 response-called-addressl x25 response-calling-addressl x25 roal x25 route
l x25 route XOTl x25 routingl x25 supress-called-addressl x25 supress-calling-addressl x25 thresholdl x25 tx0l x25 tx1l x25 tx2l x25 tx3l x25 use-source-address
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
20/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-2
l x25 winl x25 woutl show x25 aliasl show x25 interface
l show x25 mapl show x25 switch-vc-tablel show x25 routel show x25 vcl debug x25 xot
4.1 clear xot
To clear a XOT link initiatively, use the command clear xot remote ip-address1port1local ip-address2port2
clear xot remote ip-address1por t1 local ip-address2port2
Syntax Description
remote indicates that the following parameters are those of the remote host.
ip-address1 the remote ip-address connected via XOT
port1 the remote port number connected via XOT
local indicates that the following parameters are those of the local host.
ip-address2 the local ip-address connected via XOT
port2 the local port number connected via XOT
Command Mode
Privileged user mode
Usage Guideline
Using the command clear xot can initiatively clear the XOT link.
Example
! Clear a XOT link.
Quidway# clear xot remote 10.1.1.2 1024 local 10.1.1.1 1998
Related Command
show x25 vc x25 routing
4.2 encapsulation lapb
To specify a serial interface using LAPB encapsulation, use the commandencapsulation lapb.
encapsulation lapb [ dte | dce ][ ip ]
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
21/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
22/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-4
Default
The default interface encapsulation is PPP. For X.25 encapsulation, the defaultoperation 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 interface s hardware DTE or DCE identity). Typically,when connecting to an X.25 public data network (PDN), the customer equipment actsas the DTE and the PDN attachment acts as the DCE. However, if two routers areconnected 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 DTEmode and the other in DCE mode).
Once a X.25 interface is re-encapsulated, be it with other link-layer protocol or X.25protocol, all the X.25 parameters that you have configured except the address mappingare restored to their default values. That is to say, when X.25 encapsulation is usedagain on this interface, you can only use address mapping among the configurationsthat have been previously used.
In a normal application without any special requirement, please select datagramencapsulation in the IETF format.
Example
! The following example specifies the use of X.25 encapsulation on the specifiedSerial0, 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 thedefault value of LAPB window parameter K, use the no form of the command.
lapb kk-value
no lapb k
Syntax Description
k-value maximum permissible number of I frames to be determined by the DTE or DCEin the specified time. If the modulo size is 8, then the window parameter K ranges 1through 7; if the modulo size is 128, the window parameter K ranges 1 through 127.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
23/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-5
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. nolapb k is used to restore the default value.
Example
! The following example sets the LAPB window parameter K as 7 on Serial0.
Quidway(config-if-Serial0)# lapb k 7
Related Command
lapb modulo
4.5 lapb modulo
To specify the LAPB frame protocol mode (also called modulo size), use the commandlapb modulo. Use the no form of the command to restore to the default value.
lapb modulo { 128 | 8 }
no lapb modulo
Syntax Description
128 modulo128 protocol mode is used.
8 modulo128 protocol mode is used..
Default
Default LAPB frame protocol mode is modulo 8.
Command Mode
Interface configuration mode
Usage Guideline
There are two LAPB frame protocol methods: modulo 8 and modulo 128. Each dataframe (I frame) is numbered in sequence, ranging 0 to one less than the windowmodulus. 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 issufficient for most links. Modulo 128 can achieve greater throughput on a high-speedlink 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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
24/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-6
modulus; and K specifies the maximum frames that can be sent before receipt of theacknowledgement.
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 n1n1-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 toreceive from the DTE or DCE. This value should be 8 times the MTU plus the packetsize of the protocol header. This value defines the maximum size of the transmissionframe, 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 defaultvalue, use the no form of the command.
lapb n2 n2-value
no lapb n2
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
25/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-7
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 froma 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 thedefault value of T1, use the no form of the command.
lapb t1t1-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. Thevalue of T1 should be greater than the maximum time spanning between sending aframe and receiving an acknowledgement. no lapb t1 is used to restore the defaultvalue of this parameter.
Example
! The following example sets the T1 transmission timer on Serial0 to 1000ms.
Quidway(config-if-Serial0)# lapb t1 1000
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
26/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-8
Related Command
lapb t2, lapb t3
4.9 lapb t2
To configure LAPB system transmission timer T2, use the command lapb t2. To restoreto the default value of T2, use the no form of the command.
lapb t2t2-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 anacknowledgement frame so that this frame can be received before the remote
DTE/DCE T1 timer expires (T2
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
27/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
28/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-10
Example
! The following example sets acceptance of reverse charge calls function on interfaceSerial0.
Quidway(config-if-Serial0)# x25 accept-reverse
Related Command
show x25 interface serial, x25 map
4.12 x25 address
To set the X.121 address of an X.25 interface, use the command x25 address. Todelete the address, use the no form of the command.
x25 addressx.121-address
no x25 address
Syntax Description
x.121-address X.121 address of an interface.
Default
If the data encapsulation format on this X.25 interface is IETF, this interface has noaddress. If the data encapsulation format on this X.25 interface is BFE or DDN, then theX121 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 legalX.121 address for it. In a setting where two routers are connected back to back, thislegal X.121 address can be specified at your discretion. If you want the router to work ina 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 todelete the original X.121 address, for the new address will overwrite the old one. Afterre-encapsulating an X.25 interface, the original X.121 address will be deleted. Onlyafter 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 addressand X.121 address, please consult ITU-T Recommendation X.121 and relevant RFCdocuments.
Example
! The following example configures X.25 encapsulation on interface Serial0 and setsthe X.121 address as 20112451.
Quidway(config)# interface serial 0
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
29/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-11
Quidway(config-if-Serial0)# encapsulation x25
Quidway(config-if-Serial0)# x25 address 20112451
Related Command
show interface, show x25 interface
4.13 x25 alias
To specify an alias for X.25 interface that will allow the interface to match all types of
mode, use the command x25 alias. To delete the alias, use the no form of thecommand.
x25 alias match-type alias-string
no x25 aliasmatch-type alias-string
Syntax Description
match-type match type of the alias. The optional match types include:
l free: free matchl free-ext: extended free matchl left: left alignment matchl left-ext: extended left alignment matchl right: right alignment matchl right-ext: extended right alignment matchl strict: strict matchl whole: whole match
l whole-ext: extended whole matchalias-stringstring of the alias
Default
No x.25 alias is configured.
Command Mode
Interface configuration mode
Usage Guideline
When an X.25 call is forwarded between networks, different X.25 networks mayperform 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 ifthe 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 ofConfiguration Guide.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
30/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
31/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
32/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-14
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 ty pe and parametervalue
Meaning
cug number Specifies a closed user group (CUG) number for the X.25 interface. CUGcanbe used by a PDN to create a VPN within the larger network and to restrictaccess. CUGs 1 to 9999 are allowed.
packetsize in-size out-size Specifies input maximum packet size (in-size) and output maximum packetsize (out-size) for flow control parameter negotiation. Both values must be oneof the following value: 16, 32, 64, 28, 256, 512, 1024, 2048, 4096.
windowsize in-size out-size 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 of1 to one less than the windowmodulus (including 1 and one less than the modulus).
reverse Specifies reverse charging on all calls originated by this X.25 interface.
throughput in out Set the requested throughput class negotiation values when a call is originatedby X.25 interface. The values of in/out are defined to be 75, 150, 300, 600,1200, 2400, 4800, 9600, 19200, and 48000.
transit-delay value Specifies the maximum network transit delay to request for the duration ofoutgoing calls for a network when a call is originated by the X.25 interface. Youcan set this request to any value ranging 0 second to 65534 second (including
0 and 65534).
roa name Specifies the name defined by the x25 roa command in Global configurationmode for the X.25 interface.
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 mappingthrough the command of x25 mapprotocol-nameprotocol-addressx.121-addressfacility-typefacility-value.
Example
! The following example specifies the traffic flow parameters negotiation with theremote 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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
33/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-15
Related Command
show x25 interface, x25 map
4.17 x25 hic
To set the highest incoming-only X.25 virtual circuit number, use the command x25 hic.To restore to the default value, use the no form of the command.
x25 hiccircuit-number
no x25 hic
Syntax Description
circuit-number virtual circuit number, ranging 0 to 4095. If this parameter is 0, you must
set another parameter lic (the lowest incoming-only virtual circuit number) of X.25 to 0,indicating that the incoming-only virtual circuit is disabled.
Default
Default highest incoming-only X.25 virtual circuit number is 0.
Command Mode
Interface configuration mode
Usage Guideline
By default, the Quidway series of routers disable the use of the incoming-only andoutgoing-only virtual circuit. Only the two-way range (1-1024) is kept for use. Please setthe VC range correctly according to the requirements of the ISP.
For VC setting requirements, please consult the chapter of LAPB, X.25 and X.25Switch Configuration.
Example
! The following example specifies X.25 encapsulation on Serial0, enables incoming-only and two-way virtual circuit and disables the outgoing-only virtual circuit. After thisserial 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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
34/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
35/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-17
4.19 x25 hold-queue
To set the length of the hold queue of the X.25 Virtual circuit, use the command x25
hold-queue. To restore the length of the queue to the default value, use the no form ofthe command.
x25 hold-queue queue-length
no x25 hold-queue
Syntax Description
queue-length length of the queue (with the number of packets as the unit).
Default
Default length of the hold queue in the X.25 VC is 50.
Command Mode
Interface configuration mode
Usage Guideline
When the data traffic is too heavy, you can use this command to extend the receivequeue and send queue of the X.25 VC to avoid data loss which may affect transmissionperformance. It should be noted here that modifying this parameter would not affect thehold queue limits of the existing VC.
Example
! The following example sets the X.25 hold queue to hold 75 datagrams.
Quidway(config-if-Serial0)# x25 hold-queue 75
Related Command
x25 ips, x25 ops
4.20 x25 hold-vc-timer
To start the timer that prevents additional calls to a destination, use the command x25hold-vc-timer. To restore the default value for the timer, use the no form of thecommand.
x25 hold-vc-timerminutes
no x25 hold-vc-timer
Syntax Description
minutes Number of minutes to prevent calls from going to previously failed destination.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
36/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-18
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) willdeteriorate the working efficiency of the Quidway router. The use of this function canavoid this problem to some degree. If this parameter is set to 0, this is equal to disablingthe function. In addition, this function is effective to the locally originated calls only. Thatis, this parameter is meaningless when the X.25 of the Quidway router works inswitched mode.
Example
! The following example sets the timer on the X.25 interface Serial0 to 5 minutes.
Quidway(config-if-Serial0)# x25 hold-vc-timer 5
Related Command
show x25 interface serial
4.21 x25 htc
To set the highest two-way VC number, use the command x25 htc. To restore thedefault value, use the no form of the command.
x25 htc circuit-number
no x25 htc
Syntax Description
circuit-number VC number, ranging 0 to 4095. If this parameter is 0, you must setanother X.25 parameter 1tc (lowest two-way VC number) to 0, indicating that the two-way VC is disabled.
For VC setting requirements, please consult LAPB, X.25 and X.25 SwitchConfiguration.
Default
Default highest two-way X.25 VC number is 1024.
Command Mode
Interface configuration mode
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
37/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
38/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-20
SVC automatically. If this parameter is set to 0, this SVC will be reserved no matter howlong 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 inthecommand ofx25 map.
Example
! The following example sets the maximum idle time for the SVC on interface Serial0 to10 minutes.
Quidway(config-if-Serial0)# x25 idle 10
Related Command
clear x25 vc, x25 map
4.23 x25 ips
To set the maximum input packet size for an X.25 interface, use the command x25 ips.To restore to the default value, use the no form of the command.
x25 ipsbytes
no x25 ips
Syntax Description
bytes maximum packet size in byte. It can be one of the following value: 16, 32, 64, 28,256, 512, 1024, 2048, 4096.
Default
Default maximum packet size is 128.
Command Mode
Interface configuration mode
Usage Guideline
Usually, the X.25 public data network has a maximum transmission packet size, andthe size of a packet sent by the DTE shall not exceed this length (otherwise it will triggerthe resetting of the VC). So, the DTEs at both the send and receive ends are required tohave the fragmentation and reassembling functions. The DTE at the send end breakthe packet into more packets with the more data bit (M-bit) set except for the last. Whenthe DTE at the receive end receives this series of fragments, it reassembles thesefragments 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.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
39/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
40/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
41/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
42/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
43/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-25
Syntax Description
protocol-type network protocol type of the address mapping. At present, X.25 of theQuidway 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 destinationaddresses 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 anymodification, you can first delete this mapping (with the no x25 map command), andthen 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 aconfiguration). It is recommended that the X.121 addresses of all the mappings on aX.25 should be different from each other; otherwise, such configuration may have sideeffect on the system.
The following table shows all the options and their meanings:
Table LLC-4-2 Map Options Supported by X.25
Option Meaning
accept-reverse 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.broadcast Direct any broadcasts of network protocol and the multicast of IP to the
destination. This option provides powerful support for some routingprotocols (such as Routing Information Protocol).
cug group-number Specifies a closed user group number of an X.25 interface.
idle minutes Maximum period of idle time for the VC associate with the address map. 0means that the idle time is infinite.
lin logical-channel-number Logic channel number of the address map in the backup center (please
consult Backup Center Configuration.no-incoming Deny call to the address map.
no-outgoing Deny call originating from the address map.
nvc count Maximum number of VCs for the map.packetsize in-size out-size When the address map is used to originate a call, it negotiates the
maximum packet size with the remote end. The packetsize is counted inbyte, which must range from 16 to 4096 (including 16 and 4096), and must
be the integer power of 2.reverse Specifies reverse charging for outgoing calls.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
44/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
45/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
46/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-28
Example
! The following example sets this parameter on the X.25 interface Serial0 to 3.
Quidway(config-if-Serial0)# x25 nvc 3
Related Command
show interface, show 25 interface serial, x25 map
4.31 x25 ops
To set the maximum output packet size for an X.25 interface, use the command x25ops. To restore to the default value, use the no form of the command.
x25 opsbytes
no x25 ops
Syntax Description
bytes maximum output packet size in byte. The byte count can be a value of thefollowing: 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 sizeof a packet sent by the DTE shall not exceed this length (otherwise it will trigger theresetting of the VC). So, the DTEs at both the send and receive ends are required tohave the fragmentation and reassembling function. That is, the DTE at the send endbreaks the packets with larger size into more packets with the more data bit set exceptfor the last. When the DTE at the receive end receives this series of fragments, itreassembles these fragments into a packet according to the M bit, and sends it to theupper-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 ISP s permission, please do not set these two parameters to differentvalues.
Example
! The following example sets the maximum input and output packet sizes on the X.25interface Serial0 to 512 bytes.
Quidway(config-if-Serial0)# x25 ips 256
Quidway(config-if-Serial0)# x25 ops 256
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
47/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
48/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
49/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-31
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 simpleX.25 switch. When the PVC switch is configured, the input and output interfaces mustbe encapsulated with X.25, and the PVCs specified at both interfaces already existsand 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 onSerial1.
Quidway(config-if-Serial0)# encapsulation x25 dce ietf
Quidway(config-if-Serial1)# encapsulation x25 dce ietf
Quidway(config-if-Serial1)# x25 pvc 1 in serial 0 pvc 1
Related Command
show x25 vc, x25 routing
4.34 x25 pvc (XOT)
To add a PVC route of XOT, use the command x25 pvc. To delete the PVC route of the
appointed XOT, use the no form of the command.
x25pvc pvc-number1xot ip-address interface interface-type interface-numberpvcpvc-number2[ xot-keepalive-period secondsxot-keepalive-tries timesxot-sourceinterface-name ]
no x25pvc pvc-number1
Syntax Description
pvc-number1 PVC number of the interface at this end, ranging 1 to 4095.
pvc-number2 PVC number of the peer interface, ranging 1 to 4095.
ip-address The destination IP address connected via XOT.
interface-type Type of the peer interface.
interface-number Number of the peer interface.
seconds Delay of the keepalive timer connected via XOT. The timer sends keepalivepackets when it is overtime to detect the usability of the connection.
times The maximum failure time of sending keepalive. Disconnect the XOT link whenthe failure time exceeds times.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
50/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-32
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 configuringkeepalive, 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 packetswitching.
! Configure on router RTA
RTA(config-if-Ethernet0)#ip address 10.1.1.1 255.255.255.0
RTA(config-if-Ethernet0)#interface serial 0
RTA(config-if-Serial0)#encapsulation x25 dce ietf
RTA(config-if-Serial0)#x25 pvc 1 xot 10.1.1.2 interface serial 1 pvc 2
! Configure on router RTB
RTB(config-if-Ethernet0)#ip address 10.1.1.2 255.255.255.0
RTB(config-if-Ethernet0)#interface serial 1
RTB(config-if-Serial1)#encapsulation x25 dce ietf
RTB(config-if-Serial1)#x25 pvc 2 xot 10.1.1.1 interface serial 0 pvc 1
Related Command
show x25 vc x25 routing
4.35 x25 response-called-address
To sets the called DTE address field in outgoing calls while X.25 sends the call input
packet, use the command x25 response-called-address. To reset this command to itsdefault value, use the no form of the command.
x25 response-called-address
no x25 response-called-address
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
51/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
52/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
53/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
54/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-36
4.39 x25 route xot
To add a SVC route of XOT, use the command x25 route xot. To delete the SVC route
of the appointed XOT, use the no form of the command.
x25 route dest-address xot ip-address [ xot-keepalive-period seconds ] [ xot-
keepalive-tries times ] [ xot-source interface-name ]
no x25 route dest-address xot ip-address [ xot-keepalive-period seconds ] [ xot-keepalive-tries times ] [ xot-source interface-name ]
Syntax Description
dest-address the number of virtual circuit.
ip-address the destination ip-address connected via XOT.
seconds delay of the keepalive timer connected via XOT. When it is time out, the timersends 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 theconnection between local and remote X.25 net, spanning the IP net. After configuringkeepalive, it can support the link inspection.
Example
! Switch virtual circuit1 to the destination ip-address 10.1.1.1
Quidway(config)# x25 route 1 xot 10.1.1.1
Related Command
x25 route interface, show x25 route, x25 routing
4.40 x25 routing
To enabling X.25 switching, use the command x25 routing. To disable the function, usethe no form of the command.
x25 routing
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
55/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-37
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 smallpacket switch.
Example
! The following example enables the X.25 switching function.
Quidway(config)# x25 routing
Related Command
x25 pvc, x25 route, show x25 vc, show x25 route
4.41 x25 suppress-called-address
To omit the X.121 address of the called DTE in outgoing calls while X.25 originates thecall, use the command ofx25 suppress-called-address. To disable the function, usethe no form of the command.
x25 suppress-called-address
no x25 suppress-called-address
Default
Disabled.
Command Mode
Interface configuration mode
Usage Guideline
According to X.25, the call request packet must carry the address code group. But insome occasions, the X.25 call request does not have to carry the called/calling DTEaddress in a specific network environment or as is required by the application. Thiscommand enables you to specify whether the call request sent by X.25 in the Quidwayseries of routers carries the called DTE address.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
56/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-38
Example
! The following example suppresses or omits the called address in call request packetsent 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-calling-address x25 , suppress-calling-address
4.42 x25 suppress-calling-address
To omit the X.121 address of the calling DTE in outgoing calls while X.25 originates thecall, use the command ofx25 suppress-calling-address. To disable the function, use
the no form of the command.
x25 suppress-calling-address
no x25 suppress-calling-address
Default
Disabled.
Command Mode
Interface configuration mode
Usage Guideline
According to X.25, the call request packet must carry the address code group. But insome occasions, the X.25 call request does not have to carry the called/calling DTEaddress in a specific network environment or as is required by the application. Thiscommand enables you to specify whether the call request sent by X.25 in the Quidwayseries of routers carries the calling DTE address.
Example
! The following example suppresses or omits the calling address in call request packetsent 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-calling-address x25, suppress-called-address
4.43 x25 threshold
To set the maximum number of input packets before X.25 send an acknowledgement,use the command ofx25 threshold. To restore to the default value, use the no form ofthe command.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
57/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
58/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
59/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
60/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-42
4.47 x25 tx3
To set the delay value for clear indication retransmission timer on a DTE/DCE, use the
command x25 tx3. To restore to the default value, use the no form of the command.
x25 tx3 seconds
no x25 tx3
Syntax Description
seconds Delay value of the clear indication retransmission timer in second.
Default
Default value for the clear indication retransmission timer on a DTE is 180 seconds;default value for the clear indication retransmission timer on a DCE is 60 seconds.
Command Mode
Interface configuration mode
Usage Guideline
According to X.25, a timer should be started when a DTE sends a clear request (or aDCE sends a clear indication). If no remote acknowledgement is received after thistimer is timeout, the sending end will take some measures to guarantee the normalproceeding of the local procedure. This parameter specifies the delay value of thistimer before the timeout.
Example
! The following example sets the delay value of clear indication retransmission timer onthe X.25 interface Serial0 to 100 seconds.
Quidway(config-if-Serial0)# x25 tx3 100
Related Command
x25 tx0, x25 tx1, x25 tx2
4.48 x25 use-source-addressTo change the calling address as the local address while setting the call-forwardingpackets, use the command x25 use-source-address. To disable the function, use theno form of the command.
x25 use-source-address
no x25 use-source-address
Default
Disabled.
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
61/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-43
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, thisfunction is necessary. Any call originated from a host inside any private network andwhose destination is not in this private network will be forwarded to the public datanetwork. So, this call should have a legal, unified public data network address. Whenthis function is enabled, the source addresses of such calls will be replaced by theX.121 address (i.e., legal X.121 address recognized by the public data network) on theinterface of the public data network to which the Quidway router is connected. In thisway, 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 sourceaddresses of the calls forwarded from the X.25 interface Serial0 will be replaced by012020112451.
Quidway(config)# x25 routing
Quidway(config)# interface serial 0
Quidway(config-if-Serial0)# x25 address 012020112451
Quidway(config-if-Serial0)# x25 use-source-address
Related Command
show x25 interface, x25 address
4.49 x25 win
To set the incoming windowsize on the X.25 interface, use the command x25 win. Torestore to the default value, use the no form of the command.
x25 winpackets
no x25 win
Syntax Description
packets size of the incoming window, ranging 1 to one less than the window modulus.(including 1 and one less than the modulus).
Default
Default incoming windowsize on the X.25 interface is 2 packets.
Command Mode
Interface configuration mode
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
62/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
63/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
64/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-46
Syntax Description
number interface serial number.
Default
If no interface serial number is specified, the information about all X.25 interfaces willbe displayed.
Command Mode
Privileged user mode
Usage Guideline
After configuring some X.25 parameters and attributes, or enabling or disabling someX.25 functions, you can use the command to view the result of your operation andobtain 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 8input/output: window sizes 2/2, packet sizes 128/128Channels: Incoming-only 0-0, Two-way 1-1024, Outgoing-only 0-0Timers: T20 180, T21 200, T22 180, T23 180, T28 300, Idle_Timer 0New configuration(will be effective after restart): modulo 8input/output: window sizes 2/2, packet sizes 128/128Channels: Incoming-only 0-0, Two-way 1-1024, Outgoing-only 0-0Statistic: Restarts 0 (Restart Collisions 0)Refused Incoming Call 0, Failing Outgoing Call 0input/output: RESTART 0/0 CALL 0/0 DIAGNOSE 0/0
DATA 0/0 INTERRUPT 0/0 Bytes 0/0RR 0/0 RNR 0/0 REJ 0/0
Invalid Pr: 0 Invalid Ps: 0 Unknown: 0LAPB DTE, module 8, k 7, N1 2104, N2 5timer: T1 2000, T2 1000, T3 0 (milliseconds)
state DISCONNECT, VS 0, VR 0, Remote VR 0IFRAME 0/0, RR 0/0, RNR 0/0, REJ 0/0FRMR 0/0, SABM 0/0, DM 0/0, UA 0/0DISC 0/0, invalid ns 0, invalid nr 0, link resets 0
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
65/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
66/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
67/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
68/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
69/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
70/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 4LAPB, X.25 and X.25 Switching Commands
4-52
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 informationoutput, 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
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
71/93
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
72/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 5Frame Relay Commands
5-2
Related Command
frame-relay inverse-arp
5.2 encapsulation frame-relay
To enable Frame Relay encapsulation, use the encapsulation frame-relay Interfaceconfiguration command.
encapsulation frame-relay [ ietf | cisco-compatible ]
Syntax Description
ietf Sets the encapsulation method to comply with the Internet Engineering Task Force(IETF) standard. This is the default encapsulation.
cisco-compatible Sets the encapsulation method to comply with Cisco.
Default
Default link-layer protocol encapsulation on the interface is PPP. Default frame-relayprotocol encapsulation is IETF.
Command Mode
Interface configuration mode
Usage Guideline
In the Quidway series of routers, the frame relay encapsulation can either be the IETForcisco-compatible. IETF encapsulation conforms with RFC1294, that is, supportIETF standard; cisco-compatible encapsulation method is the same as that used inthe Cisco router.
Example
! The following example configures Frame Relay encapsulation on interface Serial0and the default ietfencapsulation is used.
Quidway(config-if-Serial0)# encapsulation frame-relay
Related Command
show interface
5.3 frame-relay interface-dlci
To assign a data link connection identifier to a specified Frame Relay main interface orsub-interface, use frame-relay interface-dlci Interface configuration command. Toremove this assignment, use the no form of this command.
frame-relay interface-dlci dlci
no frame-relay interface-dlci dlci
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
73/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 5Frame Relay Commands
5-3
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 interfacewhile frame-relay interface-dlci can specify a DLCI for both the main interface andsub-interface. While configuring the frame relay main interface, you only specify theDLCIs at the DCE side. While configuring the frame relay sub-interface, you mustspecify the DLCIs at the DCE and DTE sides at the same time
Example
! The following example assigns a DLCI 100 to Frame Relay sub-interface Serial0.1.
Quidway(config-if-Serial0.1)# frame-relay interface-dlci 100
Related Command
encapsulation frame-relay
5.4 frame-relay intf-type
To set the Frame Relay terminal type, use the frame-relay intf-type. To restore to thedefault Frame Relay terminal type, use the no form of the command.
frame-relay intf-type { dte | dce | nni }
no frame-relay intf-type
Syntax Description
dte, dce and nni are three FR operations.
Default
DTE
Command Mode
Interface configuration mode
-
7/27/2019 03LLC(Link Layer Protocol Configuration Command).PDF
74/93
User Manual - Command Reference (Volume 1)Versatile Routing Platform
Chapter 5Frame Relay Commands
5-4
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 theQuidway 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 arouter 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 correspondinginterface 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 switchingin Global configuration.
Example
! The following example configures the frame relay interface Serial0 working in the DCEmode.
Quidway(config)# frame-relay switching
Quidway(config)# interface serial 0
Quidway(config-if-Serial0)# frame-relay intf-type dce
Related Command
encapsulation frame-relay, frame-relay switching
5.5 frame-relay inverse-arp
To dynamically enable the Inverse Address Resolution Protocol, use frame-relayinverse-arp command. To disable the use of protocol, use the no form of thecommand.
frame-relay inverse-arp [ ip | ipx ] [ dlci]
no frame-relay inverse-arp [ ip | ipx ] [ dlci]
Syntax Description
ip IP is supported for inverse address resolution .
ipx IPX is supported for inverse address resolution .
dlci data link connection