实验内容:
用一台路由器作为PPPoE服务器,而局域网中的一台主机使用PPPoE拨号通过路由器连接到因特网。
PPPoE服务器为主机动态分配IP地址和 DNS服务器。
PPPoE服务器通过AAA本地认证 来 认证主机用户
实验拓扑:
实验配置:
[PPPoe]interface Virtual-Template 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
[PPPoe-Virtual-Template10]ppp ipcp dns 8.8.8.8
[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
实验验证:
蔡瑞