一、组网说明
三台PC机使用同一个地址段,但在交换机上需要使用Hybrid端口实现以下功能:
1、PC 1可以访问到PC 2和PC 3
2、PC 2和PC 3之间无法互访
二、组网图
![](https://img8.php1.cn/3cdc5/15951/711/dcd23f5feef3530b.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl8zNjExMDY4Nw==,size_16,color_FFFFFF,t_70)
三、配置步骤
#创建Vlan 10,20,30
switch(config)#vlan 10
switch(config-Vlan10)#exit
switch(config)#vlan 20
switch(config-Vlan20)#exit
switch(config)#vlan 30
switch(config-Vlan30)#exit
#设置端口 E 1/1
switch(config)#interface ethernet 1/1
switch(config-If-Ethernet1/1)#switchport mode hybrid
switch(config-If-Ethernet1/1)#switchport hybrid allowed vlan 10;20;30 untag
switch(config-If-Ethernet1/1)#switchport hybrid native vlan 10
switch(config-If-Ethernet1/1)#exit
#设置端口 E 1/2
switch(config)#interface ethernet 1/2
switch(config-If-Ethernet1/2)#switchport mode hybrid
switch(config-If-Ethernet1/2)#switchport hybrid allowed vlan 10;20 untag
switch(config-If-Ethernet1/2)#switchport hybrid native vlan 20
switch(config-If-Ethernet1/2)#exit
#设置端口 E 1/3
switch(config)#interface ethernet 1/3
switch(config-If-Ethernet1/3)#switchport mode hybrid
switch(config-If-Ethernet1/3)#switchport hybrid allowed vlan 10;30 untag
switch(config-If-Ethernet1/3)#switchport hybrid native vlan 30
switch(config-If-Ethernet1/3)#exit
四、注意事项
1.Hybrid端口只能由Access端口转换,如果某个端口是Trunk端口,需要先转换为Access后才能转换为Hybrid端口
2.Hybrid端口可以允许端口透传多个Vlan,并且设置这些Vlan是带tag传输还是不带tag传输
本手册版权为DCN所有,欢迎传阅
如果有任何意见或建议,请联系 400-810-9119