09-VPDN (L2TP, PPTP, PPPoE) Configuration Commands
09-VPDN (L2TP, PPTP, PPPoE) Configuration Commands
Commands
Table of Contents
Table of Contents
Chapter 1 VPDN Configuration Command ...........................................................................................................................1
1.1 VPDN Configuration Commands ...........................................................................................................................1
1.1.1 Accept-dialin ..............................................................................................................................................1
1.1.2 Domain ......................................................................................................................................................2
1.1.3 Force-local-chap ........................................................................................................................................2
1.1.4 L2tp hidden ................................................................................................................................................3
1.1.5 L2tp tunnel authentication .........................................................................................................................4
1.1.6 L2tp tunnel hello ........................................................................................................................................5
1.1.7 L2tp tunnel receive-window .......................................................................................................................6
1.1.8 L2tp tunnel password ................................................................................................................................7
1.1.9 l2tp sequencing .........................................................................................................................................8
1.1.10 l2tp drop out-of-order...............................................................................................................................9
1.1.11 lcp-renegotiation ......................................................................................................................................9
1.1.12 idle-timeout ............................................................................................................................................ 10
1.1.13 Local-name ............................................................................................................................................ 11
1.1.14 Initiate-to ip ............................................................................................................................................ 12
1.1.15 Initiate-to host ........................................................................................................................................ 13
1.1.16 Protocol ................................................................................................................................................. 14
1.1.17 pptp tunnel echo .................................................................................................................................... 15
1.1.18 pppoe bind ............................................................................................................................................. 16
1.1.19 Request-dialin ....................................................................................................................................... 17
1.1.20 Terminate-from ...................................................................................................................................... 17
1.1.21 port ........................................................................................................................................................ 18
1.1.22 Vpdn enable .......................................................................................................................................... 20
1.1.23 vpdn-group ............................................................................................................................................ 20
1.1.24 show l2tp ............................................................................................................................................... 21
1.1.25 clear l2tp ................................................................................................................................................ 22
1.1.26 debug l2tp .............................................................................................................................................. 23
1.1.27 show pptp .............................................................................................................................................. 26
1.1.28 clear pptp ............................................................................................................................................... 28
1.1.29 debug pptp ............................................................................................................................................ 29
1.1.30 show pppoe ........................................................................................................................................... 34
1.1.31 clear pppoe ............................................................................................................................................ 35
1.1.32 debug pppoe ......................................................................................................................................... 36
-I-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
VPDN sub-module is a sub-module to deal with VPDN group in L2TP or PPTP module,
its major function is to create and manage VPDN group information, Both NAC (
Network Access Concentrator) and NS ( Network Server) need to get related
information from VPDN,to create channel and session. When VPDN binded with L2TP
protocol, NAC is also called LAC (L2TP Access Concentrator) and NS is called LNS
(L2TP Network Server); When VPDN binded with PPTP protocol, NAC is also called
PAC (PPTP Access Concentrator) and NS is called PNS ( PPTP Network Server).
1.1.1 Accept-dialin
Syntas
accept-dialin
no accept-dialin
Parameter
none
Default
none
Command mode
Explanation
Example
-1-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
router_config#vpdn-group 1
router_config-vpdn#accept-dialin
1.1.2 Domain
Syntas
domain domain-name
no domain domain-name
Parameter
Parameter Description
domain-name the maximum length is 255 characters.
Default
none
Command mode
Explanation
The command can only be executed on NAC, the user is divided by the symbol @,
after the symbol @ is the domain name.
Example
The example below creates a VPDN group and sets it as NAC and also sets a domain
name.
router>enable
router#config router_config#vpdn-
group 1 router_config-
vpdn#request-dialin
router_config-vpdn#domain QTECH.com.net
1.1.3 Force-local-chap
-2-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Syntas
force-local-chap
no force-local-chap
Parameter
none
Default
no force-local-chap
Command mode
Explanation
When PPP protocol interactive starts, LAC will act as proxy for NS to authenticate
Client. The command is used for setting a second authentication made by NS to Client
after the channel is created. The command can only be executed on NS. Only when
VPDN binded with L2TP, this command will works.
Example
The example below creates a VPDN group and sets it as NS and sets the re-
authentication.
router>enable
router#config router_config#vpdn-
group 1 router_config-vpdn#accept-
dialin router_config-vpdn#force-
local-chap
Syntas
l2tp hidden
no l2tp hidden
-3-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Parameter
none
Default
no L2tp hidden
Command mode
Explanation
The command can only takes effect when the tunnel password is configured in the
router.
Example
The example below creates a VPDN group and sets it as LAC, configures channel
authentication and password and sets the attribute hide.
router>enable
router#config router_config#vpdn-
group 1 router_config-vpdn#request-
dialin router_config-vpdn#l2tp tunnel
authen
router_config-vpdn#l2tp tunnel password
123456 router_config-vpdn#l2tp hidden
Syntas
Parameter
none
Default
-4-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Command mode
Explanation
When the tunnel is created, two parties can authenticate each other. If the channel
authentication is configured, the password shall be set.
Example
The example below creates a VPDN group on two routers separately, one is used as
LAC, the other as LNS. They are all configured with channel authentication and the
same password.
routerA>enable
routerA#config routerA_config#vpdn-
group 1 routerA_config-vpdn#request-
dialin routerA_config-vpdn#l2tp tunnel
authen
routerA_config-vpdn#l2tp tunnel password
123456 routerB#config
routerB_config#vpdn-group 2 routerB_config-
vpdn#accept-dialin routerB_config-vpdn#l2tp
tunnel authen routerB_config-vpdn#l2tp tunnel
password 123456
Syntas
Parameter
Parameter Description
hello-interval numeric area ranges from 5 to 100 second
Default
60
-5-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Command mode
Explanation
After the dialogue between LAC and LNS is created, HELLO packet shall be sent
periodically to detect whether the link is normal. Only when binded with L2TP protocol,
this command can be configured.
Example
The example below creates a VPDN group, the time interval of sending HELLO packet
is 10 seconds.
router>enable
router#config router_config#vpdn-
group 1 router_config-vpdn#request-
dialin router_config-vpdn#protocol l2tp
router_config-vpdn#l2tp tunnel hello 10
Syntas
Parameter
Parameter Description
receive-window-size the numeric area is from 4 to 100.
Default
Command mode
-6-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Explanation
The command is used for designating the size of BUFFER received by the local and
informing the opposite terminal the size at the same of L2TP tunnel negotiation
simultaneously so as to enable the opposite terminal to set the size of sliding window
for sending the corresponding packet according to the value.
Example
The example below creates a VPDN group and sets the size of sliding window
received by it as 5.
router>enable
router#config router_config#vpdn-
group 1
router_config_vpdn#protocol l2tp
router_config-vpdn#l2tp tunnel receive-window 5
Syntas
Parameter
Parameter Description
password The maximum length of channel password is 254 characters in non
encrpytion text.
Default
none
Command mode
Explanation
-7-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Example
The example below creates a VPDN group and sets it as LAC, configures channel
authentication and password.
router>enable
router#config router_config#vpdn-
group 1 router_config-vpdn#request-
dialin router_config_vpdn#protocol
l2tp router_config-vpdn#l2tp tunnel
authen
router_config-vpdn#l2tp tunnel password 123456
l2tp sequencing
no l2tp sequencing
Parameter
None
Default
None
Command mode
Explanation
This command is used to enable the sequence of the packet to cushion the disordered
packets.
Example
The following example shows how to establish a VPDN group, set the VPDN group to
LAC and enable the sequence of the packet.
router>enable
router#config router_config#vpdn-
group 1
router_config_vpdn_1#request-dialin
router_config_vpdn_1#protocol l2tp
-8-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
router_config_vpdn_1#l2tp sequencing
Parameter
None
Default
None
Command mode
Explanation
If the sequence of the packet is enabled, the disordered packets will be directly
dropped without waiting for retransmission.
Example
The following example shows how to establish a VPDN group, set the VPDN group to
LAC and enable the sequence of the packet.
router>enable
router#config router_config#vpdn-group
1 router_config_vpdn_1#request-dialin
router_config_vpdn_1#protocol l2tp
router_config_vpdn_1#l2tp sequencing
1.1.11 lcp-renegotiation
Syntas
lcp-renegotiation
-9-
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
no lcp-renegotiation
Parameter
none
Default
none
Command mode
Explanation
Under a general condition, NAC executes the proxy function in the phase of LCP and
authentication of PPP. When NS wishes to restart LCP negotiation of PPP with Client
and the consequent process, it can be realized through configuring this command. The
command can be executed exclusively on NS.
Example
The example below creates a VPDN group and sets it as NS and restarts LCP
negotiation.
router>enable
router#config router_config#vpdn-
group 1 router_config-vpdn#accept-
dialin router_config-vpdn#lcp-
renegotiation
1.1.12 idle-timeout
To set the idle timeout time of the NAC terminal when the client and NAC merge, run
idle-timeout time-out.
idle-timeout time-out
no idle-timeout
Parameter
Parameter Description
Its value ranges between 0 and 65535 seconds. When it is 0, it
Time-out
means there is no idle timeout.
- 10 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Default
Command mode
Explanation
It is used to set the idle timeout time when the client and NAC merges. When timeout
occurs, the PPP is disconnected. This command can be executed only on NAC.
Example
The following example is to create a VPDN group, set it to NAC and set idle-timeout
to 3 minutes.
router>enable
router#config router_config#vpdn-group
1 router_config_vpdn_1#request-dialin
router_config_vpdn_1#idle-timeout 180
1.1.13 Local-name
Syntas
Local-name local_name no
Local-name local_name
Parameter
Parameter Description
local_name the maximum length of channel password is 254 characters.
Default
QTECH
Command mode
- 11 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Explanation
Each vpdn group shall have a name of a local tunnel so as to facilitate the remote
terminal to find a match for VPDN group.
Example
The example below creates a VPDN group and sets it as NAC and configures the
name of local tunnel as lac.
router>enable
router#config router_config#vpdn-
group 1 router_config-
vpdn#request-dialin router_config-
vpdn#local lac
1.1.14 Initiate-to ip
Syntas
Parameter
Parameter Description
ipaddr Ip address of remote NS
priority_num Priority level, 0—4, the smaller the value is, the higher the priority level will
be.
Default
none
Command mode
Explanation
The command can be executed exclusively on NAC. The command is used to specify
the remote NS by IP address. when such command executed, first judg whether IP
address has been configured. If IP address has been configured, the system will return
to the configuration mode directly, If not so, the IP address will be added to NS group,
which may be in way of domain name of NS( see command Initiate-to host-name).
- 12 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
One NAC can be configured with 5 NS in way of IP address or in way of domain name,
in order to ensure that backup NS can work normally when main NS fails.
Example
The example below creates a VPDN group, sets the VPDN group as NAC and sets IP
address of NS communicable to it on the sequence of priority level from high to low,
which is arranged as follows: 192.168.20.200,192.168.20.201,192.168.20.202,
192.168.20.203,192.168.20.204.
router>enable
router#config router_config#vpdn-
group 1 router_config-
vpdn#request-dialin
router_config-vpdn#initiate-to ip 192.168.20.200 priority 0
router_config-vpdn#initiate-to ip 192.168.20.201 priority 1
router_config-vpdn#initiate-to ip 192.168.20.202 priority 2
router_config-vpdn#initiate-to ip 192.168.20.203 priority 3
router_config-vpdn#initiate-to ip 192.168.20.204 priority 4
It is used to set the domain name of NS that are to communicate with NAC.
Syntas
Parameter
Parameter Description
name domain name of remote NS
priority_num Priority level, 0—4, the smaller the value is, the higher the priority level will
be.
Default
none
Command mode
- 13 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Explanation
The command can be executed exclusively on NAC. The command is used to specify
the remote NS by the doman name other than by IP address(See command:initiate-to
ip).When such command executed, first judg whether domain name has been
configured before. If it has been configured, the system will return to the configuration
mode directly, If not so, the IP address will be added to NS group, which may be in
way of domain name of NS( see command Initiate-to ip). One NAC can be configured
with 5 NS in way of IP address or in way of domain name, in order to ensure that
backup NSs can work normally when main NS fails.
Example
The example below creates a VPDN group, sets the VPDN group as NAC and sets the
domain name of NS as test.QTECH.net.
router>enable
router#config router_config#vpdn-
group 1 router_config-
vpdn#request-dialin
router_config-vpdn#initiate-to host-name test.QTECH.net priority 0
1.1.16 Protocol
Syntas
Protocol protocol-type
no Protocol protocol-type
Parameter
Parameter Description
protocol-type it can only be 12tp and pptp currently.
- 14 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Default
none
Command mode
Explanation
Example
The example below creates a VPDN group and binds VPDN group and L2TP protocol
router>enable
router#config router_config#vpdn-
group 1 router_config-
vpdn#protocol l2tp
Syntas
Parameter
Parameter Description
echo_interval range from 5-1000 seconds
Default
60 seconds
Command mode
- 15 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Explanation
Example
The example below creates a VPDN group and binds VPDN group and PPTP protocol
router>enable
router#config router_config#vpdn-group
1 router_config-vpdn#protocol pptp
router_config-vpdn#pptp tunnel echo
55
To bind the VPDN group of the PPPOE protocol to an Ethernet port, run pppoe bind
ether-port-name.
Parameter
None
Default
None
Command mode
Explanation
The Ethernet port is needed when PPPOE creates a link. One Ethernet port can be
bound to only one VPDN group.
Example
The following example shows how to establish a VPDN group and bind it to port
FastEthernet0.
router>enable
router#config
- 16 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
router_config#vpdn-group 1
router_config_vpdn_1#request-dialin
router_config_vpdn_1#protocol pppoe
router_config_vpdn_1#pppoe bind FastEthernet0
1.1.19 Request-dialin
Syntas
Request-dialin
no Request-dialin
Parameter
none
Default
none
Command mode
Explanation
If the former role of the group is NAC, the system will return to the configuration mode
directly. If the original function role of the VPDN group is NS, the role will be cancelled
and the function role of VPDN will be set as NAC.
Example
The example below creates a VPDN group and sets the VPDN group as NAC.
router>enable
router#config router_config#vpdn-
group 1 router_config-
vpdn#request-dialin
1.1.20 Terminate-from
- 17 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Syntas
Terminate-from remote_lac_name
no Terminate-from remote_lac_name
Parameter
Parameter Description
remote_lac_name The channel name of remote NAC, the maximum length is 254 characters.
Default
none
Command mode
Explanation
After this command is configured, the VPDN group can be used exclusively for making
the response to NAC specified by the parameter “lac_name” and it cannot be used by
other NAC names. If a VPDN group is not configured with the command “Terminate-
from”, it will serve as the default group and its information will be applied when no
other VPDN groups can be matched. The command can be executed exclusively on
NS.
Example
The example below creates a VPDN group and sets the VPDN group as NS. The
name of the responsive remote tunnel is lac.
router>enable
router#config router_config#vpdn-
group 1 router_config-vpdn#accept-
dialin router_config-vpdn#terninate-
from lac
1.1.21 port
To connect the VPDN group and the specified interface, run port interface-name.
port interface-name
no port interface-name
- 18 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Parameter
Parameter Description
Default
None
Command mode
Explanation
This command is used to specify a port to connect the VPDN group. If it is NAC, the
virtual- tunnel port or the synchronous/asynchronous serial port can be configured. If it
is NS, the virtual-template port can be configured. The created VPDN connection will
use the virtual -access port cloned by the virtual-template port for communications. If
this command is configured in the NAC VPDN group, the domain command is invisible
and the VPDN group functions at the VPDN connection which is triggered by the
specified port.
Example
The following example shows how to establish a VPDN group, set it to NAC and
connect it and the virtual tunnel interface.
router>enable
router#config router_config#vpdn-
group 1
router_config_vpdn_1#accep-dialin
router_config_vpdn_1#port Virtual-tunnel1
router_config#int virtual-tunnel 1
router_config_vn1#ip addr 2.1.1.1 255.255.255.0
router_config_vn1#enca ppp
router_config_vn1#ppp authen chap
router_config_vn1#ppp chap hostname [email protected]
The following example shows how to establish a VPDN group, set it to NS and connect
it and the virtual template interface.
router>enable
router#config router_config#vpdn-
group 2
router_config_vpdn_2#accep-dialin
router_config_vpdn_2#port Virtual-template1
router_config#int virtual-template 1
router_config_vt1#ip addr 2.1.1.1 255.255.255.0
- 19 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
router_config_vt1#enca ppp
router_config_vt1#ppp authen chap
router_config_vt1#ppp chap hostname [email protected]
Syntas
Vpdn enable
no Vpdn enable
Parameter
none
Default
no Vpdn enable
Command mode
Configuration mode
Explanation
Under a default state, the function of system VPDN is shut down. Only when the
command “VPDN enable” is executed, the function of VPDN will be opened. The
command “NO” shuts down the sub-function of VPDN.
Example
The example below creates a VPDN group and sets the group as NS and relates it to
the virtual interface 1.
router>enable
router#config
router_config#vpdn enable
1.1.23 vpdn-group
- 20 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Syntas
vpdn-group name
no vpdn-group name
Parameter
name
Default
none
Command mode
Explanation
When the name of the VPDN group does not exist, the VPDN group should be created
and the configuration mode of VPDN group shall be accessed. If the VPDN group has
already existed, the configuration status of VPDN can be accessed directly. 300 VPDN
groups can be created at the most.
Example
Syntas
Parameter
Parameter Description
- 21 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Command mode
Non-user mode
Explanation
Showing the existing channel and the related statistic information of the sessions.
Example
Area Description
LocID Local ID of the channel
RemID Remote ID of the channel
Remote Name Name of remote channel of the channel
State Current channel status
Remote Address Remote IP address of the channel
Port Remote port number of the channel
sessions The number of the session contained in the channel.
At the time of clearing the tunnel, the tunnel of the designated tunnel ID is cleared (all
the sessions under the tunnel will also be cleared.). At the time of clearing session, the
session of the designated session ID under the tunnel of the designated tunnel ID is
cleared.
Syntas
Parameter
Parameter Description
- 22 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Command mode
Supervisor mode
Explanation
Clearing the channel of the designated tunnel ID or clearing the session of the
designated session ID under the designated tunnel ID channel. The numeric area of
tunnel ID and session ID is <1-65535>.
Example
Observing the existed channel and session before clearing (including a channel and a
session)
37DE#show l2tp tunnel
L2TP Tunnel Information Total tunnels 1 sessions 1
The abnormal operation of the module or error occurrence at the time of printing or the
erroneous information; printing the event information when the module operation
triggers the event, printing the content of the data packet received or sent by the
module.
Syntas
- 23 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
The command “no debug l2tp” is used for stopping the display of information
Parameter
Parameter Description
The command “debug l2tp packets detail” is only a switch. Opening the “debug” along
is not able to print the content of the data packet. If the command “debug l2tp packets
control-packets” is configured simultaneously, the detailed information of the control
packet will be printed. Similarly, if the command “debug l2tp packets data-packets” is
configured simultaneously, the detailed information of the data packet will be printed. If
the “debug” is not configured, only the summary information of debug control packet
and data packet will be printed.
Command mode
Supervisor mode
- 24 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Explanation
After l2tp debug information is opened, the erroneous information of l2tp module, event
triggering information and the content of the data packet received and sent can be
exported to help the user diagnose l2tp trouble.
Example
Configuration Command:
37DE#debug l2tp packets control-
packets 37DE#debug l2tp packets detail
Print Information:
2003-1-14 11:19:23
L2TP TX -> ctrl packet: flg TLS,ver 2,len 55,TunlID 0,SesnID 0,Ns 0,Nr 0
:SCCRQ 2003-1-14 11:19:23
L2TP Control Packet Header :
C8 02 00 37 00 00 00 00 00 00 00 00 ...7........
2003-1-14 11:19:23
L2TP avp Message Type :
80 08 00 00 00 00 00 01 ........
2003-1-14 11:19:24
L2TP avp Protocol Version :
80 08 00 00 00 02 01 00 ........
2003-1-14 11:19:24
L2TP avp Framing Capabilities :
80 0A 00 00 00 03 00 00 00 00 ..........
2003-1-14 11:19:24
L2TP avp Assigned Tunnel ID :
80 08 00 00 00 09 00 02 ........
2003-1-14 11:19:24
L2TP avp Host name :
80 09 00 00 00 07 6C 61 63 ......lac
When the module receives SCCRQ control packet, it divides the packet into L2TP
header and some AVPs and shows the specific content of each AVP. (If the command
“debug l2tp packets detail” is not configured, the content of the packet will not be
divided).
Area Description
L2TP Name of protocol
TX -> Direction of packet transmission (it means outward transmission here) .
ctrl packet Packet type (It is classified into control packet and data packet)
flg The flags contained in L2TP header.
ver Protocol version of L2T pprotocol
len Length of the whole packet
TunlID The channel ID number contained in L2TP header.
SesnID The session ID number contained in L2TP header.
- 25 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Area Description
Tunl/Sesn Local channel and ID number of the session (if the control packet of the
channel is sent, there will be only an ID number of the channel. The same
below.).
Syntas
- 26 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Parmeter
Parameter Description
Command mode
Non-user mode
Explanation
Showing the existing channel and the related statistic information of the sessions.
Example
Parameter Description
field Description
Socket Socket ID of tunnel
TunnelID Local Tunnel ID
Remote Name remote name of tunnel
State tunnel state
Remote Address remote address of tunnel
Port tcp port of tunnel
sessions the number of sessions in the tunnel 1
- 27 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
TunlID tunnel ID
Intf interface name
State session state
Explanation:
field Description
Tunl/sesn: tunnel ID and local session ID
TxQueueFulls the number of waiting-tx queue full events
AckQueueFulls the number of waiting-ack queue full events
Congs the number the congestion events
PktSents the number of packets that have sent to peer
PktRecvs the number of packets that have received from peer
InPktDrops the number of received packets that have dropped
OutPktDrops the number of sent packets that have dropped
FmtErrors the number of packets of error format
At the time of clearing the tunnel, the tunnel of the designated tunnel ID is cleared (all
the sessions under the tunnel will also be cleared.). At the time of clearing session, the
session of the designated session ID under the tunnel of the designated tunnel ID is
cleared.
Syntas
Parameter
Parameter Description
- 28 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Command mode
Supervisor mode
Explanation
Clearing the channel of the designated tunnel ID or clearing the session of the
designated session ID under the designated tunnel ID channel. The numeric area of
tunnel ID is <1-300> and session ID is <1-65535>
Example
Observing the existed channel and session before clearing (including 2 channel and 2
session)
21#show pptp tun
PPTP Tunnel Information Total tunnels 2 sessions 2
The session 6 has been cleared and the others still exists.
The abnormal operation of the module or error occurrence at the time of printing or the
erroneous information; printing the event information when the module operation
- 29 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
triggers the event, printing the content of the data packet received or sent by the
module.
Syntas
The command “no debug PPTP” is used for stopping the display of information.
Parameter
Parameter Description
error Showing the abnormity of PPTP module operation.
event Showing event triggering information of PPTP module.
packets Showing the content of the data packet received and sent by PPTP
module (including control packet and data packet.)
control-packets Showing the content of the control packet received and sent by PPTP
module.
data_packets Showing the content of the data packet received and sent by PPTP
module
Command mode
Supervisor mode
Explanation
After PPTP debug information is opened, the erroneous information of PPTP module,
event triggering information and the content of the data packet received and sent can
be exported to help the user diagnose PPTP trouble.
- 30 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Example
field Description
PPTP Name of protocol
TX -> Direction of packet transmission (it means outward transmission here) .
ctrl packet Packet type (It is classified into control packet and data packet)
Ver Protocol version of PPTP pprotocol
Len Length of the whole packet
SCCRQ Type of the control packet
Frm frame capability supported by host sending the packet
Bear bear capability supported by host sending the packet
Host name of the host that sending the packet
field Description
- 31 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
field Description
OCRQ type of packet
CallID Local session ID in the PPTP packet header
CallSerial Call serial number in the PPTP packet header
MinBps minimal Bps. No use currently
MaxBps Maxmal Bps. No use currently
RecvWin receiving window size
field Description
OCRP type of packet
CallID Local session ID in the PPTP packet header
PeerID Peer session ID in the PPTP packet header
connBps connect speed
RstCode result code. If 1, then session is created
Configure command
- 32 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
21 45 00 00 54 00 8F 00 00 FF 01 A7 17 0A 00 00 !E..T...........
02 0A 00 00 01 08 00 F6 EE 00 10 00 02 00 01 0B ................
EF 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 ................
2003-11-18 16:18:37 1A 1B 1C 1D 1E 1F 20 21 22 ............. !"
PPTP TX -> data packet: TunlID1, LocID 1, PeerID 89, Len 85, Fls SA, Seq 12, ACK 11
21 45 00 00 54 00 91 00 00 FF 01 A7 15 0A 00 00 !E..T...........
02 0A 00 00 01 08 00 F6 ED 00 10 00 03 00 01 0B ................
EF 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 ................
2003-11-18 16:18:37 1A 1B 1C 1D 1E 1F 20 21 22 ............. !"
PPTP TX -> data packet: TunlID1, LocID 1, PeerID 89, Len 85, Fls SA, Seq 13, ACK 12
21 45 00 00 54 00 93 00 00 FF 01 A7 13 0A 00 00 !E..T...........
02 0A 00 00 01 08 00 F6 EB 00 10 00 04 00 01 0B ................
F0 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 ................
2003-11-18 16:18:37 1A 1B 1C 1D 1E 1F 20 21 22 ............. !"
PPTP TX -> data packet: TunlID1, LocID 1, PeerID 89, Len 24, Fls SA, Seq 14, ACK 13
FF 03 C0 21 09 05 00 14 56 12 05 B2 00 00 00 00 ...!....V.......
2003-11-18 16:18:37 31 -18 16:1
PPTP TX -> data packet: TunlID1, LocID 1, PeerID 89, Len 24, Fls SA, Seq 15, ACK 15
FF 03 C0 21 0A 05 00 14 56 12 05 B2 00 00 00 00 ...!....V.......
FF 2F 92 8E C0 A8 14 1A ./......
field Description
PPTP Name of protocol
TX -> Direction of packet transmission (it means outward transmission here) .
data packet Packet type (It is classified into control packet and data packet)
Fls ,
Flags contained in GRE header The value can be S and A
S If present, Seq field exist in GRE header
A If present, Ack field exist in GRE header
Len Length of whole packet
TunlID Local Tunnel ID
LocID Local session ID
PeerID Peer session ID
Seq Sequence number of packet
ACK ACK number of packet for peer
- 33 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
field Description
PPTP Name of protocol
Tunl 2 Local Tunnel ID
IDLE/ESTABLISHED.etc. State of tunnel or Session
TX -> Direction of packet transmission (it means outward transmission
here) .
RX <- Direction of packet transmission (it means inward transmission here) .
SCCRQ/SCCRP .etc. Type of ctrl packet
Sesn 83 Local session ID
Call state Session state
Lac2 Name of remote host of tunnel
Tunl/Sesn 2/83 Local Tunnel ID and Local Session ID
To display the statistics information about PPPOE sessions, run the following
command:
Parameter
None
Command mode
Usage explanation
This command is used to display the statistics information about current sessions.
- 34 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Example
Total sessions 1
Domain Description
ID Index number of the session
Parameter
Parameter Description
Index number of the session, which is obtained from the ID
sessionID-number
domain displayed by the show pppoe session command
Command mode
EXEC
Usage explanation
It is to delete the ID-specified session. The session ID ranges between 1 and 300.
- 35 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Example
The following example shows how to browse the existing sessions before they are
cleared:
Router#show pppoe session
Total sessions 1
Check the uncleared tunnel and the session and you will find that the session is
cleared and the tunnel still exists.
Router#clear pppoe session ID 3
Router#show pppoe session
No active sessions
To export error information about the PPPOE module, run debug pppoe.
You can run no debug pppoe to stop displaying the error information about the
PPPOE module.
Parameter
Parameter Description
Displays abnormities and errors occurred during PPPOE
error
running.
Parameter Description
Displays the content of the control packets received and
discovery
transmitted by the PPPOE module.
Note:
- 36 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
You can achieve the same result if you run the following two commands:
You can achieve the same result if you run the following two commands:
debug pppoe packets detail is just a switch. The content of the data packet cannot
be printed if the switch is uniquely openned. If debug pppoe packets discovery is
configured at the same time, the details of the control packet will be printed; if debug
pppoe packets session is configured at the same time, the details of the data packet
will be printed. If the debug is not configured, only the summary information about the
control packet and the data packet will be printed.
Command mode
EXEC
Usage explanation
After pppoe debug is opened, the error information about PPPOE module, event
trigger information and content of the received/transmitted packets can be exported,
which help detecting faults on the PPPOE module.
Example
- 37 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
00 E0 0F 08 02 C2 00 E0 0F 0C 05 31 88 63 11 07 ...........1.c..
00 00 00 1A 01 01 00 00 01 02 00 0A 44 65 66 61 ............Defa
75 6C 74 2D 41 43 01 03 00 04 02 C0 64 12 88 88 ult-AC......d...
88 88 88 88 88 88 88 88 88 88 88 88 ............
2006-3-23 19:26:46
[PPPOE]: TX -> discovery packet: Rremote address 00:e0:0f:08:02:c2, ver 1,type 1,code
25,session id 0,length 12 : PADR
00 E0 0F 0C 05 31 00 E0 0F 08 02 C2 88 63 11 19 .....1....... c..
00 00 00 0C 01 01 00 00 01 03 00 04 02 C0 64 13 .............. d.
2006-3-23 19:26:46
[PPPOE]: RX <- discovery packet: Rremote address 00:e0:0f:0c:05:31, ver 1,type 1,code
101,session id 18,length 12 : PADS
00 E0 0F 08 02 C2 00 E0 0F 0C 05 31 88 63 11 65 ...........1.c.e
00 12 00 0C 01 01 00 00 01 03 00 04 02 C0 64 13 .............. d.
88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 ................
88 88 88 88 88 88 88 88 88 88 88 88............
Each domain of the PADI control packet is explained in the following table:
Domain Description
[PPPOE] Protocol name
discovery packet Type of the packet (including control packets and data packets)
- 38 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Domain Description
[PPPOE] Protocol name
session packet Type of the packet (including control packets and data packets)
- 39 -
VPDN (L2TP,PPTP,PPPoE) Configuration Commands
Domain Description
[PPPOE] Protocol name
- 40 -