华三常用配置命令大全
时间: 2023-12-31 13:23:58 浏览: 274
以下是华三交换机的一些常用配置命令:
1. 进入系统视图:
```shell
system-view
```
2. 设置超级用户密码:
```shell
super password H3C
```
3. 删除超级用户密码:
```shell
undo super password
```
4. 设置本地用户及密码:
```shell
local-user username password cipher password
```
5. 设置Web网管用户级别:
```shell
local-user username service-type web
```
6. 设置SSH登录方式:
```shell
ssh server enable
```
7. 设置Telnet登录方式:
```shell
telnet server enable
```
8. 配置VLAN:
```shell
vlan batch vlan-id1 [vlan-id2...]
```
9. 配置端口的VLAN成员关系:
```shell
interface interface-type interface-number
port link-type access
port default vlan vlan-id
```
10. 配置端口的Trunk模式:
```shell
interface interface-type interface-number
port link-type trunk
port trunk allow-pass vlan vlan-id1 [vlan-id2...]
```
11. 配置端口的Access模式:
```shell
interface interface-type interface-number
port link-type access
port default vlan vlan-id
```
12. 配置端口的PVID:
```shell
interface interface-type interface-number
port access vlan vlan-id
```
13. 配置端口的流量控制:
```shell
interface interface-type interface-number
traffic-policy policy-name inbound
traffic-policy policy-name outbound
```
14. 配置端口的速率限制:
```shell
interface interface-type interface-number
traffic-policy policy-name inbound
traffic-policy policy-name outbound
```
15. 配置端口的镜像:
```shell
interface interface-type interface-number
port-mirroring to observe-port interface-type interface-number
```
16. 配置静态路由:
```shell
ip route-static destination-mask next-hop-address
```
17. 配置动态路由:
```shell
router rip
network network-address
```
18. 配置SNMP:
```shell
snmp-agent sys-info version all
snmp-agent community read community-name
snmp-agent community write community-name
```
阅读全文