35-本地Portal认证基于SSID绑定认证页面典型配置举例

时间:2019-05-13 04:24:31下载本文作者:会员上传
简介:写写帮文库小编为你整理了多篇相关的《35-本地Portal认证基于SSID绑定认证页面典型配置举例》,但愿对你工作学习有帮助,当然你在写写帮文库还可以找到更多《35-本地Portal认证基于SSID绑定认证页面典型配置举例》。

第一篇:35-本地Portal认证基于SSID绑定认证页面典型配置举例

本地Portal认证基于SSID绑定认证页面典型配置举例

Copyright © 2014 杭州华三通信技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。

目 录 简介 ······························································································································· 1 2 配置前提 ························································································································· 1 3 配置举例 ························································································································· 1

3.1 组网需求 ······················································································································ 1 3.2 配置思路 ······················································································································ 1 3.3 配置注意事项 ················································································································ 2 3.4 配置步骤 ······················································································································ 2

3.4.1 AC的配置 ··········································································································· 2 3.4.2 Switch的配置 ······································································································ 4 3.4.3 RADIUS server的配置 ··························································································· 5 3.5 验证配置 ······················································································································ 8 3.6 配置文件 ······················································································································ 9 相关资料 ······················································································································· 11

i 1 简介

本文档介绍本地Portal认证基于SSID绑定认证页面的典型配置举例。配置前提

本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解AAA、WLAN无线接入、Portal认证特性。配置举例

3.1 组网需求

如图1所示,RADIUS服务器作为认证/计费服务器,Switch作为DHCP服务器为AP和Client分配IP地址。要求通过基于SSID绑定本地Portal认证页面的功能,实现:

  当无线客户端通过名为service1的SSID接入网络时,Portal认证推出自定义的认证页面; 当无线客户端通过名为service2的SSID接入网络时,Portal认证推出的是系统默认的认证页面。

图1 本地Portal认证基于SSID绑定认证页面组网图

RADIUS server8.1.1.5/24SSID:service1Vlan-int100188.10.0.6/16Vlan-int300188.30.0.6/16Vlan-int100188.10.0.2/16Client 1AC/Portal serverSwitch/DHCP serverAPSSID:service2Client 2

3.2 配置思路

为了使无线客户端从service1接入时推出自定义认证页面,需编辑自定义认证页面并上传至AC。3.3 配置注意事项

配置AP的序列号时请确保该序列号与AP唯一对应,AP的序列号可以通过AP设备背面的标签获取。

3.4 配置步骤

3.4.1 AC的配置

(1)配置AC的接口

# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AC将使用该接口的IP地址与AP建立LWAPP隧道。

system-view [AC] vlan 100 [AC-vlan100] quit [AC] interface vlan-interface 100 [AC-Vlan-interface100] ip address 188.10.0.6 16 [AC-Vlan-interface100] quit # 创建VLAN 200作为ESS口的缺省VLAN。

[AC] vlan 200 [AC-vlan200] quit # 创建VLAN 300作为Client接入的业务VLAN,并配置其接口IP地址。

[AC] vlan 300 [AC-vlan300] quit [AC] interface vlan-interface 300 [AC-Vlan-interface300] ip address 188.30.0.6 16 [AC-Vlan-interface300] quit # 配置AC连接Switch的GigabitEthernet1/0/1接口的属性为trunk,并允许VLAN 100、VLAN 200和VLAN 300通过。

[AC] interface GigabitEthernet1/0/1 [AC-GigabitEthernet1/0/1] port link-type trunk [AC-GigabitEthernet1/0/1] port trunk permit vlan 100 200 300 [AC-GigabitEthernet1/0/1] quit(2)配置认证策略和认证域

# 在AC上创建RADIUS方案office并进入其视图。

[AC] radius scheme office # 配置RADIUS方案的主认证服务器及其通信密钥。

[AC-radius-office] primary authentication 8.1.1.5 [AC-radius-office] key authentication 123456 # 配置发送给RADIUS服务器的用户名不携带ISP域名。

[AC-radius-office] user-name-format without-domain [AC-radius-office] quit # 配置发送RADIUS报文的源IP地址为188.10.0.6。

