#### 创建ssh用户
```sh
local-user abc
password simple 123456
authorization-attribute user-role 10
undo authorization-attribute user-role network-operator
authorization-attribute user-role network-admin
service-type ssh
```
#### 开启ssh
```sh
ssh server enable
```
#### 配置ssh
```sh
user-interface vty 9 15
authentication-mode scheme
user-role level-15
user-role network-admin
protocol inbound ssh
```
#### 配置ip地址
```sh
interface vlan-interface 1
undo ip address #删除ip地址
ip address 172.16.14.254 255.255.255.0 #配置静态ip
```
#### 配置dhcp
```sh
interface vlan-interface 1
ipaddress dhcp-alloc #管理VLAN接口通过DHCP方式获取IP地址
undoip address dhcp-alloc
```
#### 配置镜像端口
`g1/0/16的接口加入到镜像组,g1/0/3为监控口`
```sh
mirroring-group 1 local
mirroring-group 1 mirroring-port gigabitethernet 1/0/16 both
mirroring-group 1 monitor-port gigabitethernet 1/0/3
display mirroring-group all
```