171
# Configure domain
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.
[SwitchB] domain default enable dm1
4.
Enable portal authentication on the interface connecting the host:
# Configure the portal server as needed.
[SwitchB] portal server newpt ip 192.168.0.111 key simple portal port 50100 url
http://192.168.0.111:8080/portal
# Enable portal authentication on the interface connecting the host.
[SwitchB] interface vlan-interface 10
[SwitchB–Vlan-interface10] 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.
[SwitchA–Vlan-interface10] portal nas-ip 9.9.1.1
5.
Configure portal stateful failover:
# Assign interface VLAN-interface 10 to portal group 1.
[SwitchB–Vlan-interface10] portal backup-group 1
[SwitchB–Vlan-interface10] quit
# Set the ID of the device in the stateful failover mode to 2.
[SwitchB] nas device-id 2
# Specify the source IP address of outgoing RADIUS packets as 192.168.0.1, the virtual IP
address of VRRP group 2.
[SwitchB] radius nas-backup-ip 192.168.0.1
Make sure you have added the access device with IP address 192.168.0.1 on the RADIUS server.
6.
Configure stateful failure:
# Configure the VLAN for stateful failover as VLAN 8.
[SwitchB] dhbk vlan 8
# Enable stateful failover and configure it to support the symmetric path.
[SwitchB] dhbk enable backup-type symmetric-path
Verifying the configuration
# After user Host logs in through Switch A, display the user authentication information by using the
display portal user
command on Switch A and Switch B.
[SwitchA] display portal user all
Index:3
State:ONLINE
SubState:NONE
ACL:NONE
Work-mode: primary
VPN instance:NONE
MAC IP Vlan Interface
---------------------------------------------------------------------
000d-88f8-0eac 9.9.1.2 10 Vlan-interface10
Total 1 user(s) matched, 1 listed.
[SwitchB] display portal user all
Index:2