diff --git a/1. 基础部分/0801_交换机.md b/1. 基础部分/0801_交换机.md index 05bf8fc..6ddc4bf 100644 --- a/1. 基础部分/0801_交换机.md +++ b/1. 基础部分/0801_交换机.md @@ -191,7 +191,7 @@ ### 6、远程控制交换机 -1. ##### VLAN设置IP地址 +1. ##### 交换机VLAN设置IP地址 ``` system-view @@ -204,4 +204,27 @@ [SW1-Vlanif1]ip a 192.168.1.100 255.255.255.0 ``` +2. 交换机设置远程管理密码 + + ``` + 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 + + 远程登录: + 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为管理员级 +