新版的HCL 模拟器无法使用命令:[H3C]interface dialer 1 创建拨号接口。
(0)
最佳答案
PPPOE server
1.增加PPPOE用户
local-user user1 class network
password simple pass1
service-type ppp
authorization-attribute user-role network-operator
2.配置域用户使用本地认证方案
domain name system
authentication ppp local
3.增加一个本地IP地址池(9个IP地址)
ip pool 1 1.1.1.2 1.1.1.10
4.配置虚拟模板参数
interface Virtual-Template1
ppp authentication-mode pap domain system
remote address pool 1
ip address 1.1.1.1 255.0.0.0
5.配置PPPOE参数
interface GigabitEthernet0/0
port link-mode route
combo enable copper
pppoe-server bind virtual-template 1
PPPOE client
1.拨号接口相关配置
dialer-group 1 rule ip permit
interface Dialer1
ppp pap local-user user1 password simple pass1
dialer bundle enable
dialer-group 1
dialer timer idle 0
ip address ppp-negotiate
2.配置PPPOE会话
interface GigabitEthernet0/0
port link-mode route
combo enable copper
pppoe-client dial-bundle-number 1
(0)
您好,这样配置的
[PPPOE]int Virtual-Template 1 //创建虚拟模板,调用域和地址池
[PPPOE-Virtual-Template1]ip address 192.168.10.1 255.255.255.0
[PPPOE-Virtual-Template1]ppp authentication-mode pap domain system
[PPPOE-Virtual-Template1]remote address pool weijianing
[PPPOE-Virtual-Template1]quit
[PPPOE]int gi 0/0
[PPPOE-GigabitEthernet0/0]pppoe-server bind virtual-template 1 //将PPPOE与虚拟模板绑定到物理接口
[PPPOE-GigabitEthernet0/0]quit
参考案例
(0)
暂无评论
您好,请知:
可以参考如下的配置案例在HCL模拟器部署PPPOE。
组网说明:
本案例采用H3C HCL模拟器来模拟PPPOE组网,由于模拟器的局限性,因此采用MSR3620路由器来模拟为PPPOE服务器,同时也作为出口设备,内网和外网在网络拓扑图已有了明确标识,内网终端通过PPPOE拨号连接到PPPOE服务器后再访问外网。
1、按照网络拓扑图正确配置IP地址
2、PPPOE设备作为出口设备,配置NAT及默认路由指向外网
3、PPPOE设备开启PPPOE功能,并做相应的配置用于内网设备通过PPPOE连接接入
4、内网设备通过PPPOE拨号后能PING通外网
PPPOE:
System View: return to User View with Ctrl+Z.
[H3C]sysname PPPOE
[PPPOE]acl basic 2000
[PPPOE-acl-ipv4-basic-2000]rule 0 permit source any
[PPPOE-acl-ipv4-basic-2000]quit
[PPPOE]int gi 0/1
[PPPOE-GigabitEthernet0/1]des
[PPPOE-GigabitEthernet0/1]ip address 202.1.100.2 30
[PPPOE-GigabitEthernet0/1]nat outbound 2000
[PPPOE-GigabitEthernet0/1]quit
[PPPOE]ip route-static 0.0.0.0 0.0.0.0 202.1.100.1
[PPPOE]
PPPOE拨号关键配置点:
[PPPOE]local-user weijianing class network //创建用户名、密码,赋予PPP登陆的权限
New local user added.
[PPPOE-luser-network-weijianing]password simple weijianing
[PPPOE-luser-network-weijianing]service-type ppp
[PPPOE-luser-network-weijianing]quit
[PPPOE]domain name system //配置域,验证方式为本地PPP认证
[PPPOE-isp-system]authentication ppp local
[PPPOE-isp-system]quit
[PPPOE]ip pool weijianing 192.168.10.2 192.168.10.100 //创建地址池,用于PPPOE客户端拨号的IP地址分配
[PPPOE]int Virtual-Template 1 //创建虚拟模板,调用域和地址池
[PPPOE-Virtual-Template1]ip address 192.168.10.1 255.255.255.0
[PPPOE-Virtual-Template1]ppp authentication-mode pap domain system
[PPPOE-Virtual-Template1]remote address pool weijianing
[PPPOE-Virtual-Template1]quit
[PPPOE]int gi 0/0
[PPPOE-GigabitEthernet0/0]pppoe-server bind virtual-template 1 //将PPPOE与虚拟模板绑定到物理接口
[PPPOE-GigabitEthernet0/0]quit
ISP:
System View: return to User View with Ctrl+Z.
[H3C]sysname ISP
[ISP]int gi 0/1
[ISP-GigabitEthernet0/1]des
[ISP-GigabitEthernet0/1]ip address 202.1.100.1 30
[ISP-GigabitEthernet0/1]quit
[ISP]int gi 0/0
[ISP-GigabitEthernet0/0]ip address 202.103.224.254 24
[ISP-GigabitEthernet0/0]quit
测试:
内网终端设置宽带连接:
本物理机是windows 7 32位的操作系统,打开“网络和共享中心”,点击左边的“更改适配器设置”:
打开宽带连接,输入用户名,密码,点击“连接”
PPPOE宽带拨号成功:
外网终端填写IP地址,内网终端PING测试:
内网终端PING外网终端:
..
查看PPPOE的会话信息:
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论