Example: Server Configuration using DHCP
Configure a username and a password for PPP client:
Host(config)# username username1 password password1
Create a PPP group GROUPA and associate it with a Virtual Template 1:
Host(config)# bba-group pppoe GROUPA
Host(config-bba-group)# virtual-template 1
Host(config-bba-group)# exit
Configure a loopback interface to be used on the Virtual Template 1:
Host(config)# interface loopback 1
Host(config-if)# ipv6 address 2001:DB8:2::1/40
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Host(config-if)# exit
Create a Virtual Template 1 and use the loopback interface as the IP address:
Host(config)# interface virtual-template 1
Host(config-if)# ipv6 unnumbered loopback 1
Host(config-if)# description pppoe GROUPA
Host(config-if)# mtu 1492
!Specify that PPP PAP authentication is used for authenticating connecting PPP
!clients
Host(config-if)# ppp authentication pap
!Enables DHCP for IPv6 service for the interface and specifies a pool for prefix
!delegation.
Host(config-if)# ipv6 dhcp server dhcpv6pool
Host(config-dhcp)# exit
Associate a physical interface with the PPP group GROUPA:
Host(config)# interface FastEthernet 0/0
Host(config-if)# no ip address
Host(config-if)# pppoe enable group GROUPA
Host(config-if)# no shutdown
Host(config-if)# exit
Create the local IPV6 address pool pool1 referred to in the Virtual Template 1
Host(config)# ipv6 local pool pool1 2001:DB8:1200::/40 48
Create a DHCP information pool and configure a local prefix pool from which prefixes can be delegated to clients.
Host(config)# ipv6 dhcp pool dhcpv6pool
!Specify local prefix pool
Host(config-dhcpv6)# prefix-delegation pool pool1
Host(config-dhcpv6)# end
Example: Client Configuration using DHCP
Device> enable
Device# configure terminal
Device(config)# hostname Client
Configure a physical interface and allocate it to a dialer pool. A logical dialer
interface associated with the dialer pool can select a physical interface from this dialer pool when needed.
Client(config)# interface FastEthernet 0/0
Client(config-if)# no ip address
Client(config-if)# pppoe enable group global
!Allocate the physical interface to the dialer pool
Client(config-if)# pppoe-client dial-pool-number 1
Client(config-if)# no shutdown
%LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Client(config-if)# exit
Create the logical dialer interface and configure the pool used to pick physical
interfaces
Client(config)# interface dialer 1
!Configure the pool used to pick physical interfaces.
Client(config-if)# dialer pool 1
!Sets the encapsulation method used by the interface to PPP.
Client(config-if)# encapsulation ppp
Client(config-if)# ipv6 enable
*Jun 2 23:51:36.455: %DIALER-6-BIND: Interface Vi2 bound to profile Di1
*Jun 2 23:51:36.459: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up
*Jun 2 23:51:36.507: %DIALER-6-UNBIND: Interface Vi2 unbound from profile Di1
*Jun 2 23:51:36.519: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to down
!Enable Prefix delegation on the interface
Client(config-if)# ipv6 dhcp client pd dhcp_prefix_label
!Reduce MTU of the dialer interface to avoid unnecessary fragmentation caused by added
PPP headers.
Client(config-if)# mtu 1492
Client(config-if)# ppp authentication pap callin
!Configures the username and password that the client can use to authenticate with the
server.
Client(config-if)# ppp pap sent-username username1 password password1
*Jun 2 23:52:20.999: %DIALER-6-BIND: Interface Vi2 bound to profile Di1
*Jun 2 23:52:21.003: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up
*Jun 2 23:52:21.103: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to up
Client(config-if)# end
Example: Verifying the PPPoE connection
Observe the interfaces of the client:
Client#show ipv6 interface brief
FastEthernet0/0 [up/up]
unassigned
Dialer1 [up/up]
FE80::205:FF:FE50:6C08
Virtual-Access1 [up/up]
unassigned
Observe the PPPoE session on the client:
Client# show pppoe session
1 client session
Uniq ID PPPoE RemMAC Port VT VA State
SID LocMAC VA-st Type
N/A 324 0005.0050.9c08 Fa0/0 Di1 Vi2 UP
0005.0050.6c08 UP
Observe the packets exchanged during the PPPoE session:
Client# show pppoe session packets
Total PPPoE sessions 1
SID Pkts-In Pkts-Out Bytes-In Bytes-Out
2846 0 6216 0 128136
Observe the DHCP session:
Server# show ipv6 dhcp binding
Client: FE80::205:FF:FE50:6C08
DUID: 00030001000500506C08
Username : unassigned
Interface : Virtual-Access1.1
IA PD: IA ID 0x000D0001, T1 302400, T2 483840
Prefix: 2001:DB8::/48
preferred lifetime 604800, valid lifetime 2592000
expires at Jul 01 2013 09:17 PM (2591979 seconds)
Server# show ipv6 dhcp pool
DHCPv6 pool: dhcpv6pool
Prefix pool: pool1
preferred lifetime 604800, valid lifetime 2592000
Active clients: 1