Take a look at Table 11.5.
If you have a router with an interface that supports PPPoE and the router is connected to
a DSL modem, you can configure the router to be a PPPoE client—well, assuming your ISP has
provided you with the authentication information, that is.
Let’s take a look at configuring a PPPoE client on a router. Here’s what it looks like under
the physical interface:
R1(config)#int f0/0
R1(config-if)#p?
pppoe pppoe-client priority-group
R1(config-if)#pppoe ?
enable Enable pppoe
max-sessions Maximum PPPOE sessions
R1(config-if)#pppoe enable ?
group attach a BBA group
R1(config-if)#pppoe enable group ?
WORD BBA Group name
global Attach global PPPoE group
R1(config-if)#pppoe enable group global
R1(config-if)#pppoe-client dial-pool-number ?
<1-255> Dialer pool number
R1(config-if)#pppoe-client dial-pool-number 1
!
interface FastEthernet4
TABLE 1 1 . 5 PPPoE Configuration Commands
Command Meaning
interface interface Chooses your interface
pppoe enable group Configures pppoe under a physical interface and allows
you to enable a pppoe and group
pppoe max-sessions Configures the amount of sessions allows on the interface
at one time
pppoe-client dial-pool-number
number
Uses a dial-pool number to attach the physical interface
to a dialer interface
description $ETH-WAN$
no ip address
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
!
After all that, there really are only two commands needed under the physical interface—the
pppoe enable command and the pppoe-client command. And both of them reference the
logical interface we haven’t created yet.
To add a PPPoE connection to your router, you need to also create a dialer interface. This
is a logical interface, and under it, I’m going to add the ip address negotiated command
so a DHCP address can be received and configured on the interface. And by the way, if you’re
using private IP addresses between the DSL modem and your router, you can easily add a static
IP address on this interface. Take a look:
!
interface Dialer0
ip address negotiated
ip mtu 1452
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap callin
ppp chap hostname Todd
ppp chap password 0 lammle
!
Take special notice of how the logical interface associates itself to the physical interface
with both the dial pool 1 command and the dialer-group 1 command.
Last, under the dialer interface, the PPP authentication is set using the ppp
authentication and ppp chap commands. Using the CLI, I provided these commands at
global configuration mode, but in this setup, I’ll configure the command directly under the
logical interface instead.
Although this is a pretty simple configuration, it works really well! Still, I’ll show you how
to configure PPPoE using the SDM in a bit.