PPPoE Server Configuration
24 min
\<font color="#1d50a2">pppoe server configuration\</font> \<font color="#1d50a2">pppoe server enable\</font> \[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 \<font color="#1d50a2">show pppoe session\</font> \[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 \<font color="#1d50a2">show pppoe server \</font> \[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 \<font color="#1d50a2">ip pool \</font> \[command] ip pool name \[purpose] configure address pool, such as referencing remote ip pool when configuring pppoe server interface \[parameter] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> name character configuration range 1 32 \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# ip pool pppoe pool1 \<font color="#1d50a2">ip mask \</font> \[command] ip mask ip \[purpose] configure the ip address range in the address pool through masking, supporting ipv4/ipv6 \[parameter] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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 \<font color="#1d50a2">interface pppoe server \</font> \[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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> server id range 0 7 \[view] system configuration view \[use cases] sonic# configure terminal sonic(config)# interface pppoe server 1 \<font color="#1d50a2">ac name \</font> \[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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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 \<font color="#1d50a2">accept any service enable\</font> \[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 \<font color="#1d50a2">accept blank service enable\</font> \[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 \<font color="#1d50a2">dns server \</font> \[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 \<font color="#1d50a2">keepalive \</font> \[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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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 \<font color="#1d50a2">local ip \</font> \[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 \<font color="#1d50a2">mru \</font> \[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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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 \<font color="#1d50a2">ppp chap username \</font> \[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 \<font color="#1d50a2">remote ip pool \</font> \[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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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 \<font color="#1d50a2">service name \</font> \[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] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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 \<font color="#1d50a2">session max \</font> \[command] session max value \[purpose] configure the maximum concurrent pppoe sessions allowed by the pppoe server, with no limit by default \[parameter] \<font color="#0c121d">parameter\</font> \<font color="#0c121d">description\</font> 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
