实验内容:
- 用一台路由器作为PPPoE服务器,局域网中的一台主机使用PPPoE拨号通过路由器连接到因特网。
- PPPoE服务器为主机动态分配IP地址和 DNS服务器,且PPPoE服务器通过AAA本地认证 来 验证局域网中的主机用户。
实验拓扑:
实验分析:
1, 此实验演示把PPPoE服务器功能配置在虚拟模板接口上,然后再把VT口和连接局域网主机的接口绑定。从而实现PPPoE功能。
2, 接口的Ip地址在VT接口上配置,不在以太接口上配置。
3, 只需要在AAA视图下创建本地认证用户,不需要在ppp协议接口上配置对端认证用户。
PPOE服务器配置:
[PPPoe]interface Virtual-Template 10 创建虚拟模板接口10
[PPPoe-Virtual-Template10]ppp authentication-mode chap domain rui
[PPPoe-Virtual-Template10]ip add 1.1.1.1 24
[PPPoe-Virtual-Template10]remote address pool rui 使用此地址池分配IP
[PPPoe-Virtual-Template10]ppp ipcp dns 8.8.8.8 配置分配的DNS
[PPPoe-Virtual-Template10]q
[PPPoe]ip pool rui
[PPPoe-ip-pool-rui]network 1.1.1.0 mask 24
[PPPoe-ip-pool-rui]gateway-list 1.1.1.1
[PPPoe-ip-pool-rui]inter g0/0/0
[PPPoe-GigabitEthernet0/0/0]pppoe-server bind virtual-template 10 绑定物理接口
[PPPoe-GigabitEthernet0/0/0]aaa
[PPPoe-aaa]local-user test password cipher 123
[PPPoe-aaa]local-user test service-type ppp
局域网主机的配置:
实验验证:
转载于:https://blog.51cto.com/ruisir/2050421