- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-PPP Commands | 178.42 KB |
Contents
PPP and MP configuration commands
ppp ipcp remote-address forced
reset counters interface mp-group
PPP and MP configuration commands
PPP configuration commands
ip address ppp-negotiate
Syntax
ip address ppp-negotiate
undo ip address ppp-negotiate
View
Synchronous serial interface view
Default level
2: System level
Parameters
None
Description
Use the ip address ppp-negotiate command to enable IP address negotiation on the local interface, so that the local interface can accept the IP address allocated by the peer end.
Use the undo ip address ppp-negotiate command to disable IP address negotiation.
By default, IP address negotiation is disabled.
Related commands: remote address and ppp ipcp remote-address forced.
Examples
# Enable IP address negotiation on Serial 4/1/9/1:0.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] ip address ppp-negotiate
ip pool
Syntax
ip pool pool-number low-ip-address [ high-ip-address ]
undo ip pool pool-number
View
System view, ISP domain view
Default level
2: System level
Parameters
pool-number: Number of the address pool, in the range of 0 to 99.
low-ip-address: Start address of the address pool.
high-ip-address: End IP address of the address pool. An address pool can contain up to 1024 IP addresses. If the end IP address is not specified, the address pool has only one IP address, which is the start IP address.
Description
Use the ip pool command to configure an address pool for assigning IP addresses to PPP users.
Use the undo ip pool command to remove an address pool.
By default, no IP address pool is configured for PPP users.
IP address pools configured in system view are for PPP users that do not need authentication. To configure an IP address pool for the peer PPP users, use the remote address command in a specified interface view.
IP address pools configured in ISP domain view are for PPP users that need authentication in the specified ISP domain. These IP address pools apply to the interfaces that connect to a larger number of PPP users than those the interfaces can assign IP addresses for. However, IP address pools configured in ISP domains can solve the problem.
Related commands: remote address
Examples
# Configure IP address pool 0, with the IP addresses ranging from 129.102.0.1 to 129.102.0.10.
<Sysname> system-view
[Sysname] domain test
[Sysname-isp-test] ip pool 0 129.102.0.1 129.102.0.10
link-protocol
Syntax
link-protocol { hdlc | ppp }
View
Synchronous serial interface view
Default level
2: System level
Parameters
hdlc: Specifies HDLC as the link layer protocol.
ppp: Specifies PPP as the link layer protocol.
Description
Use the link-protocol command to specify the link protocol of the current interface.
The default link layer protocol of a synchronous serial interface is PPP.
Examples
# Specify PPP as the link layer protocol of Serial 4/1/9/1:0.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] link-protocol ppp
ppp authentication-mode
Syntax
ppp authentication-mode { chap | ms-chap | ms-chap-v2 | pap } * [ [ call-in ] domain isp-name ]
undo ppp authentication-mode
View
Synchronous serial interface view
Default level
2: System level
Parameters
chap: Uses CHAP authentication.
ms-chap: Uses MS-CHAP authentication.
ms-chap-v2: Uses MS-CHAP-V2 authentication.
pap: Uses PAP authentication.
call-in: Authenticates the call-in users only.
domain isp-name: Specifies the domain name for authentication, a string of 1 to 24 characters.
Description
Use the ppp authentication-mode command to specify the PPP authentication mode.
Use the undo ppp authentication-mode command to disable PPP authentication.
If you run the ppp authentication-mode command with the domain keyword specified, you must configure an address pool in the corresponding domain. (You can use the display domain command to display the domain configuration.)
If you configure the ppp authentication-mode command without specifying the domain name, the system checks the username for domain information. If the username contains a domain name, the domain will be used for authentication (If the domain does not exist, the user’s access request will be denied). If not, the default domain is used (you can use the domain default command to configure the default domain; if no default domain is configured, the default domain system is used by default).
The following PPP authentication methods are available.
· PAP authentication is two-way handshake authentication. The password used is in plain text.
· CHAP authentication is three-way handshake authentication. The password is in cipher text.
· MS-CHAP (or Microsoft CHAP) authentication uses three-way handshake and ciphertext password.
· MS-CHAP-V2 authentication uses three-way handshake and ciphertext passwords.
In addition, you can also use the AAA authentication algorithm list (if defined) to authenticate users.
In any previously described authentication mode, AAA determines whether a user can pass the authentication through a local authentication database or an AAA server.
|
NOTE: For more information about creating a local user account, configuring its attributes, creating a domain, and configuring domain attributes, see Security Configuration Guide. |
Related commands: ppp chap user, ppp pap local-user, and ppp chap password; local-user and domain default enable (Security Command Reference)
Examples
# Configure to authenticate the peer router using PAP on interface Serial 4/1/9/1:0.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] ppp authentication-mode pap domain system
ppp chap password
Syntax
ppp chap password { cipher | simple } password
undo ppp chap password
View
Synchronous serial interface view
Default level
2: System level
Parameters
cipher: Specifies to display the password in cipher text.
simple: Specifies to display the password in plain text.
password: Default password for CHAP authentication, a string of 1 to 48 characters. When the simple keyword is used, this password is in plain text. When the cipher keyword is used, this password can either be in cipher text or in plain text. A password in plain text is a string of no more than 48 characters, such as aabbcc. A password in cipher text has a fixed length of 24 or 64 characters, such as _(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Use the ppp chap password command to set the default password for CHAP authentication.
Use the undo ppp chap password command to cancel the configuration.
Related commands: ppp authentication-mode chap.
Examples
# Set the default password for CHAP authentication to Sysname, which is to be displayed in plain text.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] ppp chap password simple sysname
ppp chap user
Syntax
ppp chap user username
undo ppp chap user
View
Synchronous serial interface view
Default level
2: System level
Parameters
username: Username for CHAP authentication, a string of 1 to 80 characters, which is the one sent to the peer router for the local router to be authenticated.
Description
Use the ppp chap user command to set the username for CHAP authentication.
Use the undo ppp chap user command to cancel the configuration.
By default, the username for CHAP authentication is null.
To pass CHAP authentication, the username/password of one side must be the local username/password of the peer.
Related commands: ppp authentication-mode.
Examples
# Configure the username for CHAP authentication as Root on Serial 4/1/9/2:0.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/2:0
[Sysname-Serial4/1/9/2:0] ppp chap user Root
ppp ipcp remote-address forced
Syntax
ppp ipcp remote-address forced
undo ppp ipcp remote-address forced
View
Synchronous serial interface view
Default level
2: System level
Parameters
None
Description
Use the ppp ipcp remote-address forced command to configure a router to assign IP addresses to the peer by force. This command also disables the peer from using locally configured IP addresses.
Use the undo ppp ipcp remote-address forced command to cancel the configuration.
By default, the peer can use locally configured IP address in PPP IPCP negotiation, in other words, a router assigns an IP address to its peer when the latter requests explicitly. It does not assign IP addresses to the peer when the latter already has IP addresses configured.
To disable the peer from using locally configured IP addresses, execute the ppp ipcp remote-address forced command on the local interface.
Related commands: remote address.
Examples
# Configure an optional IP address 10.0.0.1 on interface Serial 4/1/9/1:0 for the peer.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] remote address 10.0.0.1
# Configure IP address 10.0.0.1 on interface Serial 4/1/9/2:0 for the peer and assign the IP address to the peer by force.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/2:0
[Sysname-Serial4/1/9/2:0] remote address 10.0.0.1
[Sysname-Serial4/1/9/2:0] ppp ipcp remote-address forced
ppp pap local-user
Syntax
ppp pap local-user username password { cipher | simple } password
undo ppp pap local-user
View
Synchronous serial interface view
Default level
2: System level
Parameters
username: Username of the local router for PAP authentication, a string of 1 to 80 characters.
cipher: Displays the password in cipher text.
simple: Displays the password in plain text.
password: Password of local router for PAP authentication, a case-sensitive string of 1 to 48 characters. When the simple keyword is specified, provide this argument in plain text. When the cipher keyword is specified, provide this password in either cipher text or plain text. When provided in plain text, the password can contain no more than 48 characters (such as aabbcc); When provided in cipher text, the password must be fixed to 24 or 64 characters, such as _(TT8F]Y\5SQ=^Q`MAF4<1!! and VV-F]7R%,TN$C1D*)O<-;<IX)aV\KMFAM(0=0\)*5WWQ=^Q`MAF4<<"TX$_S#6.N.
Description
Use the ppp pap local-user command to set the local username and password for PAP authentication.
Use the undo ppp pap local-user command to cancel the local username and password configured.
By default, the username and password for PAP authentication are not set.
For the local router to pass PAP authentication on the remote router, make sure that the same username and password configured for the local router are also configured on the remote router with the commands local-user username and password { cipher | simple } password.
Related commands: local-user and password (Security Command Reference)
Examples
# Set the local username and password for PAP authentication to user1 and pass1 (in plain text).
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname- Serial4/1/9/1:0] ppp pap local-user user1 password simple pass1
ppp timer negotiate
Syntax
ppp timer negotiate seconds
undo ppp timer negotiate
View
Synchronous serial interface view
Default level
2: System level
Parameters
seconds: Negotiation timeout time to be set, which ranges from 1 to 10 (in seconds). In PPP negotiation, if the local router receives no response from the peer during this period after it sends a packet, the local router sends the last packet again.
Description
Use the ppp timer negotiate command to set the PPP negotiation timeout time.
Use the undo ppp timer negotiate command to restore the default.
By default, the PPP negotiation timeout time is three seconds.
Examples
# Set the PPP negotiation timeout time to five seconds.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-serial4/1/9/1:0] ppp timer negotiate 5
remote address
Syntax
remote address { ip-address | pool [ pool-number ] }
undo remote address
View
Synchronous serial interface view
Default level
2: System level
Parameters
ip-address: IP address to be assigned to the peer router.
pool [ pool-number ]: Specifies the number of the address pool used for assigning an IP address to the peer. The pool-number argument ranges from 0 to 99 and defaults to 0.
Description
Use the remote address command to set the IP address to be assigned to the peer router or specify the address pool used for assigning an IP address to the peer router.
Use undo remote address to remove the IP address to be assigned to the peer router.
By default, an interface does not assign IP address to the peer router.
The remote address command can be used when the local router is configured with an IP address, while the peer has no IP address. To enable the peer router to accept the IP address assigned to it by the local router, configure the ip address ppp-negotiate command on the peer router in addition to configuring the remote address command on the local router.
|
CAUTION: · The IP address assigned to the peer router by the local router is not mandatory on the peer router. That is, the peer router can still use a locally configured IP address even if the local router assigned one to it. To make the IP address assigned by the local router mandatory, configure the ppp ipcp remote-address forced command. · After you use the remote address command to assign an IP address for the peer router, you cannot configure the remote address/undo remote address command for the peer again unless the peer releases the assigned IP address. Therefore, it is recommended that you shut down the port to release the assigned IP address before you configure the remote address/undo remote address command for the peer. However, after you use the command to assign an IP address to the peer from the address pool of the specified domain through AAA authentication, you can configure the command for the peer again. In this case, the originally assigned IP address can still work, and the newly assigned IP address is used when the original one is released or used by a new PPP access. · This command takes effect in the next IPCP negotiation. To make the remote address command take effect, it is recommended that you configure the remote address command before configuring the ip address command. |
Related commands: ip address ppp-negotiate and ppp ipcp remote-address forced.
Examples
# Configure the IP address to be assigned to the peer router through Serial 4/1/9/1:0 as 10.0.0.1.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] remote address 10.0.0.1
timer hold
Syntax
timer hold seconds
undo timer hold
View
Synchronous serial interface view
Default level
2: System level
Parameters
seconds: Interval (in seconds) for sending keepalive packets, in the range 0 to 32767.
Description
Use the timer hold command to set the keepalive interval.
Use the undo timer hold command to restore the default.
The default keepalive interval is 10 seconds.
Setting the keepalive interval to 0 seconds prevents the interface from sending keepalive packets.
The interface considers its link as down and shuts down after a specific number of keepalive intervals have passed without receiving any keepalive message.
As large packets can delay smaller keepalive packets long enough to cause a PPP session to disconnect on a slow link, you should consider setting the keepalive interval to a large value on such a link.
On a PPP link, make sure the two ends are using the same keepalive setting.
Examples
# Set the interval for sending keepalive packets to 20 seconds on Serial 4/1/9/1:0.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] timer hold 20
MP configuration commands
default
Syntax
default
View
MP-group interface view
Default level
2: System level
Parameters
None
Description
Use the default command to restore the default setting for the VT or MP-group interface.
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.
|
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. |
Examples
# Restore the default setting for interface MP-group 2/1/3.
<Sysname> system-view
[Sysname] interface Mp-group 2/1/3
[Sysname-Mp-group2/1/3] default
This command will restore the default settings. Continue? [Y/N]:y
description
Syntax
description text
undo description
View
MP-group interface view
Default level
2: System level
Parameters
text: Interface description, a case-sensitive character string of 1 to 80 characters.
Description
Use the description command to set the description for the VT or MP-group interface.
Use the undo description command to restore the default.
By default, a MP-group interface is described in the form of interface name Interface, for example, Mp-group2/1/1 Interface.
Examples
# Set the description for interface MP-group 3 to mpgroup-interface.
<Sysname> system-view
[Sysname] interface Mp-group 2/1/3
[Sysname-Mp-group2/1/3] description mpgroup-interface
display interface mp-group
Syntax
display interface mp-group mp-number [ brief ] [ | { begin | exclude | include } regular-expression ]
display interface [ mp-group ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
mp-number: Number of an existing multilink point to point protocol group (MP-group) interface.
brief: Displays brief interface information. If you do not specify this keyword, this command displays detailed interface information.
down: Displays information about interfaces in the DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display interface mp-group command to display the information about an existing MP-group interface.
If you do not specify the mp-group keyword, this command displays information about interfaces on the device.
If you specify the mp-group keyword without the mp-number argument, this command displays information about all existing MP-group interfaces.
Examples
# Display information about interface MP-group 3/1/1.
<Sysname> display interface Mp-group 3/1/1
Mp-group3/1/1 current state: UP
Line protocol current state: UP
Description: Mp-group3/1/1 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 5.1.0.1/24 Primary
Link layer protocol is PPP
LCP opened, MP opened, IPCP opened
Physical is MP, baudrate: 768000 bps
Last clearing of counters: 17:34:17 Mon 08/07/2009
Last 300 seconds input rate: 48 bytes/sec, 384 bits/sec, 2 packets/sec
Last 300 seconds output rate: 42 bytes/sec, 336 bits/sec, 2 packets/sec
594447 packets input, 11254154 bytes, 0 drops
579254 packets output, 9807856 bytes, 0 drops
# Display brief information about interface MP-group 3/1/1.
<Sysname> display interface Mp-group 3/1/1 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
MP12 DOWN DOWN --
# Display brief information about all MP-group interfaces in the DOWN state.
<Sysname> display interface Mp-group brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
MP2/1/13 ADM Administratively
MP3/1/1 DOWN Not connected
Table 1 Output description
Field |
Description |
current state |
Physical state of the interface: · DOWN (Administratively)—The interface was shut down with the shutdown command, that is, is administratively down. · DOWN—The interface is administratively up but physically down. · UP—The interface is both administratively and physically up. |
Line protocol current state |
Data link layer state (UP or DOWN). |
Description |
Description string of the interface. |
The Maximum Transmit Unit |
Maximum transmit unit (MTU) of the interface. |
Hold timer |
Interval at which the current interface sends keepalive packets. |
Internet Address is 5.1.0.1/24 Primary |
Primary IP address of the interface. |
LCP opened, MP opened, IPCP opened |
PPP negotiation includes the negotiation of multiple protocols. The field indicates that the negotiation of LCP, MP, and IPCP is complete. |
Physical is MP, baudrate |
Physical type and speed of the interface. |
Last clearing of counters |
Time when statistics on the interface were last cleared. |
Last 300 seconds input rate Last 300 seconds output rate |
Average input and output rate over the last 300 seconds. |
594447 packets input, 11254154 bytes, 0 drops |
Total number and size (in bytes) of the input packets of the interface, and the number of dropped packets. |
579254 packets output, 9807856 bytes, 0 drops |
Total number and size (in bytes) of the output packets of the interface, and the number of dropped packets. |
The brief information of interface(s) under route mode |
Brief information about Layer 3 interfaces. |
Link: ADM - administratively down; Stby - standby |
Link status: · ADM—The interface has been administratively shut down. To recover its physical state, perform the undo shutdown command. · Stby—The interface is operating as a backup interface. |
Protocol: (s) - spoofing |
If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface: · UP—The link is up. · ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command. |
Protocol |
Protocol connection state of the interface, which can be UP, DOWN, or UP(s). |
Main IP |
The main IP address of the interface. |
Description |
Description of the interface. |
Cause |
The cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively. To restore the physical state of the interface, use the undo shutdown command. |
display ppp mp
Syntax
display ppp mp [ interface mp-group mp-number ] [ | { begin | exclude | include } regular-expression ]
View
Default level
1: Monitor level
Parameters
interface mp-group mp-number: Displays information and statistics about the specified MP-group interface.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display ppp mp command to display information and statistics about a specific or all MP-group interfaces.
Related commands: link-protocol ppp and ppp mp.
Examples
# Display information about all MP-group interfaces.
Mp-group is Mp-group4/1/28
max-bind: 16, fragment:enable, min-fragment: 512
Bundle Multilink, 2 members, Master link is Mp-group4/1/28
Peer's endPoint descriptor: Mp-group4/1/28
Sequence format: short/long rcv/sent
Bundle Up Time: 2005/03/13 19:54:23:60
0 lost fragments, 0 reordered, 0 unassigned
Sequence: 0/0 rcvd/sent
The member channels bundled are:
Serial4/1/9/1:0 Up-Time: 2005/03/13 19:54:23:60
Serial4/1/9/2:0 Up-Time: 2005/03/13 19:54:23:60
Table 2 Output description
Field |
Description |
Mp-group is Mp-group4/1/28 |
The information of MP-group interface 4/1/28 is displayed. |
max-bind |
Maximum number of links that can be bundled. |
fragment |
MP fragmentation. |
min-fragment |
Minimum size of an MP fragment. |
Bundle Multilink |
Peer MP username is Multilink. |
2 members |
Two channels are bundled. |
Master link is MP-group4/1/28 |
The master channel is MP-group 4/1/28. |
Peer's endPoint descriptor |
Description string of the peer. |
Sequence format: short/long rcv/sent |
MP sequence number header format: the short sequence number format is used in the incoming direction and the long sequence number format in the outgoing direction. |
Bundle Up Time: 2005/03/13 19:54:23:60 |
The MP channel went up at 19:54:23:60 on March 13, 2005. |
0 lost fragments |
Number of the lost fragments. |
0 reordered |
Number of the packets reassembled. |
0 unassigned |
Number of the packets waiting for being reassembled. |
0 interleaved |
Number of the interleaved packets. |
sequence 0/0 rcvd/sent |
Received sequence number/sent sequence number. |
The member channels bundled are |
The following displays all the member channels bundled in this logical channel. |
Serial4/1/9/1:0 Up-Time:2005/03/13 19:54:23:60 |
Subchannel Serial 4/1/9/1:0 is up at 19:54:23:60 on March 13, 2005. |
Inactive member channels |
List of the inactive subchannels. |
interface mp-group
Syntax
interface mp-group mp-number
undo interface mp-group mp-number
View
System view
Default level
2: System level
Parameters
mp-number: MP group interface number. An MP group interface is identified by the combination of its slot number, subcard number, and interface number. The interface number ranges from 0 to 1023.
The router does not support configuring the subcard number of an MP group to 0. For example, you cannot create Mp-group 3/0/1.
Description
Use the interface mp-group command to create an MP group interface or enter MP group interface view. If the specified MP group interface already exists, this command allows you to enter MP group interface view directly.
Use the undo interface mp-group command to remove an MP-group interface.
This command must be used in conjunction with the ppp mp mp-group command. You can execute the two commands in either order.
Examples
# Create MP-group 4/1/28.
<Sysname> system-view
[Sysname] interface Mp-group 4/1/28
[Sysname-Mp-group4/1/28]
mtu
Syntax
mtu size
undo mtu
View
MP-group interface view
Default level
2: System level
Parameters
size: MTU (in bytes), which ranges from 128 to 9216.
Description
Use the mtu command to set the MTU of the current MP-group interface.
Use the undo mtu command to restore the default.
The default MTU of MP-group interfaces is 1500 bytes.
To make the new MTU configuration take effect, use the shutdown and then undo shutdown commands to disable the MP-group interface.
Examples
# Set the MTU of MP-group 4/1/10 to 1200 bytes.
<Sysname> system-view
[Sysname] interface Mp-group 4/1/10
[Sysname-Mp-group4/1/10] mtu 1200
ppp mp endpoint
Syntax
ppp mp endpoint string char-string
undo ppp mp endpoint
View
Synchronous serial interface view
Default level
2: System level
Parameters
string char-string: Specifies the char-string argument as the endpoint option. The string specified by char-string contains 1 to 20 characters.
Description
Use the ppp mp endpoint command to configure the endpoint option for LCP negotiation when the current interface is in an MP-group interface.
Use the undo ppp mp endpoint command to restore the default endpoint option for LCP negotiation when the current interface is in an MP-group interface.
By default, the endpoint option in the packets sent out an interface is the router name. After you use the mp-group command to add the interface to the specified MP-group interface, the endpoint option in the packets sent out the interface is the MP-group interface name. As the endpoint option is of up to 20 bytes, if the default is of more than 20 bytes, the first 20 bytes are taken as the endpoint option.
Examples
# Configure the endpoint option in the packets sent out Serial 4/1/9/1:0 as 123456.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] ppp mp endpoint string 123456
ppp mp fragment enable
Syntax
ppp mp fragment enable
undo ppp mp fragment enable
View
MP-group interface view
Default level
2: System level
Parameters
None
Description
Use the ppp mp fragment enable command to enable MP fragmentation.
Use the undo ppp mp fragment enable command disable MP fragmentation.
By default, MP fragmentation is enabled.
If the peer device does not support fragment reassembly, you must configure the undo ppp mp fragment enable command on the local router to disable MP fragmentation, thus enabling the two devices to communicate. After that, outgoing packets are not fragmented, but they still carry an MP sequence number and fragment tag.
After you configure the undo ppp mp fragment enable command on an interface, the settings configured with the ppp mp min-fragment command become invalid on the interface.
After configuring the ppp mp fragment enable command, you must use the shutdown and then undo shutdown commands to re-enable all the bundled physical interfaces for the new setting to take effect.
Examples
# Disable MP fragmentation on interface MP-group 4/1/28.
<Sysname> system-view
[Sysname] interface Mp-group 4/1/28
[Sysname-Mp-group4/1/28] undo ppp mp fragment enable
ppp mp max-bind
Syntax
ppp mp max-bind max-bind-num
undo ppp mp max-bind
View
MP-group interface view
Default level
2: System level
Parameters
max-bind-num: Maximum number of links allowed in an MP bundle, in the range of 1 to 128.
Description
Use the ppp mp max-bind command to set the maximum number of links allowed in an MP bundle.
Use the undo ppp mp max-bind command to restore the default.
By default, the maximum number of links allowed in an MP bundle is 16. However, up to 12 links can be brought up simultaneously in an MP bundle.
Use the default setting in normal cases. Use this command under the guidance of a technical engineer, because changing the maximum number of links in an MP bundle can affect its PPP performance.
|
NOTE: · To make sure that links can be bundled to an MP bundle successfully, configure the actual number of links assigned to an MP bundle smaller than the maximum number of links allowed in the bundle. · After you change the maximum number of links allowed in an MP bundle, you must re-enable all the physical interfaces in the MP bundle for the modification to take effect. |
Related commands: ppp mp.
Examples
# Set the maximum number of links allowed in MP-group 4/1/28 to 10.
<Sysname> system-view
[Sysname] interface Mp-group 4/1/28
[Sysname-Mp-group4/1/28] ppp mp max-bind 10
ppp mp min-fragment
Syntax
ppp mp min-fragment size
undo ppp mp min-fragment
View
MP-group interface view
Default level
2: System level
Parameters
size: Minimum MP packet size for fragmentation to be set, which ranges from 128 to 1500 (in bytes). MP outgoing packets smaller than this value will not be fragmented, while those larger than or equal to this value will be fragmented.
Description
Use the ppp mp min-fragment command to set the minimum MP packet size for fragmentation.
Use the undo ppp mp min-fragment command to restore the default.
By default, the minimum MP packet size for fragmentation is 512 bytes.
|
NOTE: · If MP bundle is implemented through hardware (CPOS chips for example), the minimum MP packet size for fragmentation varies with chips (the fragment size on certain chips can only be 128, 256, and 512 bytes). In this case, make sure the setting specified by the ppp mp min-fragment command conforms to the hardware specification for the MP bundle and the sub-channel LCP link to be established successfully. · After configuring the ppp mp min-fragment command, you must re-enable all the bundled physical interfaces for the new setting to take effect. |
Examples
# Set the minimum MP packet size for fragmentation to 500 bytes.
<Sysname> system-view
[Sysname] interface Mp-group4/1/28
[Sysname-Mp-group4/1/28] ppp mp min-fragment 500
ppp mp mp-group
Syntax
ppp mp mp-group mp-number
undo ppp mp
View
Synchronous serial interface view
Default level
2: System level
Parameters
mp-number: MP-group interface number.
Description
Use the ppp mp mp-group command to add the current interface to an MP-group and enable the interface to operate in MP mode.
Use the undo ppp mp mp-group command to remove the current interface from the specified MP-group it belongs to.
This command should be used along with the interface mp-group command. However, the order in which the two commands are executed can be either one. That is, you can create an MP-group interface and then add an interface to the MP-group; or add the interface to the MP-group and then create the MP-group.
|
NOTE: · Only physical interfaces can be added to an MP group. Logical interfaces (such as Tunnel interfaces) do not support the ppp mp mp-group command. · The number of timeslots assigned to each bundled serial interface must be the same. Otherwise, the serial interfaces cannot join the MP group and their states transition between up and down repeatedly. · Before deleting an MP bundle, you must first remove all the serial interfaces from the MP group, that is, bring the MP group down. Otherwise, the MP-group interface cannot be removed. |
Examples
# Add interface Serial 4/1/9/1:0 to MP-group 4/1/28.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] ppp mp Mp-group 4/1/28
ppp mp short-sequence
Syntax
ppp mp short-sequence
undo ppp mp short-sequence
View
Interface view
Default level
2: System level
Parameters
None
Description
Use the ppp mp short-sequence command to trigger MP short sequence number header format negotiation. When the negotiation succeeds, the local end receives packets with short sequence numbers.
Use the undo ppp mp short-sequence command to restore the default.
By default, the long sequence number header format is used.
This command applies to the incoming direction only. To enable the local end to transmit packets with short sequence numbers, configure the remote end to receive packets with short sequence numbers.
|
NOTE: · The sequence number format (long or short) of an MP bundle depends on the configuration of the first channel joining the MP bundle. · To negotiate the use of short sequence numbers on a MP bundle, configure the command on every channel in the MP bundle, because the command will cause PPP re-negotiation. |
Examples
# Configure the short sequence number header format of MP on Serial 4/1/9/1:0.
<Sysname> system-view
[Sysname] interface Serial 4/1/9/1:0
[Sysname-Serial4/1/9/1:0] ppp mp Mp-group 4/1/28
[Sysname-Serial4/1/9/1:0] ppp mp short-sequence
reset counters interface mp-group
Syntax
reset counters interface [ mp-group [ interface-number ] ]
View
User view
Default level
2: System level
Parameters
interface-number: Interface number.
Description
Use the reset counters interface mp-group command to clear the traffic statistics on MP-group interfaces.
Before collecting traffic statistics within a specific period of time on an interface, you must clear the existing statistics.
If you do not specify the mp-group keyword, this command clears statistics on all interfaces.
If you specify the mp-group keyword without the interface-number argument, this command clears statistics on all MP-group interfaces.
Examples
# Clear the statistics on interface MP-group 3/1/2.
<Sysname> reset counters interface Mp-group 3/1/2
shutdown
Syntax
shutdown
undo shutdown
View
MP-group interface view
Default level
2: System level
Parameters
None
Description
Use the shutdown command to shut down the MP-group interface.
Use the undo shutdown command to bring up the MP-group interface.
By default, a MP-group interface is up.
Examples
# Shut down MP-group 2/1/3.
<Sysname> system-view
[Sysname] interface Mp-group 2/1/3
[Sysname-Mp-group2/1/3] shutdown