华为HCIP-001:PPPOE配置模拟实验

本文是华为HCIP01课程中的PPPOE配置模拟实验,涵盖pppoe-server和client的配置,包括地址池、虚拟口关联、账号创建、认证用户设置,以及客户端验证和NAT配置。实验中通过逐步指导,展示如何实现PPPOE拨号认证及NAT转换,确保通信成功。
摘要由CSDN通过智能技术生成

华为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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值