Step 1 | enable
Example:
Router> enable
Example:
Router#
|
Enables privileged EXEC mode. Enter your password if prompted.
|
Step 2 | configure
terminal
Example:
Router# configure terminal
Example:
Router(config)#
|
Enters global configuration mode.
|
Step 3 | interface
virtual-template
number
Example:
Router(config)# interface virtual-template 1
Example:
Router(config-if)#
|
Select the number of the virtual-template interface to be
configured and enters interface configuration mode.
Note
| You can create up to 200 virtual interfaces on each router.
|
|
Step 4 | ip
unnumbered
interface
Example:
Router(config-if)# ip unnumbered Ethernet2/0
Example:
Router(config-if)#
|
Enables the virtual template interfaces to process IP packets by
using the IP address of the specified interface, as opposed to assigning a
unique IP address to each virtual interface.
|
Step 5 | ip
mtu
1492
Example:
Router(config-if)# ip mtu 1492
Example:
Router(config-if)#
|
Configures the maximum transmission unit (MTU) size to 1492 bytes
to allow for the eight additional header bytes used by the PPP and PPPoE
encapsulation.
|
Step 6 | keepalive
period [retries ]
Example:
Router(config-if)# keepalive 60 10
Example:
Router(config-if)#
|
(Optional) Specifies how often and how many times the router
should send keepalive messages on the virtual interface without receiving a
response before bringing down the tunnel protocol and ending that particular
PPPoE session.
-
period = Specifies how long, in seconds, the router should
send a keepalive message and wait for a response. The valid range is 0 to 32767
seconds, with a default of 10.
-
retries = (Optional) Specifies the number of times the
router will resend a keepalive packet without receiving a response. The valid
range is 1 to 255, with a default of 5.
Note
| Increasing the keepalive period and number of retries might be
necessary when supporting a large number of PPPoE sessions.
|
|
Step 7 | peer
default
ip
address
pool
name [name2 ...]
Example:
Router(config-if)# peer default ip address pool local
Example:
Router(config-if)#
|
(Optional) Defines one or more pools of addresses to be used when
assigning IP addresses to the PPPoE clients.
|
Step 8 | ppp
authentication {chap |
ms-chap |
pap}
Example:
Router(config-if)# ppp authentication chap
Example:
Router(config-if)#
|
Defines the authentication method to be used for PPPoE sessions:
- chap = Challenge Handshake
Authentication Protocol
- ms-chap = Microsoft’s version of CHAP
- pap = Password Authentication
Protocol
|
Step 9 | ppp
timeout
authentication
response-time
Example:
Router(config-if)# ppp timeout authentication 10
Example:
Router(config-if)#
|
(Optional) Specifies the maximum time, in seconds, that the
router should wait for a response to a PPP authentication packet. The valid
range is 0 to 255 seconds, with a default of 10 seconds.
Note
| Increase this timeout if PPPoE sessions begin failing due to
timeout errors.
|
|
Step 10 | ppp
timeout
retry
timeout
Example:
Router(config-if)# ppp timeout retry 5
Example:
Router(config-if)#
|
(Optional) Specifies the maximum time, in seconds, that the
router should wait for a response during PPP negotiation. The valid range is 1
to 255 seconds, with a default of 2 seconds.
Note
| Increase this timeout if PPPoE sessions begin failing due to
timeout errors.
|
|
Step 11 | no
logging
event
link-status
Example:
Router(config-if)# no logging event link-status
Example:
Router(config-if)#
|
(Optional) Disables sending unnecessary link up and link down
event messages to the router’s event log. These messages would otherwise be
sent each time a PPPoE session begins and ends.
|
Step 12 | no
cdp
enable
Example:
Router(config-if)# no cdp enable
Example:
Router(config-if)#
|
(Optional) Disables the use of the Cisco Discovery Protocol (CDP)
on the virtual interface. This protocol is unnecessary on a virtual interface
for PPPoE sessions.
|
Step 13 | exit
Example:
Router(config-if)# exit
Example:
Router(config)#
|
Exits interface configuration mode.
|
Step 14 | exit
Example:
Router(config)# exit
Example:
Router#
|
Exits global configuration mode.
|