[AC] radius nas-ip 188.10.0.6 # 创建并进入名字为office的ISP域视图。

[AC] domain office # 为Portal用户配置AAA认证方法为RADIUS认证/授权方案office,不计费。

[AC-isp-office] authentication portal radius-scheme office [AC-isp-office] authorization portal radius-scheme office [AC-isp-office] accounting portal none(3)配置Portal # 配置Portal服务器:名称为office,IP地址为188.10.0.6。

[AC] portal server office ip 188.10.0.6 # 配置本地Portal服务器支持HTTP协议。

[AC] portal local-server http # 在用户所在的VLAN 300接口上使能Portal。

[AC] interface vlan-interface 300 [AC-Vlan-interface300] portal server office method direct # 指定Portal用户的认证域为office。

[AC-Vlan-interface300] portal domain office [AC-Vlan-interface300] quit(4)配置WLAN服务

# 创建接口WLAN-ESS 1,并设置端口的链路类型为Hybrid。

[AC] interface wlan-ess 1 [AC-WLAN-ESS1] port link-type hybrid # 配置当前Hybrid端口的PVID为VLAN 200,禁止VLAN 1通过并允许VLAN 200不带tag通过。

[AC-WLAN-ESS1] undo port hybrid vlan 1 [AC-WLAN-ESS1] port hybrid vlan 200 untagged [AC-WLAN-ESS1] port hybrid pvid vlan 200 [AC-WLAN-ESS1] mac-vlan enable [AC-WLAN-ESS1] quit # 创建接口WLAN-ESS 2,并设置端口的链路类型为Hybrid。

[AC] interface wlan-ess 2 [AC-WLAN-ESS2] port link-type hybrid # 配置当前Hybrid端口的PVID为VLAN 200,禁止VLAN 1通过并允许VLAN 200不带tag通过。

[AC-WLAN-ESS2] undo port hybrid vlan 1 [AC-WLAN-ESS2] port hybrid vlan 200 untagged [AC-WLAN-ESS2] port hybrid pvid vlan 200 [AC-WLAN-ESS2] mac-vlan enable [AC-WLAN-ESS2] quit # 配置WLAN服务模板1,SSID为service1,并将接口WLAN-ESS 1与该服务模板绑定,启用无线服务。

[AC] wlan service-template 1 clear [AC-wlan-st-1] ssid service1 [AC-wlan-st-1] bind wlan-ess 1 [AC-wlan-st-1] service-template enable [AC-wlan-st-1] quit # 配置WLAN服务模板2,SSID为service2,并将接口WLAN-ESS 2与该服务模板绑定,启用无线服务。

[AC] wlan service-template 2 clear [AC-wlan-st-2] ssid service2 [AC-wlan-st-2] bind wlan-ess 2 [AC-wlan-st-2] service-template enable [AC-wlan-st-2] quit # 创建AP的管理模板,名称为officeap,型号名称选择WA2620E-AGN,并配置AP的序列号。

[AC] wlan ap officeap model WA2620E-AGN [AC-wlan-ap-officeap] serial-id 21023529G007C000020 # 进入radio 2射频视图。

[AC-wlan-ap-officeap] radio 2 # 将服务模板1和2绑定到AP的Radio 2口,配置绑定到Radio 2口的VLAN为VLAN 300,并使能Radio 2。

[AC-wlan-ap-officeap-radio-2] service-template 1 vlan-id 300 [AC-wlan-ap-officeap-radio-2] service-template 2 vlan-id 300 [AC-wlan-ap-officeap-radio-2] radio enable [AC-wlan-ap-officeap-radio-2] quit [AC-wlan-ap-officeap] quit(5)将自定义认证页面文件上传至AC # 通过FTP将本地的自定义认证页面文件ssid1.zip上传至AC(过程略),并用dir *.zip命令查看上传完的文件。

dir *.zip Directory of cfa0:/ 0-rw-66127 Nov 27 2013 10:39:08 ssid1.zip 1020068 KB total(502420 KB free)File system type of cfa0: FAT32(6)配置SSID绑定自定义页面文件

# 将SSID:service 1与页面文件ssid1.zip绑定。

system-view [AC] portal local-server bind ssid service1 file ssid1.zip 3.4.2 Switch的配置

