配置Web+PPPoE+静态混合接入示例
介绍Web+PPPoE+静态混合接入的配置示例 。
适用产品和版本
适用于V600R008C10及以后版本的NE40E/ME60系列产品 。
【教育行业NE-ME60路由器:配置Web+PPPoE+静态混合接入示例】组网需求
如图1-11所示,Web+PPPoE+静态混合接入组网需求为:
- Web用户正确上线,PC可以访问网络,在设备上能看到上线用户的详细信息,并且在RADIUS服务器上有用户的计费信息 。
- PPPoE用户正确上线,PC可以访问网络,在设备上能看到上线用户的详细信息,并且在RADIUS服务器上有用户的计费信息 。
- 静态用户正确上线,PC可以访问网络,在设备上能看到上线用户的详细信息,并且在RADIUS服务器上有用户的计费信息 。
图1-11 Web+PPPoE+静态混合接入配置举例组网图

文章插图
表1-23 网络规划数据

文章插图
配置思路
- 配置Web认证
- 配置PPPoE用户
- 配置静态用户
操作步骤
- 配置Web认证 。
# //配置RADIUS服务器相关信息 。radius-server group radius radius-server authentication 172.16.45.220 1812 weight 0 radius-server accounting 172.16.45.220 1813 weight 0radius-server shared-key Huawei#//配置地址池 。ip pool pool1 bas local gateway 10.0.0.1 255.255.255.0 section 0 10.0.0.2 10.0.0.200#//配置web服务器信息 。web-auth-server 192.168.10.2 port 50100 key simple huawei//配置认证前域相关信息 。user-group preweb #aaa http-redirect enable authentication-scheme none authentication-mode none # accounting-scheme none accounting-mode none # domain preweb authentication-scheme none accounting-scheme none ip-pool pool1user-group preweb web-server 192.168.10.2 web-server url http://192.168.10.2 ##//配置限制,限制认证前域用户的资源acl number 6000rule 5 permit ip source user-group preweb destination ip-address 127.0.0.1 0 rule 15 permit ip source ip-address 127.0.0.1 0 destination user-group preweb rule 20 permit ip source user-group preweb destination ip-address 192.168.10.2 0 rule 25 permit ip source ip-address 192.168.10.2 0 destination user-group preweb#acl number 6001rule 5 permit tcp source user-group preweb destination-port eq www rule 10 permit tcp source user-group preweb destination-port eq 8080#acl number 6002rule 5 permit ip source ip-address any destination user-group preweb rule 10 permit ip source user-group preweb destination ip-address any#traffic classifier web-deny operator orif-match acl 6002traffic classifier web-permit operator or if-match acl 6000traffic classifier preweb operator or if-match acl 6001#traffic behavior web-deny denytraffic behavior web-permittraffic behavior preweb http-redirect#traffic policy preweb share-mode//允许访问web服务器 classifier web-permit behavior web-permit //http触发重定向到web认证页面 classifier preweb behavior preweb //其余流量被deny classifier web-deny behavior web-deny #traffic-policy preweb inbound//配置认证域 。aaadomain jyc authentication-scheme radius accounting-scheme radius radius-server group radius portal-server 192.168.10.2 portal-server url http://192.168.10.2/portal/admin//配置认证接口 。interface GigabitEthernet0/1/1 bas # access-type layer2-subscriber default-domain pre-authentication preweb authentication jyc //若需要用户手动输入认证域,则不需要配配置认证域,即配置为access-type layer2-subscriber default-domain pre-authentication preweb authentication-method web ppp ##//配置用户限速 。qos-profile 1M car cir 1000 cbs 1000 green pass red discard#aaa domain jyc qos-profile 1M inbound qos-profile 1M outbound2. 配置PPPoE用户
//修改地址池,规避静态用户的IP 。ip pool pool1 bas local gateway 10.0.0.1 255.255.255.0 section 0 10.0.0.2 10.0.0.200 excluded-ip-address 10.0.0.101//增加PPPoE认证内容,增加arp触发内容interface GigabitEthernet0/1/1 bas authentication-method ppp webarp-trigger 3.配置静态用户
//增加aaa下默认用户名和密码获取方式 。aaa default-user-name include ip-address //静态用户默认用户名带点的IP地址 default-password cipher Root@123 //增加静态用户 。static-user 10.0.0.101 10.0.0.101 gateway 10.0.0.1 interface GigabitEthernet0/1/1 mac-address 2c27-d724-1649 domain-name jyc4.验证配置结果
- 执行命令display access-user domain preweb查看用户所属的域名显示信息 。
推荐阅读
-
-
-
中新经纬|司太立:爆炸厂区占公司营收近八成 预计停产不超3个月
-
过山车|半年销售费用36.8亿,利润增速过山车!步长制药成长能力欠佳?
-
-
-
安静的等待|演技号召力都在线的女星,赵丽颖孙俪实至名归
-
球谈江湖跌至3398元,三星AMOLED屏+5G+4000mAh+256GB,可惜大家不识货
-
-
和房东没有签合同,只有收条,交了房租后由于单位原因不用租房了,和房东要求退房租,他却不肯退,咋办
-
中金网▲日内关注各国经济数据,美元指数季度涨幅2.55%
-
周鹏|全明星场下故事!陶汉林换背景,周鹏有想法,胡明轩不想认输
-
『生活乐文』 老股民都难以抉择,当股票第一次高位顶背离后应该卖出股票吗?
-
『谁是被害者』2020年3部已播出的高分悬疑剧,你看了吗?
-
-
AMD|AMD为什么不一步到位,直接在APU上集成Rdna架构GPU?
-
爸爸嫌孩子做作业磨蹭失手打穿其鼓膜!辅导作业,你会打孩子吗?
-
郑爽|拥有“漫画腿”的郑爽为何很少穿裙子?看到她膝盖的那一刻,我懂了
-
2024年1月,部分退休人员养老金或将增加,看看你有没有份?
-
南方Plus客户端美军剑指俄罗斯:俄太空行为不可接受!,太空军事竞赛加速