PPPOE拨号的配置

 

说明:客户端和服务器之间通过以太网进行连接
需要借助虚拟的接口来完成PPP的认证
* PPPOE服务器端配置:
step1:配置以太网接口
interface FastEthernet0/0
 no ip address
 duplex half
 pppoe enable
step2:启用VPDN以及配置VPDN-group
vpdn enable
!
vpdn-group adsl
 accept-dialin
  protocol pppoe
  virtual-template 1
step3:设置虚模版接口
interface Virtual-Template1
 ip address 100.1.1.1 255.255.255.0
 peer default ip address dhcp-pool adsl
 ppp authentication pap
step4:设置用户名和密码
username ccie password 0 ccie
step5:设置dhcp池
ip dhcp excluded-address 100.1.1.1
!
ip dhcp pool adsl
   network 100.1.1.0 255.255.255.0
* 路由器作为pppoe的客户端配置
step1:配置以太网口
interface FastEthernet0/0
 no ip address
 duplex half
 pppoe enable group global
 pppoe-client dial-pool-number 1

step2:配置拨号口
interface Dialer1
 mtu 1492
 ip address negotiated
 ip nat outside
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication pap callin
 ppp pap sent-username ccie password 0 ccie
!
step3:定义内部网络流量
access-list 1 permit 1.1.1.0 0.0.0.255
setp4:配置NAT
ip nat inside source list 1 interface Dialer1 overload
step5:启用默认路由:
ip route 0.0.0.0 0.0.0.0 Dialer1
 

你可能感兴趣的:(服务器,客户端,interface,pppoe,以太网)