配置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查看用户所属的域名显示信息 。
推荐阅读
-
-
文艺圈|蓝盈莹大学旧照曝光,长发齐刘海气质清纯,侧脸不凸嘴比现在好看
-
-
-
上市公司|A股年内三成罚单指向内幕交易 避损型违规呈现“三新特征”
-
-
力争人人有技能家家有收入!四川凉山造血式扶贫成效显著
-
祯妹美丽新娱乐|知道这钱如何拿走吗?说出来你都不一定信!,你双色球中奖500万
-
『第一纺织网』妙计助经销商过难关,去年存货超44亿的安踏一季度业绩降幅超20%
-
陈若仪|林志颖娇妻晒露腰照,腹部扁平瘦成皮包骨,看不出生过三个儿子
-
-
食品安全|16万人观看线上直播 无锡新吴区带市民一起“查”食品安全
-
清淡|天暖了,教您几道清淡可口的家常菜,美味简单实惠,香到流口水
-
-
-
有手就行|S10出问题了!因为骂观众被禁赛,在LPL还是第一次
-
#天竺葵#养了3年天竺葵,总结了它的3个爱好,春天阳台变花园
-
-
火车从广州到海南省,到底是怎么过海的?看完长见识了
-
中国气象爱好者|洛杉矶逼近50度!权威预报:马上降几十度,超强热高压袭击美国