1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 【HCIA 02】华为交换机配置telnet远程登录 console加密

【HCIA 02】华为交换机配置telnet远程登录 console加密

时间:2020-02-23 10:19:02

相关推荐

【HCIA 02】华为交换机配置telnet远程登录  console加密

方式一

步骤1:

配置sw1名称及逻辑(虚拟)IP地址

<Huawei>sys

[Huawei]sys sw1 \\改名为sw1

[sw1]int vlanif1 \\进入逻辑接口

[sw1-Vlanif1]ip add 192.168.12.1 24 \\添加IP

[sw1-Vlanif1]qu

[sw1]qu

<sw1>

配置sw2名称及逻辑(虚拟)IP地址

<Huawei>sys

[Huawei]sys sw2

[sw2]int vlanif1

[sw2-Vlanif1]ip add 192.168.12.2 24

[sw2-Vlanif1]qu

[sw2]

步骤2:

配置sw2远程登录

[sw2]user-interface vty 0 4 \\设置同时登录用户数量

[sw2-ui-vty0-4]authentication-mode password

\\使用密码登录

[sw2-ui-vty0-4]set authentication password simple 123

\\设置密码为123(越是高端的交换机对密码的格式要求就越高,比如密码长度、不能包含用户名字段等等,注意有没有报错信息)

[sw2-ui-vty0-4]user privilege level 15

\\设置登录用户的操作权限15为最高

[sw2-ui-vty0-4]idle-timeout 3

\\用户3分钟无操作退出登录

步骤3:

在sw1登录sw2

<sw1>telnet 192.168.12.2

\\注意在用户视图下敲命令<sw1>

Trying 192.168.12.2 ...

Press CTRL+K to abort

Connected to 192.168.12.2 ...

Login authentication

Password:

Info: The max number of VTY users is 5, and the number

of current VTY users on line is 1.

The current login time is -10-11 13:37:16

<sw2>

方式二

步骤1:配置IP,修改名称(略)

步骤2:分别在sw1和sw2上配置以下代码

aaa

local-user hf password cipher hf@123

local-user hf privilege level 15

local-user hf service-type telnet

qu

user-interface vty 0 4

authentication-mode aaa

protocol inbound telnet

交换机开启telnet命令:

另电脑终端也需开启telnet功能组件。

console加密:

[sw1]user-interface console 0

[sw1-ui-console0]authentication-mode aaa

[sw1-ui-console0]qu

[sw1]aaa

[sw1-aaa]local-user admin1 password cipher hf@12345678

[sw1-aaa]local-user admin1 privilege level 15

原创不易,转载请注明出处:

【HCIA 02】华为交换机配置telnet远程登录_sxhuafeng的博客-CSDN博客_华为交换机telnet登陆

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。