当前位置:网站首页>Configure the user to log in to the device through telnet -- AAA local authentication
Configure the user to log in to the device through telnet -- AAA local authentication
2022-06-30 05:52:00 【Pie Daxing's good friend Dingdang cat】
List of articles
AAA Local certification
AAA Local authentication can authenticate the identity of users , The user can successfully log in to the device by entering the correct user name and password .
- advantage :AAA Local authentication configures user information on the device , There is no need to deploy other authentication servers in the network , Faster and lower operating costs .
- shortcoming : The amount of information stored is limited by the hardware conditions of the device .
Networking requirements
As shown in the figure below , Enterprises hope that administrators can easily and safely manage devices remotely , The administrator can be configured to pass telnet When logging in to the device :
- The administrator can enter the correct user name and password to pass telnet Log in to the device .
- Administrator through telnet After logging in to the device , The command level that can be executed is 0~3 All command lines for .

Huawei switch configuration
Configuration ideas
- Can make telnet service .
- Configure the user through telnet The login authentication method is AAA.
- To configure AAA Local certification : Create local users 、 The access type of the specified user is telnet、 Configure the user level as 15 level .
Configuration topology

Configuration operation
- LSW1 Configure the interface and IP Address
<Huawei>sys
[Huawei]sysname HW1
[HW1]vlan batch 10
Info: This operation may take a few seconds. Please wait for a moment...done.
[HW1]int Vlanif 10
[HW1-Vlanif10]ip add 10.1.1.1 24
[HW1-Vlanif10]q
[HW1]int GigabitEthernet 0/0/1
[HW1-GigabitEthernet0/0/1]port link-type access
[HW1-GigabitEthernet0/0/1]port default vlan 10
[HW1-GigabitEthernet0/0/1]q
- Can make telnet Server function
[HW1]telnet server enable
Info: The Telnet server has been enabled.
- To configure vty The authentication method of the user interface is AAA
[HW1]user-interface maximum-vty 15
[HW1-ui-vty0-14]authentication-mode aaa
[HW1-ui-vty0-14]protocol inbound telnet
[HW1-ui-vty0-14]q
- To configure AAA Local certification
[HW1]aaa
[HW1-aaa]local-user user1 password cipher [email protected]
[HW1-aaa]local-user user1 service-type telnet
[HW1-aaa]local-user user1 privilege level 15
[HW1-aaa]q
- LSW2 Interface configuration
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname HW2
[HW2]vlan batch 10
[HW2]int Vlanif 10
[HW2-Vlanif10]ip add 10.1.1.2
[HW2-Vlanif10]q
[HW2]int GigabitEthernet 0/0/1
[HW2-GigabitEthernet0/0/1]port link-type access
[HW2-GigabitEthernet0/0/1]port default vlan 10
[HW2-GigabitEthernet0/0/1]q
- verification ,LSW2 telnet LSW1
<HW2>telnet 10.1.1.1
Trying 10.1.1.1 ...
Press CTRL+K to abort
Connected to 10.1.1.1 ...
Login authentication
Username:user1
Password:
Info: The max number of VTY users is 15, and the number
of current VTY users on line is 1.
The current login time is 2021-08-24 13:22:59.
<HW1>
The configuration file
LSW1 To configure
[HW1]dis cu
#
sysname HW1
#
vlan batch 10
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
local-user user1 password cipher [JD(UTW1T15NZPO3JBXBHA!!
local-user user1 privilege level 15
local-user user1 service-type telnet
#
interface Vlanif1
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
user-interface maximum-vty 15
user-interface con 0
user-interface vty 0 14
authentication-mode aaa
#
return
LSW2 To configure
[HW2]dis cur
#
sysname HW2
#
vlan batch 10
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif10
ip address 10.1.1.2 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
return
边栏推荐
- Do you know how to show the health code in only 2 steps
- Shopping list--
- How to write a thesis
- Lantern Festival | maoqiu technology and everyone "guess riddles and have a good night"
- [Blue Bridge Road -- bug free code] DS1302 time module code analysis
- 09- [istio] istio service entry
- Xi'an Jiaotong 21st autumn online expansion resources of online trade and marketing (III) [standard answer]
- Inno setup the simplest user-defined interface effect
- Huxiaochun came to fengshu electronics to sign a strategic cooperation agreement with Zoomlion
- [secretly kill little partner pytorch20 days] - [day4] - [example of time series data modeling process]
猜你喜欢

Why can transformer break into the CV world and kill CNN?

动态规划--怪盗基德的滑翔翼

Inno setup the simplest user-defined interface effect

Database SQL language 04 subquery and grouping function

Rotating frame target detection mmrotate v0.3.1 training dota data set (II)
![[deep learning] data segmentation](/img/16/798881bbee66faa2fb8d9396155010.jpg)
[deep learning] data segmentation

如何制作CSR(Certificate Signing Request)文件?

PC viewing WiFi password

AI大模型落地大考,浪潮交出了怎样的答卷?

OSPF - authentication and load balancing summary (including configuration commands)
随机推荐
旋转框目标检测mmrotate v0.3.1 学习配置
Video summary of my station B
Sword finger offer 29 Print matrix clockwise
Navigate back to fragmentpageradapter - & gt; Fragment is empty - navigating back to fragmentpageradapter - & gt; fragments are empty
如何写论文
Rotating frame target detection mmrotate v0.3.1 learning configuration
14x1.5cm vertical label is a little difficult, VFP calls bartender to print
MySQL advanced (Advanced SQL statement)
UML tools
声网,站在物联网的“土壤”里
Using lazy < t > in C # to realize singleton mode in WPF
AI大模型落地大考,浪潮交出了怎样的答卷?
inno setup 最简单的自定义界面效果
Do you know how to show the health code in only 2 steps
抓取手机端变体组合思路设想
[deep learning] data segmentation
What are membrane stress and membrane strain
Golden code of programmer interview
Simple use of qlistview of QT (including source code + comments)
Solitidy - fallback 回退函数 - 2种触发执行方式