PPPoE

 

Introduction

 

The Point-to-Point Protocol over Ethernet (PPPoE) is a network protocol for encapsulating Point-to-Point Protocol (PPP) frames inside Ethernet frames. By using PPPoE, users can virtually "dial" from one machine to another over an Ethernet network, establish a point to point connection between them and then securely transport data packets over the connection.

 

 

Configuration

 

Okapi(config)# interface FastEthernet 0
Okapi(config-if-eth)# ip address 172.16.155.2 255.255.0.0

This command enables pppoe on this interface.
Okapi(config-if-eth)# pppoe enable

This command specifies which dialing pool to use for dialing.
Okapi(config-if-eth)# pppoe-client dial-pool-number 1
Okapi(config-if-eth)# no shutdown

 

 

Assignment of static IP address


Okapi(config)# interface Dialer 0

This command specifies which dialing pool to use to connect to a specific destination subnetwork.
Okapi(config-if-dialer)# dialer pool 1

Okapi(config-if-dialer)# encapsulation ppp
Okapi(config-if-dialer)# no ppp authentication

Specifies the IP address to be given to the client.
Okapi(config-if-dialer)# ip address 10.1.1.11/16
Okapi(config-if-dialer)# no shutdown

 

 

Assignment of IP address as specified by the peer


Okapi(config)# interface Dialer 0

This command specifies which dialing pool to use to connect to a specific destination subnetwork.
Okapi(config-if-dialer)# dialer pool 1

Okapi(config-if-dialer)# encapsulation ppp
Okapi(config-if-dialer)# no ppp authentication

With this command, pppd will accept the peer's idea of our local IP address, even if the local IP address was specified in an option.

Okapi(config-if-dialer)# ppp ipcp-accept-local

With this command, pppd will accept the peer's idea of its (remote) IP address, even if the remote IP address was specified in an option.

Okapi(config-if-dialer)# ppp ipcp-accept-remote

Okapi(config-if-dialer)# no shutdown