interface l2tp
This command creates a Layer-2 Tunneling Protocol (L2TP) interface.
Syntax
interface l2tp <Interface ID>
(conf-if-L2TP <ID>)# backup|desc|firewall|ip|ipv6|mtu|napt|network|ppp|tunnel
|
Command |
Description |
|---|---|
|
Interface ID |
Defines the L2TP Interface ID in the range of 0-99. |
|
ip unumbered {Interface Type and ID} |
Defines L2TP Unnumbered IP configuration, allowing the L2TP interface to borrow an IP address from another local interface (usually a Loopback). This is used instead of obtaining the IP address from a PPP server. |
|
tunnel destination |
Defines the IP address of the PPP tunneling peer. |
|
ppp {user} {pass} |
Defines the PPP server username and password from where the L2TP interface obtains its IP address. |
Default
NA
Command Mode
Privileged User
Example
| ■ | This example creates an L2TP interface. |
(config-data)# interface l2tp 0
(conf-if-L2TP 0)#
| ■ | This example obtains an IP address for the L2TP interface from a PPP sever. |
(config-data)# interface l2tp 0
(conf-if-L2TP 0)# ppp user site1 pass 1234
(conf-if-L2TP 0)# tunnel destination 10.56.7.8
(conf-if-L2TP 0)# no shutdown
(conf-if-L2TP 0)# exit
| ■ | This example defines Unumbered IP for the L2TP interface by borrowing the IP address from the Loopback interface. |
(config-data)# interface l2tp 0
(conf-if-L2TP 0)# ip unnumbered Loopback 1