XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
59-6
switch (config)#radius-server key 0 test
switch (config)#aaa group server radius radius_aaa_1
switch (config-sg-radius)# server 192.168.40.100
The configuration of global authentication:
Switch(config)#interface vlan 1
Switch(config-if-vlan1)#ip address 192.168.40.50 255.255.255.0
Switch(config)#free-resource 1 destination ipv4 192.168.40.99/32
Switch(config)# vlan-pool 1 2-10
Configure the portal function and portal server under the portal instance:
Switch (config)#captive-portal
Switch (config-cp)#enable
Switch(config-cp)# nas-ipv4 192.168.40.50
Switch(config-cp)# external portal-server server-name abc ipv4 192.168.40.99
Switch (config-cp)# configuration 1
Switch (config-cp-instance)#name helix4
Switch (config-cp-instance)#radius-auth-server abc99
Switch (config-cp-instance)# redirect attribute nas-ip enable
Switch (config-cp-instance)#redirect attribute nas-ip name kk
Switch (config-cp-instance)#ac-name helix4
Switch (config-cp-instance)#redirect url-head http://192.168.40.99/a70.htm
Switch (config-cp-instance) # portal-server ipv4 abc
Enable the portal function on the port:
Switch (config)# interface ethernet1/2
Switch (config-if-ethernet1/2)#portal enable configuration 1 vlan-pool 1
59.1.4 Captive Portal Authentication Troubleshooting
Encounter problems when using the redirection function, please check whether the
reasons are as follows:
Whether launched the captive portal function and opened the portal configuration s
witch. Both the captive portal and the portal configuration should be open; otherwis
e, the captive portal function will not work, the client also cannot be redirect to the
specified page.
The authentication server name of AAA module is same to the configured authentic
ation name of captive portal.
Whether the port which connects the pc and switch is enabled portal authentication