PPPoE Server Configuration
此内容尚不支持你的语言。
PPPoE Server Configuration
Section titled “PPPoE Server Configuration”pppoe-server enable
Section titled “pppoe-server enable”[Command]
pppoe-server enable
no pppoe-server enable
[Purpose]
Enable PPPoE Server/Disable PPPoE Server
[View]
System Configuration View
[Use Cases]
sonic# configuresonic(config)# pppoe-server enableshow pppoe-session [ip string|mac string|username string]
Section titled “show pppoe-session [ip string|mac string|username string]”[Command]
show pppoe-session [ip string|mac string|username string]
[Purpose]
View the established sessions of PPPoE Server.Support filtering based on IP/MAC/username fields.
[View]
System View
[Use Cases]
sonic# show pppoe-session Id Iface SessionId RemoteMac RemoteIp LocalIp LocalIf PppoeServer Uptime---- --------- ----------- ----------------- ------------- ------------ --------- -------------- -------- 0 Ethernet3 1 60:eb:5a:01:75:50 192.168.18.10 192.168.18.1 ppp0 pppoe-server-1 0:05:54Total number of entries 1show pppoe-server server id
Section titled “show pppoe-server server id”[Command]
show pppoe-server server id
[Purpose]
View detailed information on different PPPoE Server interfaces, including service operation status, core component statistics, PPPoE protocol statistics, session status, and more.
[View]
System Configuration View
[Use Cases]
sonic# configure terminalsonic# show pppoe-server 1PPPoE-Server 1 stats:uptime: 0.00:07:31cpu: 0%mem(rss/virt): 16192/187648 kBcore: mempool_allocated: 2113954 mempool_available: 2110634 thread_count: 4 thread_active: 1 context_count: 7 context_sleeping: 0 context_pending: 0 md_handler_count: 6 md_handler_pending: 0 timer_count: 1 timer_pending: 0sessions: starting: 0 active: 1 finishing: 0pppoe: starting: 0 active: 1 delayed PADO: 0 recv PADI: 1 drop PADI: 0 sent PADO: 1 recv PADR(dup): 1(0) sent PADS: 1 filtered: 0clear pppoe-session [ethernet interface_num|id session id|ip ipv4/ipv6|link-aggregation lag-id|mac string|server id|sub-ethernet sub_interface_num|sub-link-aggregation sub_lag_id|username string]
Section titled “clear pppoe-session [ethernet interface_num|id session id|ip ipv4/ipv6|link-aggregation lag-id|mac string|server id|sub-ethernet sub_interface_num|sub-link-aggregation sub_lag_id|username string]”[Command]
clear pppoe-session [ethernet interface_num|id session id|ip ipv4/ipv6|link-aggregation lag-id|mac string|server id|sub-ethernet sub_interface_num|sub-link-aggregation sub_lag_id|username string]
[Purpose]
Forcefully disconnect PPPoE online sessions that meet the specified criteria. Commonly used to force abnormal users to log off, release suspended session resources, or cooperate with stress testing for status reset.
[View]
System View
[Use Cases]
sonic# clear pppoe-session username test1ip-pool name
Section titled “ip-pool name”[Command]
ip-pool name
[Purpose]
Configure address pool, such as referencing remote ip pool when configuring pppoe server interface.
[Parameter]
| Parameter | Description |
|---|---|
| name | character configuration range: 1~32 |
[View]
System Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# ip-pool pppoe-pool1ip-mask ip
Section titled “ip-mask ip”[Command]
ip-mask ip
[Purpose]
Configure the IP address range in the address pool through masking, supporting IPV4/IPV6.
[Parameter]
| Parameter | Description |
|---|---|
| ip | A.B.C.D/mask or A::B/mask |
[View]
IP Pool Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# ip-pool pppoe-pool1sonic(config-ippool-pppoe-pool1)# ip-mask 192.168.15.2/24ip-range start-ip end-ip
Section titled “ip-range start-ip end-ip”[Command]
ip-range start-ip end-ip
[Purpose]
Configure the IP address range in the address pool in a range based manner, supporting IPV4/IPV6; Support configuring multiple in one IP pool.
[Parameter]
| Parameter | Description |
|---|---|
| start-ip | A.B.C.D or A::B |
| end-ip | A.B.C.D or A::B |
[View]
IP Pool Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# ip-pool pppoe-pool1sonic(config-ippool-pppoe-pool1)# ip-range 192.168.15.10 192.168.15.20interface pppoe-server server id
Section titled “interface pppoe-server server id”[Command]
interface pppoe-server server id
[Purpose]
Configure the PPPoE Server interface to enter the PPPoE Server interface view for parameter configuration, which is used to receive client dial-up connections.
[Parameter]
| Parameter | Description |
|---|---|
| Server ID | range: 0~7 |
[View]
System Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1ac-name string
Section titled “ac-name string”[Command]
ac-name string
[Purpose]
The full name of the access concentrator is’ access concentrator name ’, which defaults to’ device hostname - ppoe server - {id} ‘and is an optional configuration.
[Parameter]
| Parameter | Description |
|---|---|
| string | character range: 1~63 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# ac-name pppoe-server-1accept-any-service enable
Section titled “accept-any-service enable”[Command]
accept-any-service enable
no accept-any-service enable
[Purpose]
After configuration, the server side allows the client to perform dial-up authentication with any service type.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# accept-any-service enableaccept-blank-service enable
Section titled “accept-blank-service enable”[Command]
accept-blank-service enable
no accept-blank-service enable
[Purpose]
Once enabled, the server allows traffic without a service type to proceed with dial-up authentication, but it requires the server to simultaneously configure a service-name, while the client-side service-name must be left empty.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# accept-blank-service enabledns-server A.B.C.D
Section titled “dns-server A.B.C.D”[Command]
dns-server A.B.C.D
[Purpose]
Specify the DNS server address assigned to the client.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# dns-server 8.8.8.8ipv6-dns-server X:X::X:X
Section titled “ipv6-dns-server X:X::X:X”[Command]
ipv6-dns-server X:X::X:X
[Purpose]
Specify the IPV6 type DNS server address assigned to the client.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# ipv6-dns-server 2005::64keepalive interval
Section titled “keepalive interval”[Command]
keepalive interval
[Purpose]
Set the LCP echo request interval time, disconnect the dead connection after exceeding the retry count, and the old session will be cleared after the default keepalive * 3 time, which is 10 seconds.
[Parameter]
| Parameter | Description |
|---|---|
| interval | range: 0~65535 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# keepalive 10local-ip A.B.C.D mask
Section titled “local-ip A.B.C.D mask”[Command]
local-ip A.B.C.D mask
[Purpose]
Set the IP address of the PPPoE server local end, which is the layer 3 address used to establish PPP connections, and be careful not to conflict with the remote ip pool.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# local-ip 192.168.18.1 255.255.255.0local-ipv6 X:X::X:X
Section titled “local-ipv6 X:X::X:X”[Command]
local-ipv6 X:X::X:X
[Purpose]
Set the IPV6 address of the PPPoE server local end, which is the layer 3 address used to establish PPP connections, and be careful not to conflict with the remote ip pool.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# local-ipv6 2005::64mru value
Section titled “mru value”[Command]
mru value
[Purpose]
Set the maximum receiving unit on the server side to 1492 by default, and negotiate with the MRU value on the client side to obtain the final receiving unit size, which is generally based on the client side; The ifconfig command can be used to view the final MTU value in the PPP interface to determine the negotiation result. The MTU value on the server side is completely determined by the MRU negotiation result, otherwise the default value of 1492 will be used.
[Parameter]
| Parameter | Description |
|---|---|
| value | receiving unit range: 1312~10218 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# mru 1400ppp chap username username password
Section titled “ppp chap username username password”[Command]
ppp chap username username password
[Purpose]
Configure local users supported by PPPoE server, support configuring multiple users/deleting multiple users.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# ppp chap username test1 test1remote-ip-pool pool name
Section titled “remote-ip-pool pool name”[Command]
remote-ip-pool pool name
[Purpose]
Configure the IP address range assigned by the PPPoE server to the client and specify the configured IP pool.
[Parameter]
| Parameter | Description |
|---|---|
| pool name | configuration range: 1~32 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# remote-ip-pool pppoe-pool1remote-ipv6-pool pool name
Section titled “remote-ipv6-pool pool name”[Command]
remote-ipv6-pool pool name
[Purpose]
Configure the IPV6 address range assigned by the PPPoE server to the client, specifying the already configured IP port; Note that the specified remote-ipv6-pool cannot be configured as ip range, only ip mask can be configured.
[Parameter]
| Parameter | Description |
|---|---|
| pool name | configuration range: 1~32 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# remote-ipv6-pool pppoe-pool2delegate-prefix-pool pool name
Section titled “delegate-prefix-pool pool name”[Command]
delegate-prefix-pool pool name
[Purpose]
Bind the specified IPv6 prefix delegation address pool to the current PPPoE interface, specifying the pre configured IP pool; Note that the specified delegate prefix pool cannot be configured as ip range, only ip mask can be configured.
[Parameter]
| Parameter | Description |
|---|---|
| pool name | configuration range: 1~32 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# delegate-prefix-pool pppoe-pool2service-name string
Section titled “service-name string”[Command]
service-name string
[Purpose]
Configure the service name of the PPPoE server, which is empty by default and an optional field; Support configuring multiple.
[Parameter]
| Parameter | Description |
|---|---|
| string | configuration range: 1~63 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# service-name BroadbandServicesession-max value
Section titled “session-max value”[Command]
session-max value
[Purpose]
Configure the maximum concurrent PPPoE sessions allowed by the PPPoE server, with no limit by default.
[Parameter]
| Parameter | Description |
|---|---|
| value | configuration range: 1~65535 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# session-max 20challenge-name string
Section titled “challenge-name string”[Command]
challenge-name string
[Purpose]
Set the local device name that PPPoE Server sends to the client when initiating CHAP authentication. If during the CHAP challenge handshake phase, the server sends a random number and the name to the client through a Challenge message. If the client is configured with strict two-way authentication (to verify the identity of the other end), this name will be verified; If the client uses one-way authentication, this field is usually ignored and only the hash value response is calculated based on the random number and local password.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# challenge-name server1nas-identifier string
Section titled “nas-identifier string”[Command]
nas-identifier string
[Purpose]
Set the network access server identifier to be sent to the Radius server.
[Parameter]
| Parameter | Description |
|---|---|
| string | configuration range: 1~32 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# nas-identifier test1nas-ip A.B.C.D
Section titled “nas-ip A.B.C.D”[Command]
nas-ip A.B.C.D
[Purpose]
Set the IPv4 address of the network access server to be sent to the Radius server.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# nas-ip 192.168.2.220ip-pim
Section titled “ip-pim”[Command]
ip-pim
[Purpose]
Enable protocol independent multicast functionality on the current PPPoE Server interface.
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# ip-pimpppoe-server id
Section titled “pppoe-server id”[Command]
pppoe-server id
[Purpose]
Port binding pppoe server configuration, supports physical interface, lag interface, sub interface, lag sub interface binding pppoe server configuration.
[Parameter]
| Parameter | Description |
|---|---|
| id | configuration range: 0~7 |
[View]
PPPoE Server Interface View
[Use Cases]
sonic# configure terminalsonic(config)# interface pppoe-server 1sonic(config-if-pppoeserver-1)# pppoe-server 1