- 积分
- 253
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2011-10-8
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
|
楼主 |
发表于 2011-10-27 11:14:58
|
显示全部楼层
本帖最后由 Evan1987 于 2011-10-27 11:15 编辑
附上英文版命令诠释
Command Description
hostname PPPoE-Client
!
Set the router’s name (optional)
bba-group pppoe global
!
Create a global PPPoE group
interface FastEthernet0/0
description Inside interface
ip address 10.0.0.5 255.255.255.0
no ip redirects
!
Inside interface configuration
interface FastEthernet0/1
description PPPoE interface
no ip address
pppoe enable group global
pppoe-client dial-pool-number 1
!
Enable PPPoE in group global on the outside interface. Add the interface into a dialer pool (1) that can be used in Dialer interfaces.
interface Dialer0
description PPPoE dialer interface
!
Create the dialer interface
ip address negotiated
!
IP address will be negotiated with the PPPoE server
ip mtu 1492
!
MTU size has to be reduced on the PPPoE interfaces due to PPPoE framing overhead
encapsulation ppp
!
Specify the encapsulation type (PPP is required for PPPoE)
dialer pool 1
!
Associate the dialer interface with a dial pool (configured on the Fast Ethernet interface)
dialer-group 1
!
Associate the dialer interface with a dial-on-demand group
ppp authentication chap callout optional
ppp chap hostname test
ppp chap password 0 test
!
PPP will use CHAP authentication with username=test and password=test. Authentication will be used only on outgoing calls, the remote end does not need to authenticate.
ip route 0.0.0.0 0.0.0.0 Dialer0
!
Static default route points to the PPPoE interface
dialer-list 1 protocol ip permit
The dialer list object is required to complete the dial-on-demand configuration.
Server configuration
The server configuration is similar to the client configuration; the major differences are:
A virtual template used for incoming PPPoE requests is configured within the bba-group.
A VirtualTemplate interface is used instead of the Dialer interface.
A local IP address pool is defined for the clients that request an IP address from the server.
Command Description
Hostname PPPoE-Client
!
Set the router’s name (optional)
Username test password 0 test
!
Define the username and password used by the PPPoE client.
bba-group pppoe global
virtual-template 1
!
Create the global PPPoE group that uses virtual-template 1 for incoming PPPoE requests.
interface Loopback0
ip address 172.16.0.12 255.255.255.255
!
The Loopback0 interface is used as the source IP address for virtual access interfaces.
interface FastEthernet0/0
ip address 10.0.0.6 255.255.255.0
pppoe enable group global
!
PPPoE group global is enabled on the FastEthernet interface. Since this group specifies a virtual template for incoming PPPoE sessions, the router becomes a PPPoE server.
interface Virtual-Template1
ip unnumbered Loopback0
ip mtu 1492
!
Virtual template for incoming PPPoE sessions. The interface is unnumbered and has MTU set to 1492 (see above).
peer default ip address pool PPPoE
!
The IP addresses for remote PPPoE clients will be taken from the PPPoE address pool
ppp authentication chap callin
!
Incoming calls use CHAP authentication
ppp chap refuse callin
!
The PPPoE server refuses to authenticate on incoming calls, preventing potential authentication failures on clients that have not configured a username for the the PPPoE server’s hostname.
ip local pool PPPoE 172.16.0.20 172.16.0.29
Address pool for PPPoE clients
|
沙发
2011-10-27 11:14:58
回复(0)
收起回复
|