神州数码交换机HYBRID端口配置
交换机Hybrid端口典型配置
组网说明
三台PC机使用同一个地址段,但在交换机上需要使用Hybrid端口实现以下功能:
1、PC 1可以访问到PC 2和PC 3
2、PC 2和PC 3之间无法互访
配置步骤
#创建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传输
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐



所有评论(0)