当前位置:首页>维修大全>综合>

vlan的基本配置(配置vlan的详细步骤小结)

vlan的基本配置(配置vlan的详细步骤小结)

更新时间:2024-05-10 11:04:51

vlan的基本配置

1、批量创建Vlan

[Switch]# vlan {vlan-id1 to vlan-id2}

2、进入Vlan

[Switch]# vlan vlan-id

3、在Vlan中添加端口

[Switch-vlan10]# port interface-list

4、配置端口的链路为Trunk类型

[Switch-Ethernet1/0/1]# port link-type trunk

5、允许指定的Vlan通过当前Trunk端口

[Switch-Ethernet1/0/1]# port trunk permit vlan {vlan-id-list | all }

6、设置trunk端口的缺省Vlan

[Switch-Ethernet1/0/1]# port trunk pvid vlan vlan-id

7、配置端口的链路类型为Hybrid类型

[Switch-Ethernet1/0/1]# port-link-type hybrid

8、允许指定的Vlan通过当前Hybrid端口

[Switch-Ethernet1/0/1]# port hybrid vlan vlan-id-list{tagged | untagged}

9、设置Hybrid端口的缺省Vlan

[Switch-Ethernet1/0/1]# port hybrid pvid vlan vlan-id

更多栏目