华为HCIP01:PPPOE配置模拟实验
实验环境
pppoe-client上面的接口信息
[AR1]dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 1
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 192.168.1.254/24 down down
NULL0 unassigned up up(s)
配置了基于接口的DHCP
interface GigabitEthernet0/0/1
ip address 192.168.1.254 255.255.255.0
dhcp select interface
dhcp server dns-list 8.8.8.8
dhcp server domain-name pokes.com
注意事项:AR1、AR2的物理接口g0/0/0不配地址.
一、pppoe-server的配置
1、pppoe-server 配置地址池
[pppoe-server]ip pool pokes #创建名为pokes的地址池,名字可以随便起,后面要调用
Info: It's successful to create an IP address pool.
[pppoe-server-ip-pool-pokes]network 10.1.12.0 mask 24 #地址池为10.1.12.0/24
[pppoe-server-ip-pool-pokes]dis th
[V200R003C00]
#
ip pool pokes
network 10.1.12.0 mask 255.255.255.0
#
return
[pppoe-server-ip-pool-pokes]q
2、配置虚拟口关联地址池
配置虚拟口关联地址池,即创建Virtual-Template 1模版。
[pppoe-server]interface Virtual-Template 1 #创建虚拟接口1
[pppoe-server-Virtual-Template1]ip add 10.1.12.2 24 #虚拟接口1的地址
[pppoe-server-Virtual-Template1]ppp authentication-mode chap #认证类型
[pppoe-server-Virtual-Template1]remote address pool pokes #客户端的地址池pokes
[pppoe-server-Virtual-Template1]dis th
interface Virtual-Template1
ppp authentication-mode chap
remote address pool pokes
ip address 10.1.12.2 255.255.255.0
[pppoe-server]int g0/0/0
[pppoe-server-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1 #将虚拟接口1关联到g0/0/0接口
[pppoe-server-GigabitEthernet0/0/0]dis th
[V200R003C00]
#
interface GigabitEthernet0/0/0
pppoe-server bind Virtual-Template 1
#
return
[pppoe-server-GigabitEthernet0/0/0]
3、创建pppoe拨号的账号
按理我们应该创建pppoe拨号的账号。
这里为了演示拨号失败,我们这里先不新建账号,后面再新建。
二、pppoe-client的配置
[pppoe-client]dialer-rule
[pppoe-client-dialer-rule]dialer-rule 1 ?
acl Permit or deny based on access-list
ip Ip
ipv6 Ipv6
[pppoe-client-dialer-rule]dialer-rule 1