160
•
Configure a RADIUS scheme.
# Create RADIUS scheme
rs1
and enter its view.
[RouterA] radius scheme rs1
# Configure the server type for the RADIUS scheme. When using the iMC server, you must configure the
RADIUS server type as
extended
.
[RouterA-radius-rs1] server-type extended
# Specify the primary authentication server and primary accounting server, and configure the keys for
communication with the servers.
[RouterA-radius-rs1] primary authentication 192.168.0.111
[RouterA-radius-rs1] primary accounting 192.168.0.111
[RouterA-radius-rs1] key authentication expert
[RouterA-radius-rs1] key accounting expert
# Configure the access device to not carry the ISP domain name in the username sent to the RADIUS
server. (Optional. Configure the username format as needed.)
[RouterA-radius-rs1] user-name-format without-domain
[RouterA-radius-rs1] quit
•
Configure an authentication domain.
# Create ISP domain
dm1
and enter its view.
[RouterA] domain dm1
# Configure AAA methods for the ISP domain.
[RouterA-isp-dm1] authentication portal radius-scheme rs1
[RouterA-isp-dm1] authorization portal radius-scheme rs1
[RouterA-isp-dm1] accounting portal radius-scheme rs1
[RouterA-isp-dm1] quit
# Configure
dm1
as the default ISP domain for all users. Then, if a user enters a username without any
ISP domain at logon, the authentication and accounting methods of the default domain are used for the
user.
[RouterA] domain default enable dm1
•
Enable portal authentication on the interface connecting the host.
# Configure the portal server as needed.
[RouterA] portal server newpt ip 192.168.0.111 key portal port 50100 url
http://192.168.0.111:8080/portal
# Enable portal authentication on the interface connecting the host.
[RouterA] interface gigabitethernet 0/1
[RouterA–GigabitEthernet0/1] portal server newpt method layer3
# Specify the source IP address of outgoing portal packets as 9.9.1.1, the virtual IP address of VRRP
group 1.
[RouterA–GigabitEthernet0/1] portal nas-ip 9.9.1.1
•
Configure portal stateful failover.
# Assign interface Gigabitethernet 0/1 to portal group 1.
[RouterA–Gigabitethernet0/1] portal backup-group 1
[RouterA–Gigabitethernet0/1] quit
# Set the device ID for Router A in stateful failover mode to 1.