ensp配置命令大全
时间: 2023-07-01 21:24:34 浏览: 523
以下是一些常用的ensp配置命令:
1. 配置IP地址和掩码:
```
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] ip address 192.168.1.1 24
```
2. 配置VLAN:
```
[HUAWEI] vlan batch 10 20
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type access
[HUAWEI-GigabitEthernet0/0/1] port default vlan 10
```
3. 配置Trunk口:
```
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 to 20
```
4. 配置端口镜像:
```
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port-mirroring enable
[HUAWEI-GigabitEthernet0/0/1] port-mirroring to observe-port gigabitethernet 0/0/2
```
5. 配置QoS:
```
[HUAWEI] qos car inbound cir 10240 cbs 20480
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] qos car inbound apply
```
6. 配置ACL:
```
[HUAWEI] acl number 3000
[HUAWEI-acl-adv-3000] rule 5 permit tcp source 192.168.1.0 0.0.0.255 destination 10.1.1.0 0.0.0.255
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] packet-filter 3000 inbound
```
以上是一些常用的ensp配置命令,具体的命令根据不同的场景和需求可以有所不同。
阅读全文