HP MSR2000/3000/4000 Router Series Fundamentals Configuration Guide
32
Configuration procedure
1. Configure the router:
# Assign an IP address to VLAN-interface 2, the interface connected to the Telnet user.
<Router> system-view
[Router] interface vlan-interface 2
[Router-Vlan-interface2] ip address 192.168.1.70 255.255.255.0
[Router-Vlan-interface2] quit
# Assign an IP address to VLAN-interface 3, the interface connected to the HWTACACS server.
[Router] interface vlan-interface 3
[Router-Vlan-interface3] ip address 10.1.1.2 255.255.255.0
[Router-Vlan-interface3] quit
# Enable Telnet server.
[Router] telnet server enable
# Enable scheme authentication on the user lines for Telnet users.
[Router] line vty 0 63
[Router-line-vty0-63] authentication-mode scheme
[Router-line-vty0-63] quit
# Enable remote-then-local authentication for temporary user role authorization.
[Router] super authentication-mode scheme local
# Create the HWTACACS scheme hwtac and enter its view.
[Router] hwtacacs scheme hwtac
# Specify the primary authentication server address 10.1.1.1 and the service port 49 in the
scheme.
[Router-hwtacacs-hwtac] primary authentication 10.1.1.1 49
# Set the shared key to expert in the scheme for the router to authenticate to the server.
[Router-hwtacacs-hwtac] key authentication simple expert
# Exclude the ISP domain name from the username sent to the HWTACACS server.
[Router-hwtacacs-hwtac] user-name-format without-domain
[Router-hwtacacs-hwtac] quit
# Create ISP domain bbb and enter its view.
[Router] domain bbb
# Configure ISP domain bbb to use local authentication for login users.
[Router-isp-bbb] authentication login local
# Configure ISP domain bbb to use local authorization for login users.
[Router-isp-bbb] authorization login local
# Apply the HWTACACS scheme hwtac to the ISP domain.
[Router-isp-bbb] authentication super hwtacacs-scheme hwtac
[Router-isp-bbb] quit
# Create a management local user named test and enter its view. Set the service type to Telnet,
and set the password to aabbcc.
[Router] local-user test class manage
[Router-luser-manage-test] service-type telnet
[Router-luser-manage-test] password simple aabbcc
# Assign level-0 to the user.
[Router-luser-manage-test] authorization-attribute user-role level-0










