enspvlan配置命令
时间: 2023-12-08 15:05:38 浏览: 42
以下是ensp中VLAN的配置命令:
1. 创建VLAN并进入VLAN视图
```
vlan vlan-id
```
2. 指定批量创建VLAN
```
vlan batch { vlan-id1 [ to vlan-id2 ] }
```
3. 退出VLAN视图
```
quit
```
4. 配置VLAN接口
```
interface interface-type interface-number
port link-type { access | trunk }
port default vlan vlan-id
```
5. 配置子接口
```
interface interface-type interface-number.subnum
port link-type { access | trunk }
port default vlan vlan-id
```
6. 配置VLAN间路由
```
ip routing
interface vlanif vlan-id
ip address ip-address { mask | mask-length }
```
7. 配置VLAN间ACL
```
acl [ number ] { name acl-name | id acl-id }
rule [ rule-id ] { deny | permit } [ icmp-type icmp-type | tcp | udp ] [ source { source-address source-mask | any } ] [ destination { destination-address destination-mask | any } ] [ tos tos ] [ precedence precedence ] [ time-range time-name ] [ log | alarm ] [ description text ]
```