2024年8月2日 14:40:01

This commit is contained in:
Noriu 2024-08-02 14:40:00 +08:00
parent 159782ebd1
commit 20bec0c81c

View File

@ -191,7 +191,7 @@
### 6、远程控制交换机
1. ##### VLAN设置IP地址
1. ##### 交换机VLAN设置IP地址
```
<SW1>system-view
@ -204,4 +204,27 @@
[SW1-Vlanif1]ip a 192.168.1.100 255.255.255.0
```
2. 交换机设置远程管理密码
```
<SW1>system-view
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]authentication-mode password
[SW1-ui-vty0-4]set authentication password cipher 123
[SW1-ui-vty0-4]user privilege level 3
远程登录:
<PC>telnet 192.168.1.100
```
> [SW1]user-interface vty 0 4
>
> - `user-interface`:指示接下来要配置的是用户接口。
> - `vty`代表Virtual Teletype即虚拟终端。VTY是网络设备上的一种逻辑接口允许通过SSH、Telnet等远程协议进行远程访问。
> - `0 4`指定VTY接口的范围从VTY 0到VTY 4。这意味着命令将应用于VTY 0、VTY 1、VTY 2、VTY 3和VTY 4这五个虚拟终端接口。
> [SW1-ui-vty0-4]user privilege level 3
>
> - level 3代表赋予3级权限默认权限为0参观级3为管理员级