Command Line Reference
IP Service
PPPoE Server Configuration
24 min
pppoe server configuration pppoe server configuration pppoe server enable 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# configure sonic(config)# pppoe server enable show pppoe session show pppoe session \[command] show pppoe session \[purpose] view the established sessions of pppoe server \[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 54 total number of entries 1 show pppoe server 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 terminal sonic# show pppoe server 1 pppoe server 1 stats uptime 0 00 07 31 cpu 0% mem(rss/virt) 16192/187648 kb core 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 0 sessions starting 0 active 1 finishing 0 pppoe 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 0 ip pool ip pool name \[command] ip pool name \[purpose] configure address pool, such as referencing remote ip pool when configuring pppoe server interface \[parameter] parameter parameter description description name character configuration range 1 32 \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# ip pool pppoe pool1 ip mask ip mask ip \[command] ip mask ip \[purpose] configure the ip address range in the address pool through masking, supporting ipv4/ipv6 \[parameter] parameter parameter description description ip a b c d/mask or a b/mask \[view] ip pool configuration view \[use cases] sonic# configure terminal sonic(config)# ip pool pppoe pool1 sonic(config ippool pppoe pool1)# ip mask 192 168 15 2/24 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 parameter description 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 terminal sonic(config)# ip pool pppoe pool1 sonic(config ippool pppoe pool1)# ip range 192 168 15 10 192 168 15 20 interface pppoe server 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 parameter description description server id range 0 7 \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 ac name 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 parameter description description string character range 1 63 \[view] pppoe server interface view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# ac name pppoe server 1 accept any service enable 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 terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# accept any service enable accept blank service enable 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 terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# accept blank service enable dns server 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 terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# dns server 8 8 8 8 keepalive 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 parameter description description interval range 0 65535 \[view] pppoe server interface view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# keepalive 10 local ip 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 terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# local ip 192 168 18 1 255 255 255 0 mru 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 parameter description description value receiving unit range 1312 10218 \[view] pppoe server interface view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# mru 1400 ppp chap username 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 terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# ppp chap username test1 test1 remote ip pool 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 parameter description description pool name configuration range 1 32 \[view] pppoe server interface view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# remote ip pool pppoe pool1 service name 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 parameter description description string configuration range 1 63 \[view] pppoe server interface view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# service name broadbandservice session max 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 parameter description description value configuration range 1 65535 \[view] pppoe server interface view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 sonic(config if pppoeserver 1)# session max 20
