Configuration Guide
PPPoE Interface Configuration Guide
11 min
introduction introduction pppoe(point to point protocol over ethernet) is an ethernet based wan access protocol defined by rfc 2516 it combines the authentication, accounting, and link control functions of the ppp(point to point protocol) with the flexible networking features of the ethernet it is mainly used to establish point to point logical connections in a shared ethernet environment explanation of principles explanation of principles pppoe connection establishment is divided into two phases discovery phase discovery phase the discovery phase is completed by the following packets 1 padi(pppoe active discovery initiation)\ the client broadcasts a padi packet to find an available pppoe server 2 pado(pppoe active discovery offer)\ the server responds to the pado message, indicating that the service is available 3 padr(pppoe active discovery request)\ the client selects the server and sends a padr request 4 pads(pppoe active discovery session confirmation)\ the server assigns the session id to confirm the session establishment session phase session phase 1 based on the ppp protocol, lcp(link control protocol) negotiation is completed, authentication packet(chap) authentication, and ipcp(ip control protocol) completes ip address assignment pppoe session termination phase session termination phase session termination phase 1 padt(pppoe active discovery terminate)\ this parameter is generated by a client or server to notify the peer to release pppoe session resources configuring pppoe configuring pppoe dial interface configuration dial interface configuration create a logical interface for a pppoe client to centrally manage ppp parameters and bind physical interfaces operation command description enter the system configuration view configure create a dialer interface interface dialer id id is dialer id ppp authentication user name and password configuration ppp authentication user name and password configuration configure authentication management the pppoe server can use this information to verify the client validity ensure that the user name and password are the same as those configured on the pppoe server operation command description enter the dialer interface configuration view interface dialer \<dialer id> configure the ppp authentication user name and password ppp chap username username password mtu configuration mtu configuration pppoe encapsulation consumes 8 bytes (6 bytes pppoe header + 2 bytes ppp protocol number) to avoid fragmentation and increase the risk of packet loss, flexible adjustment is required in addition, ensure that the end to end mtu is consistent operation command description enter the dialer interface configuration view interface dialer \<dialer id> configure mtu mtu mtu the value of mtu,the default value is 1492 nat configuration nat configuration to enable intranet devices to access the internet through pppoe public ip addresses, the nat(network address translation) is required operation command description enter the dialer interface configuration view interface dialer \<dialer id> configure nat zone nat zone id port binding configuration port binding configuration associate a physical interface with a dialer interface to enable pppoe traffic to be transmitted over a specified physical link operation command description enter the interface view interface ethernet id configure binding a pppoe client pppoe client id the id here is the id of a dialer interface configuration example configuration example network requirements when a pppoe server connects to the device, set an authentication user name and password on the server the device has been configured with a pppoe client and correctly obtained an ip address from the server address pool, and can access the internet procedure 1 create dialer interface 1 sonic(config)# interface dialer 1 2 configure the same user name and password as the pppoe server sonic(config dialerif 1)# ppp chap username test1 123abc 3 configure mtu sonic(config dialerif 1)# mtu 1492 4 configure the port binds the dialer interface sonic(config dialerif 1)# exit sonic(config)# interface ethernet 1 sonic(config if 1)# pppoe client 1 verify configuration the device interface has been successfully assigned to the ip address in the pppoe server address pool, after the default route is configured, the device can access the internet
