Configure the trunk of the Mellanox Switch
Recently, the company's internal openstack platform has been migrated to connect mellanox and centec switches. The centec switch has no major difference between cli and Cisco. It is mainly because the mellanox switch does not support native vlan When configuring trunk, but port supports hybrid.
Openstack [standalone: unknown] # show running-config # mellanox switch interface ethernet 1/48 switchport mode hybrid # Set the port type to hybrid interface ethernet 1/48 switchport access vlan 100 # vlan 100 without tag interface ethernet 1/48 switchport hybrid allowed-vlan add 101 interface ethernet 1/48 switchport hybrid allowed-vlan add 102 interface ethernet 1/48 switchport hybrid allowed-vlan add 103 interface ethe Rnet 1/48 switchport hybrid allowed-vlan add 104 interface ethernet 1/48 switchport hybrid allowed-vlan add 105 inter-openstack # show running-config # centec switch Building configuration... version 5.2.12.7.S.fcs! Interface eth-0-49 switchport mode trunk switchport trunk native vlan 100 # Same as Cisco switchport trunk allowed vlan all
The method for configuring hybrid for the port of the mellanox switch is much different from that for h3c. It has been a long time!