143
# Set the server type for the RADIUS scheme. When using the iMC server, you must set the server type to
extended
.
[Router-radius-rs1] server-type extended
# Specify the primary authentication server and primary accounting server, and configure the keys for
communication with the servers.
[Router-radius-rs1] primary authentication 192.168.0.112
[Router-radius-rs1] primary accounting 192.168.0.112
[Router-radius-rs1] key authentication radius
[Router-radius-rs1] key accounting radius
# Specify that the ISP domain name should not be included in the username sent to the RADIUS server.
[Router-radius-rs1] user-name-format without-domain
[Router-radius-rs1] quit
•
Configure an authentication domain.
# Create an ISP domain named
dm1
and enter its view.
[Router] domain dm1
# Configure AAA methods for the ISP domain.
[Router-isp-dm1] authentication portal radius-scheme rs1
[Router-isp-dm1] authorization portal radius-scheme rs1
[Router-isp-dm1] accounting portal radius-scheme rs1
[Router-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.
[Router] domain default enable dm1
•
Configure portal authentication.
# Configure the portal server as needed.
[Router] 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.
[Router] interface gigabitethernet 1/0/2
[Router–GigabitEthernet1/0/2] portal server newpt method direct
[Router–GigabitEthernet1/0/2] quit
Verification
After the above configuration, execute the following command to see whether the portal configuration
has taken effect:
[Router] display portal interface gigabitethernet 1/0/2
Interface portal configuration:
GigabitEthernet1/0/2: Portal running
Portal server: newpt
Portal backup-group: None
Authentication type: Direct
Authentication domain:
Authentication network:
address : 0.0.0.0 mask : 0.0.0.0