Configuration Guide WEB Authentication Configuration
31) Set the SNMP network management parameters between the access devices and authentication
server.
Ruijie(config)# snmp-server community web_auth_key
Ruijie(config)# snmp-server enable traps web-auth
Ruijie(config)# snmp-server host 192.168.3.1 inform version 2c web_auth_key
web-auth
Ruijie(config)# exit
32) On the access devices, enable web authentication for the Fa0/2 and Fa0/3 ports.
Ruijie(config)# interface range fa0/2-3
Ruijie(config-if-range)# web-auth port-control
Ruijie(config-if-range)# exit
33) On the access devices, configure the network resource range of free-authentication. Configure the
public server as the pass-through website.
Ruijie(config)# http redirect direct-site 192.168.5.1
Add the arp option if the ARP check function is enabled.
Ruijie(config)# http redirect direct-site 192.168.5.1 arp
34) If the ARP function is enabled, configure the IP address of the gateway as the network resource
range of free-authentication and add the arp option. This ensures that PCs can complete the DNS
and ARP query process before authentication.
On the access devices, configure the IP address of the gateway that is connected to PCs downstream as
the network resource range of free-authentication.
Ruijie(config)# http redirect direct-site 192.168.4.1 arp
35) On the access devices, configure the range of IP addresses of users for which authentication is not
required.
Ruijie(config)# web-auth direct-host 192.168.4.12
Add the arp option if the ARP check function is enabled.
Ruijie(config)# web-auth direct-host 192.168.4.12 arp
After the preceding configuration, PC1 will first be redirected to the web authentication server and can
access the Internet only after it passes authentication. PC2 can access the Internet without being
authenticated.
Verification
36) Query the configuration of HTTP redirection.
Ruijie# show http redirect
http redirect settings
server : 192.168.3.1