# 创建VLAN 100和VLAN 300,其中VLAN 100用于转发AC和AP间LWAPP隧道内的流量,VLAN 300为无线用户接入的VLAN。

system-view [Switch] vlan 100 [Switch-vlan100] quit [Switch] vlan 300 [Switch-vlan300] quit # 配置Switch与AC相连的GigabitEthernet1/0/1接口的属性为trunk,当前trunk口的PVID为100,允许VLAN 100通过。

[Switch] interface GigabitEthernet1/0/1 [Switch-GigabitEthernet1/0/1] port link-type trunk [Switch-GigabitEthernet1/0/1] port trunk permit vlan 100 [Switch-GigabitEthernet1/0/1] port trunk pvid vlan 100 [Switch-GigabitEthernet1/0/1] quit # 配置Switch与AP相连的GigabitEthernet1/0/2接口属性为access,并允许VLAN 100通过。

[Switch] interface GigabitEthernet1/0/2 [Switch-GigabitEthernet1/0/2] port link-type access [Switch-GigabitEthernet1/0/2] port access vlan 100 # 使能PoE功能。

[Switch-GigabitEthernet1/0/2] poe enable [Switch-GigabitEthernet1/0/2] quit # 配置Switch使能DHCP服务。

[Switch] dhcp enable # 创建名为vlan100的DHCP地址池,配置地址池范围为188.10.0.2~188.10.0.5,网关地址为188.10.0.6,为AP分配IP地址。

[Switch] dhcp server ip-pool vlan100 extended [Switch-dhcp-pool-vlan100] network ip range 188.10.0.2 188.10.0.5 [Switch-dhcp-pool-vlan100] network mask 255.255.255.0 [Switch-dhcp-pool-vlan100] gateway-list 188.10.0.6 [Switch-dhcp-pool-vlan100] quit # 创建名为vlan300的DHCP地址池,配置地址池范围为188.30.0.2~188.30.0.5,网关地址为188.30.0.6,为Client分配IP地址。

[Switch] dhcp server ip-pool vlan300 extended [Switch-dhcp-pool-vlan300] network ip range 188.30.0.2 188.30.0.5 [Switch-dhcp-pool-vlan300] network mask 255.255.255.0 [Switch-dhcp-pool-vlan300] gateway-list 188.30.0.6 [Switch-dhcp-pool-vlan300] quit 3.4.3 RADIUS server的配置

