发布网友 发布时间:2022-04-20 15:19
共1个回答
热心网友 时间:2023-05-20 00:48
华为交换机用端口限速
代码如下:
<HUAWEI> system-view
[HUAWEI] acl 2000
[HUAWEI-acl-basic-2000] rule permit source 192.168.1.10 0.0.0.0
[HUAWEI-acl-basic-2000] quit
[HUAWEI] traffic classifier c1
[HUAWEI-classifier-c1] if-match acl 2000
[HUAWEI-classifier-c1] quit
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] car cir 4096
[HUAWEI-behavior-b1] quit
[HUAWEI] traffic policy p1
[HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[HUAWEI-trafficpolicy-p1] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] traffic-policy p1 inbound
扩展资料:
华为交换机常用命令
用户视图:
<Huawei>
进入系统视图:
<Huawei> system-view 或者 sys 或者 system
更改设备的名字:
[Huawei] sysname HW
进入接口视图:
[Huawei]interface Ethernet0/0/1 或者int interface 接口类型+接口编号
[Huawei-Ethernet0/0/1]
关闭接口:
[Huawei-Ethernet0/0/1] shutdown
开启接口:
[Huawei-Ethernet0/0/1] undo shutdown
查看vlan:
display vlan 或者 dis vlan
查看当前配置:
display current-configuration 或者 display cu
查看已保存配置:
display saved-configuration 或者 display sa
查看版本:
display version