326
On Router B, configure a default route to subnet 192.168.0.0/24, setting the next hop as 20.20.20.1.
(Details not shown.)
Configuring portal server detection and portal user
information synchronization
Network requirements
As shown in Figure 105, a host is directly connected to a router (the access device) and must pass
portal authentication before it can access the Internet. A RADIUS server serves as the
authentication/accounting server.
Detailed requirements are as follows:
• The host is assigned with a public network IP address either manually or through DHCP. Before
passing portal authentication, the host can access only the portal server. After passing portal
authentication, the host can access the Internet.
• The access device (Router) can detect whether the portal server is reachable and send trap
messages upon state changes. When the portal server is unreachable due to, for example, a
connection failure, network device failure, or portal server failure, the access device can disable
portal authentication, allowing users to access the Internet without authentication.
• The access device can synchronize portal user information with the portal server periodically.
Figure 105 Network diagram
Configuration considerations
1. Configure the portal server and enable portal server heartbeat function and the portal user
heartbeat function.
2. Configure the RADIUS server to implement authentication and accounting.
3. Configure direct portal authentication on interface Ethernet 1/2, which is directly connected to
the host.
4. Configure the portal server detection function on the access device, so that the access device
can detect the status of the portal server by cooperating with the portal server heartbeat
function.
5. Configure the portal user information synchronization function, so that the access device can
synchronize portal user information with the portal server by cooperating with the portal user
heartbeat function.
Configuration prerequisites
• Configure IP addresses for the host, router, and servers as shown in Figure 105 and make sure
they can reach each other.
RouterHost
2.2.2.2/24
Gateway : 2.2.2.1/24
Eth1/2
2.2.2.1/24
Eth1/1
192.168.0.100/24
Portal server
192.168.0.111/24
RADIUS server
192.168.0.112/24