下面以iMC为例(使用iMC版本为:iMC PLAT 7.0(E0202)、iMC UAM 7.0(E0202),说明RADIUS server的基本配置。# 增加接入设备

登录进入iMC管理平台,选择“用户”页签,单击导航树中的[接入策略管理/接入设备管理/接入设备配置]菜单项,单击“增加”按钮,进入“增加接入设备”页面,单击<手工增加>按钮,进入“手工增加接入设备”页面。

   填写起始IP地址为188.10.0.6,该IP地址为AC上配置的radius scheme视图下的nas-ip地址。

单击<确定>按钮完成操作。

在“接入配置”页面配置共享密钥为123456,该共享密钥与AC上配置Radius服务器时的密钥一致。  其他配置采用页面默认配置即可。单击<确定>按钮完成操作。

# 配置接入策略

选择“用户”页签,单击导航树中的[接入策略管理/接入策略管理]菜单项,点击<增加>按钮,进入“增加接入策略”页面。

   接入策略名填写portal。该名称可以自行定义。其他配置采用页面默认配置即可。单击<确定>按钮完成操作。

# 配置接入服务

选择“用户”页签,单击导航树中的[接入策略管理/接入服务管理]菜单项,点击<增加>按钮,进入“增加接入服务”页面。

    服务名填写portal。该名称可以自行定义。

缺省接入策略选择“portal”。即上一步配置的接入策略名。其他配置采用页面默认配置即可。单击<确定>按钮完成操作。

# 配置接入用户

选择“用户”页签,单击导航树中的[增加用户]菜单项,进入“增加用户”页面。

    用户姓名填写Test。该名称可以自行定义。证件号码填写123。该名称可以自行定义。其他配置采用页面默认配置即可。单击<确定>按钮完成操作。

添加用户完成后,会跳转到“增加用户结果页面”,单击[增加用户账号]进入“增加接入用户”视图。

在“增加接入用户”视图下。

     账户名填写test。该名称可以自行定义。密码填写123456。该名称可以自行定义。接入服务选择上一步配置的接入服务“portal”。其他配置采用页面默认配置即可。单击<确定>按钮完成操作。

3.5 验证配置

# Client 1通过无线服务service 1上线后,进行Portal认证时,弹出自定义的认证页面。图2 自定义认证页面

# Client 2通过无线服务service 2上线后,由于没有配置其绑定的自定义认证页面,所以客户端进行Portal认证时推出的是系统默认的认证页面。图3 系统默认认证页面

3.6 配置文件

# radius nas-ip 188.10.0.6 # portal server office ip 188.10.0.6 portal local-server http portal local-server bind ssid service1 file ssid1.zip # vlan 100 # vlan 200 # vlan 300 # radius scheme office primary authentication 8.1.1.5 key authentication cipher $c$3$lRA4cjtdvxqsRUuMR42kkQWa3b9Yw9Hk7A== user-name-format without-domain AC: # domain office authentication portal radius-scheme office authorization portal radius-scheme office accounting portal none access-limit disable state active idle-cut disable self-service-url disable # wlan service-template 1 clear ssid service1 bind WLAN-ESS 1 service-template enable # wlan service-template 2 clear ssid service2 bind WLAN-ESS 2 service-template enable # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan 100 200 300 # interface Vlan-interface100 ip address 188.10.0.6 255.255.0.0 # interface Vlan-interface300 ip address 188.30.0.6 255.255.0.0 portal server office method direct portal domain office # interface WLAN-ESS1 port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 200 untagged port hybrid pvid vlan 200 mac-vlan enable # interface WLAN-ESS2 port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 200 untagged port hybrid pvid vlan 200 mac-vlan enable # wlan ap officeap model WA2620E-AGN id 1 serial-id 21023529G007C000020 radio 1 radio 2 service-template 1 vlan-id 300 service-template 2 vlan-id 300 radio enable # 

# Switch:

vlan 100 # vlan 300 # dhcp server ip-pool vlan100 extended network ip range 188.10.0.2 188.10.0.5 network mask 255.255.255.0 gateway-list 188.10.0.6 # dhcp server ip-pool vlan300 extended network ip range 188.30.0.2 188.30.0.5 network mask 255.255.255.0 gateway-list 188.30.0.6 # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 100 port trunk pvid vlan 100 # interface GigabitEthernet1/0/2 port link-mode bridge port access vlan 100 poe enable # 4 相关资料

    《H3C WX系列无线控制器产品配置指导》“WLAN配置指导”。《H3C WX系列无线控制器产品命令参考》“WLAN命令参考”。《H3C WX系列无线控制器产品配置指导》“安全配置指导”。《H3C WX系列无线控制器产品命令参考》“安全命令参考”。

第二篇:45-基于SSID的Web界面访问控制典型配置举例

基于SSID的Web界面访问控制典型配置举例

Copyright © 2014 杭州华三通信技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。

目 录 简介 ······························································································································· 1 2 配置前提 ························································································································· 1 3 配置举例 ························································································································· 1

3.1 组网需求 ······················································································································ 1 3.2 配置思路 ······················································································································ 1 3.3 配置注意事项 ················································································································ 1 3.4 配置步骤 ······················································································································ 2

3.4.1 AC的配置 ··········································································································· 2 3.4.2 Switch的配置 ······································································································ 4 3.5 验证配置 ······················································································································ 4 3.6 配置文件 ······················································································································ 6 相关资料 ························································································································· 7

i 1 简介

本文档介绍基于SSID的Web界面访问控制的典型配置举例。配置前提

本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解WLAN接入,WLAN ACL和HTTP特性。配置举例

3.1 组网需求

如图1所示,AC通过Switch与AP相连,DHCP服务器为AP和Client分配IP地址。需要控制不同SSID接入的无线客户端通过Web页面对AC的访问权限,具体实现如下:

  当Client通过名为“service2”的SSID接入无线网络时,可以通过Web访问AC。而当Client通过名为“service1”的SSID接入时,不能通过Web访问AC。

图1 基于SSID的Web界面访问控制组网图

DHCP serverGE1/0/3Vlan-int100192.168.1.1/24Vlan-int300192.168.3.1/24GE1/0/1GE1/0/2ACSwitchAPClient

3.2 配置思路

为了使关联SSID为service2的Client能够通过Web访问AC,需要在AC上配置WLAN ACL,仅允许关联SSID为service2的Client报文通过,并将HTTP服务与WLAN ACL相关联。

3.3 配置注意事项

 WLAN ACL中有默认规则rule 0 deny,需要执行undo rule 0命令删除该默认规则。 配置AP的序列号时请确保该序列号与AP唯一对应,AP的序列号可以通过AP设备背面的标签获取。

3.4 配置步骤

3.4.1 AC的配置

(1)配置AC接口

# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AC将使用该接口的IP地址与AP建立LWAPP隧道。

system-view [AC] vlan 100 [AC-vlan100] quit [AC] interface vlan-interface 100 [AC-Vlan-interface100] ip address 192.168.1.1 24 [AC-Vlan-interface100] quit # 创建VLAN 200作为WLAN-ESS接口的缺省VLAN。

[AC] vlan 200 [AC-vlan200] quit # 创建VLAN 300作为Client接入的业务VLAN,配置VLAN 300的接口IP地址。

[AC] vlan 300 [AC-vlan300] quit [AC] interface vlan-interface 300 [AC-Vlan-interface300] ip address 192.168.3.1 24 [AC-Vlan-interface300] quit # 配置GigabitEthernet1/0/1为Trunk类型,禁止VLAN 1报文通过,允许VLAN 100和VLAN 300通过,配置PVID为100。

[AC] interface gigabitethernet 1/0/1 [AC-GigabitEthernet1/0/1] port link-type trunk [AC-GigabitEthernet1/0/1] undo port trunk permit vlan 1 [AC-GigabitEthernet1/0/1] port trunk permit vlan 100 300 [AC-GigabitEthernet1/0/1] port trunk pvid vlan 100 [AC-GigabitEthernet1/0/1] quit # 创建WLAN-ESS1接口,并设置端口的链路类型为Hybrid类型。

[AC] interface wlan-ess 1 [AC-WLAN-ESS1] port link-type hybrid # 配置当前Hybrid端口的PVID为VLAN 200,禁止VLAN 1通过并允许VLAN 200不带tag通过。

[AC-WLAN-ESS1] undo port hybrid vlan 1 [AC-WLAN-ESS1] port hybrid vlan 200 untagged [AC-WLAN-ESS1] port hybrid pvid vlan 200 # 使能MAC VLAN功能。

[AC-WLAN-ESS1] mac-vlan enable [AC-WLAN-ESS1] quit # 创建WLAN-ESS2接口,并设置端口的链路类型为Hybrid类型。[AC] interface wlan-ess 2 [AC-WLAN-ESS2] port link-type hybrid # 配置当前Hybrid端口的PVID为VLAN 200,禁止VLAN 1通过并允许VLAN 200不带tag通过。

[AC-WLAN-ESS2] undo port hybrid vlan 1 [AC-WLAN-ESS2] port hybrid vlan 200 untagged [AC-WLAN-ESS2] port hybrid pvid vlan 200 # 使能MAC VLAN功能。

[AC-WLAN-ESS2] mac-vlan enable [AC-WLAN-ESS2] quit(2)配置无线服务

# 创建clear类型的服务模板1。

[AC] wlan service-template 1 clear # 设置当前服务模板的SSID为service1。

[AC-wlan-st-1] ssid service1 # 将WLAN-ESS1接口绑定到服务模板1。

[AC-wlan-st-1] bind wlan-ess 1 # 启用无线服务。

[AC-wlan-st-1] service-template enable [AC-wlan-st-1] quit # 创建clear类型的服务模板2。

[AC] wlan service-template 2 clear # 设置当前服务模板的SSID为service2。

[AC-wlan-st-2] ssid service2 # 将WLAN-ESS2接口绑定到服务模板2。

[AC-wlan-st-2] bind wlan-ess 2 # 启用无线服务。

[AC-wlan-st-2] service-template enable [AC-wlan-st-2] quit(3)配置射频接口并绑定服务模板

# 创建AP的管理模板,名称为officeap,型号选择WA2620E-AGN。

[AC] wlan ap officeap model WA2620E-AGN # 设置AP的序列号为210235A29G007C000020。

[AC-wlan-ap-officeap] serial-id 210235A29G007C000020 # 进入radio 2射频视图。

[AC-wlan-ap-officeap] radio 2 # 将在AC上配置的clear类型的服务模板1和服务模板2与射频2进行关联,设置绑定到射频接口的VLAN编号为VLAN 300。

[AC-wlan-ap-officeap-radio-2] service-template 1 vlan-id 300 [AC-wlan-ap-officeap-radio-2] service-template 2 vlan-id 300 # 使能AP的radio 2。

[AC-wlan-ap-officeap-radio-2] radio enable [AC-wlan-ap-officeap-radio-2] quit(4)配置WLAN ACL # 创建WLAN ACL 199,并删除ACL 199中的默认规则0。

[AC] acl number 199 [AC-acl-wlan-199] undo rule 0 # 配置规则1:允许SSID名称为service2的WLAN用户报文通过。

[AC-acl-wlan-199] rule 1 permit ssid service2 [AC-acl-wlan-199] quit # 将HTTP服务与ACL 199关联。

[AC] ip http acl 199 3.4.2 Switch的配置

# 创建VLAN 100和VLAN 300,其中VLAN 100用于转发AC和AP间LWAPP隧道内的流量,VLAN 300为无线客户端接入的VLAN。

system-view [Switch] vlan 100 [Switch-vlan100] quit [Switch] vlan 300 [Switch-vlan300] quit # 配置Switch的GigabitEthernet1/0/1接口属性Trunk,禁止VLAN 1报文通过,允许VLAN 100和VLAN 300通过,配置PVID为100。

[Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] port link-type trunk [Switch-GigabitEthernet1/0/1] undo port trunk permit vlan 1 [Switch-GigabitEthernet1/0/1] port trunk permit vlan 100 300 [Switch-GigabitEthernet1/0/1] port trunk pvid vlan 100 [Switch-GigabitEthernet1/0/1] quit # 配置Switch与AP相连的GigabitEthernet1/0/2接口属性为Access,并允许VLAN 100通过。

[Switch] interface gigabitethernet 1/0/2 [Switch-GigabitEthernet1/0/2] port link-type access [Switch-GigabitEthernet1/0/2] port access vlan 100 # 配置Switch与AP相连的GigabitEthernet1/0/2接口使能PoE功能。

[Switch-GigabitEthernet1/0/2] poe enable [Switch-GigabitEthernet1/0/2] quit # 配置Switch与DHCP服务器相连的GigabitEthernet1/0/3接口属性为Access,并允许VLAN 100通过。

[Switch] interface gigabitethernet 1/0/3 [Switch-GigabitEthernet1/0/3] port link-type access [Switch-GigabitEthernet1/0/3] port access vlan 100 [Switch-GigabitEthernet1/0/3] quit 3.5 验证配置

# 无线客户端关联SSID service2后,可以通过Web正常访问AC。

# 无线客户端关联SSID service1后,无法通过Web访问AC。3.6 配置文件

 AC:

# ip http acl 199 # acl number 199 rule 1 permit ssid service2 # vlan 100 # vlan 200 # vlan 300 # wlan service-template 1 clear ssid service1 bind WLAN-ESS 1 service-template enable # wlan service-template 2 clear ssid service2 bind WLAN-ESS 2 service-template enable # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan 100 300 undo port trunk permit vlan 1 port trunk pvid vlan 100 # interface Vlan-interface100 ip address 192.168.1.1 255.255.255.0 # interface Vlan-interface300 ip address 192.168.3.1 255.255.255.0 # interface WLAN-ESS1 port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 200 untagged port hybrid pvid vlan 200 mac-vlan enable # interface WLAN-ESS2 port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 200 untagged port hybrid pvid vlan 200 mac-vlan enable # wlan ap officeap model WA2620E-AGN id 1 serial-id 210235A29G007C000020 radio 1 radio 2 service-template 1 vlan-id 300 service-template 2 vlan-id 300 radio enable # 

# Switch:

vlan 100 # vlan 300 # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan 100 300 undo port trunk permit vlan 1 port trunk pvid vlan 100 # interface GigabitEthernet1/0/2 port link-type access port access vlan 100 poe enable # interface GigabitEthernet1/0/3 port link-type access port access vlan 100 # 4 相关资料

      《H3C WX系列无线控制器产品配置指导》“基础配置指导”。《H3C WX系列无线控制器产品命令参考》“基础配置命令参考”。《H3C WX系列无线控制器产品配置指导》“ACL和QoS配置指导”。《H3C WX系列无线控制器产品命令参考》“ACL和QoS命令参考”。《H3C WX系列无线控制器产品配置指导》“WLAN配置指导”。《H3C WX系列无线控制器产品命令参考》“WLAN命令参考”。

第三篇:AR典型配置案例 RADIUS认证登录其他设备的示例

www.xiexiebang.com

配置设备作为客户端,采用RADIUS认证登录其他设备的示例

规格

适用于所有版本、所有形态的AR路由器。组网需求

用户使用STelnet方式连接SSH服务器(即AR设备),要求在SSH认证过程中,配置SSH服务器支持SSH客户端通过RADIUS服务器进行远端认证。

RADIUS服务器认证该用户,将认证结果返回给SSH服务器。SSH服务器根据认证结果决定是否允许SSH客户端建立连接。组网图

图1 配置SSH支持RADIUS认证组网图

操作步骤

1.在SSH服务器端生成本地密钥对

system-view

[Huawei] sysname ssh server

[ssh server] rsa local-key-pair create The key name will be: Host The range of public key size is(512 ~ 2048).NOTES: If the key modulus is greater than 512, It will take a few minutes.Input the bits in the modulus[default = 2048]: 2048 Generating keys..........++++++++++++..........++++++++++++...................................++++++++......++++++++ 2.SSH Server的不同版本的配置存在差异,请关注对应版本的配置 3.# 4.user-interface vty 0 4 5.authentication-mode aaa //指定配置VTY0~4用户的验证方式为AAA 6.protocol inbound ssh //配置VTY支持SSH协议 www.xiexiebang.com

7.8.9.# aaa local-user ssh1@ssh.com password cipher %@%@0qu:lj

# SSH客户端采用RADIUS认证连接SSH服务器。

system-view

[ssh client] stelnet 10.164.39.222

Please input the username: ssh1@ssh.com Trying 10.164.39.222...Press CTRL+K to abort Connected to 10.164.39.222...The server is not authenticated.Do you continue to access it?(Y/N):y Save the server's public key? [Y/N] :y The server's public key will be saved with the name: 10.164.39.222.Please wait...www.xiexiebang.com

Enter password: 输入密码huawei,显示登录成功信息如下:

Info: The max number of VTY users is 10, and the current number of VTY users on line is 2.# 在SSH服务器端执行display radius-server configuration命令和display ssh server session命令,可以查看到SSH服务器端关于RADIUS服务器的配置,并且看到STelnet客户端采用RADIUS认证已经成功连接到SSH服务器。

[ssh server] display ssh server session

------Conn Ver Encry State Auth-type Username------VTY 0 2.0 AES run password ssh1@ssh.com------配置注意事项

在RADIUS服务器端添加对应客户端的用户名。 在RADIUS服务器端指定SSH服务器的地址和密钥。 如果配置SSH客户端用户使用password验证,只需在SSH服务器端生成本地RSA密钥。如果配置SSH客户端用户使用RSA验证,则在SSH服务器端和客户端都需生成本地RSA密钥,并将客户端上产生的RSA公钥输入到服务器端。

下载35-本地Portal认证基于SSID绑定认证页面典型配置举例word格式文档
下载35-本地Portal认证基于SSID绑定认证页面典型配置举例.doc
将本文档下载到自己电脑,方便修改和收藏,请勿使用迅雷等下载。
点此处下载文档

文档为doc格式


声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:645879355@qq.com 进行举报,并提供相关证据,工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。

相关范文推荐