PPPoE拨号上网实验案例
实际需求:PC能够通过拨号实现PC与运营商通信 1、AR2为pppoe服务器,使用ppp中chap认证,用户名为user1,密码为Huawei@123, 地址池如图提供IP地址
2、AR1为pppoe客户端,客户端拨号进行认证,认证通过,获取服务器提供的IP地址信息 3、实现PC端与ISP的通信
配置实验命令行: R1为客户端:
配置访问控制列表,使用Easy-ip允许进行NAT转换
acl number 2000
rule 5 permit source 10.1.0.0 0.0.0.255
创建配置虚拟拨号接口 interface Dialer1 link-protocol ppp ppp chap user user1
ppp chap password cipher Huawei@123 ip address ppp-negotiate dialer user user1 dialer bundle 1 nat outbound 2000 配置启用PPPoE客户端功能 interface GigabitEthernet0/0/0 pppoe-client dial-bundle-number 1 内网为静态配置IP地址 interface GigabitEthernet0/0/1 ip address 10.1.0.1 255.255.255.0
配置一条缺省静态路由协议,能够实现内外网的互通 ip route-static 0.0.0.0 0.0.0.0 Dialer1 R2:
配置PPPoE服务器地址池 ip pool aaa
gateway-list 12.1.1.2
network 12.1.1.0 mask 255.255.255.252 配置服务器虚拟模板 interface Virtual-Template1 ppp authentication-mode chap remote address pool aaa
ip address 12.1.1.2 255.255.255.252 配置开启PPPoeE服务器功能 interface GigabitEthernet0/0/0 pppoe-server bind Virtual-Template 1 配置需要验证的用户名和密码 aaa
local-user user1 password cipher Huawei@123 locla-user user1 service-type ppp
所有配置完成后进行测试 验证测试1:
display ip interface brief dialer 1 进行测试R1接口是否获取到IP地址
PPPOE拨号上网实验案例



