HCIA-PPPOE原理与配置

PPPOE原理与配置

实验拓扑图

实现步骤

家庭网关 AR201

  • E0/0/0-7为LAN口(二层接口)
  • E0/0/8为WAN口(三层接口)
javascript 复制代码
sysname GW
//开启设备DHCP
dhcp enable
//配置ACL 默认允许所有
acl number 2000  
 rule 5 permit 
//配置PC网关,自动分配IP地址。
interface Vlanif1
 ip address 192.168.110.1 255.255.255.0 
 dhcp select interface
//使用easy-ip,wan口自动获取IP地址
interface Ethernet0/0/8
 nat outbound 2000
 ip address dhcp-alloc

PPPOE客户端( ISP光猫)

javascript 复制代码
sysname ISPModem
//开启设备DHCP
dhcp enable
//配置ACL 默认允许所有
acl number 2000  
 rule 5 permit 
//配置PPPOE客户端
interface Dialer1 	//创建拨号接口
 link-protocol ppp	//使用PPP协议
 ppp chap user wml	//用户名
 ppp chap password cipher wml	//密码
 ip address ppp-negotiate	//PPP协商地址
 dialer user wml	//启用拨号功能,名称wml
 dialer bundle 100	//绑定拨号ID为100
 nat outbound 2000	//在拨号接口上启用easy-IP
//网络侧物理接口关联拨号ID100的接口
interface GigabitEthernet0/0/0
 pppoe-client dial-bundle-number 100 
//用户侧物理接口启用DHCP
interface GigabitEthernet0/0/1
 ip address 192.168.0.1 255.255.255.0     
 dhcp select interface
//配置默认路由
ip route-static 0.0.0.0 0.0.0.0 Dialer1

查看有没有获取到正确的IP地址

PPPOE服务器(ISP路由器)

javascript 复制代码
sysname ISP
//创建地址池,名称为PPPOE
ip pool PPPOE
 gateway-list 100.1.1.1 
 network 100.1.1.0 mask 255.255.255.0 
//配置AAA
aaa 
 domain wml 
 local-user wml password cipher wml
 local-user wml service-type ppp
//配置PPPOE服务端
interface Virtual-Template0 	 //创建虚拟面板
 ppp authentication-mode chap 	//启用chap认证
 remote address pool PPPOE	//分配远端地址
 ip address 100.1.1.1 255.255.255.0 
//物理接口关联虚拟面板
interface GigabitEthernet0/0/0
 pppoe-server bind Virtual-Template 0
//配置环回口IP地址
interface LoopBack0
 ip address 114.114.114.114 255.255.255.255 
相关推荐
大今野13 小时前
第 17 章 IP 编址与子网划分
网络·网络协议·tcp/ip·专转本
同步天下-刘经理13 小时前
NTP授时服务器时间抖动根源深度解析
网络
feasibility.15 小时前
电脑一天重启3次、WiFi还消失:蓝屏0x9F背后,是MT7921网卡撞上Windows电源管理
服务器·网络·windows·wifi·电脑·网卡·驱动
顧棟15 小时前
INFINI Gateway 启动过程分析
服务器·网络·gateway
xbzb18 小时前
服务器与网络:从一台裸机到能联网跑服务(5 篇)
服务器·网络·ip·raid·blog.csdn.net·article
xurileidian19 小时前
第 21 篇 · 边玩边学Python · if elif else 与缩进归属
java·服务器·网络
FlightYe1 天前
音视频修炼之容器与协议(七):HTTP-MP4 / HTTP-FLV
linux·网络·网络协议·http·ffmpeg·音视频
jipinxiaofeihua1 天前
(文章8) 05章-C++泛型编程(下)
linux·运维·网络
回眸&啤酒鸭1 天前
【回眸】AI 大模型驱动 Tessy 单元测试集成效果全景展示
网络·人工智能·单元测试