交换机端口安全

交换机的端口安全以及配置远程

console 口 设置密码

方式A: 密码验证:

[Huawei]user-interface console  0    "进入控制接口。"
[Huawei-ui-console0]authentication-mode password  "认证密码。"
[Huawei-ui-console0]set authentication password simple 123321   "设置认证密码。"

方式B: 使用用户名和密码形式验证:

[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode aaa 
[Huawei-ui-console0]aaa   "aaa 进入aaa"
[Huawei-aaa]l
[Huawei-aaa]local-user test privilege level  3 password simple 123321     "配置用户名gebi 权限级别 3级 密码是laowang"
[Huawei-aaa]local-user test service-type terminal                         "指定隔壁账户服务类型是 terminal 终端"

 VTY的方式

[Huawei]telnet server enable 
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]protocol inbound telnet 
[Huawei-ui-vty0-4]authentication-mode password 
[Huawei-ui-vty0-4]set authentication password simple 123231
[Huawei-ui-vty0-4]user privilege level 15 

组端口

port-group 1
group-member e0/0/1 e0/0/3 e0/0/7 to e0/0/9   \\将e0/0/1、e0/0/3、e0/0/7、e0/0/8和e0/0/9加入到本端口组,对端口组执行的命令会同步执行在该端口组内的所有端口上。

 

posted @ 2021-08-03 20:18  isicman  阅读(223)  评论(0)    收藏  举报