一、
1.用户模式
2.系统模式
3.主机名sysname
4.设备管理方式
本地管理(console线路)
远程管理(vty线路)
vty线路可以同时允许多个用户登录,console线路只能运行一个用户登录
二、配置方式
A.console线路配置(password认证)
1) user-interface console 0
2) authentication-mode password
提示输入密码
注:password认证无需输入用户名,只需输入密码。aaa认证需输入用户名和密码
B.console线路配置(aaa认证)
1) user-interface console 0
2) authentication-mode aaa
3) quit
4) aaa
5) local-user xj password cipher ********(新增用户)
6) local-user xj(用户名) privilege level 0/1/2(赋权)
C.远程管理(vty线路)----》》telnet协议(明文协议)和ssh协议(密文协议)
1.Telnet
1)system-view进入系统视图
2)user-interface vty 0 4
3)authentication-mode aaa
4)quit
5)aaa
6)local-user xj password cipher ********
7)local-user xj(用户名) privilege level 0/1/2(赋权)
8)local_user xj service-type telnet
9)quit
2.SSH
1)system-view进入系统视图
2)stelnet server enable
3)rsa local_key_pair create
(建议密钥长度1024)
4) local-user xj password cipher ********(新增用户)
5) local-user xj(用户名) privilege level 0/1/2(赋权)
6) local_user xj service-type ssh
7) quit
8) user-interface vty 0 4
9) authentication-mode aaa
10) protocol inbound ssh
11) quit
12) ssh user xj authentication-type all
注意:如果是第一次使用ssh登录其他设备,客户端首先使用ssh client first-time enable
三、接口IP地址配置
a)规划ip
b)system-view进入系统视图
c)进入接口int g0/0/0
d)ip add 192.168.1.2 255.255.255.0
e)quit
转载于:https://www.cnblogs.com/xj2638795202/p/10830096.html