Define one or more Ethernet Virtual Local Area Networks (VLANs) within the InfiniBand-Ethernet gateway switch. Each Ethernet switch port that will be communicating with a ClearPath Forward fabric must be configured to allow VLANs to go through it.
Creating Ethernet VLANs
Define the set of Virtual Local Area Networks (VLANs) to enable within the InfiniBand-Ethernet gateway switch:
If needed, access the command line interface (CLI) for the switch. For more information, see Accessing InfiniBand-Ethernet Gateway Switch.
At the prompt, execute the CLI configure terminal command to enter the configuration mode.
enable configure terminal
Define and enable one or more VLANs.
For example, if you wish to define four VLANs, named (tagged) as 10, 4000, 193, and 27 respectively, do the following:
Switch-1 [standalone: master] (config) # vlan 10 Switch-1 [standalone: master] (config vlan 10) # exit Switch-1 [standalone: master] (config) # vlan 4000 Switch-1 [standalone: master] (config vlan 4000) # exit Switch-1 [standalone: master] (config) # vlan 193 Switch-1 [standalone: master] (config vlan 193) # exit Switch-1 [standalone: master] (config) # vlan 27 Switch-1 [standalone: master] (config vlan 27) # exit
Configuring Allowed Traffic for Ethernet Port
Each Ethernet port on the InfiniBand-Ethernet gateway switch can be configured to allow tagged packets, untagged packets, or both, as well as whether traffic from a particular VLAN is allowed.
While in configuration mode, specify the particular Ethernet port you wish to configure.
In the following example, Ethernet port 1/28 is specified.
Switch-1 [standalone: master] (config) # interface ethernet 1/28
Configure the Ethernet port to allow type of VLAN traffic (tagged packets, untagged packets, or both), as well as traffic from multiple VLANs. Valid port switch modes are:
Trunk: This mode configures the port for only tagged packets.
Access: This mode configures the port to allow only untagged packets on the ingress Ethernet ports.
Hybrid: This mode configures the port to allow both tagged and untagged packets on the ingress Ethernet ports.
In the following example, Ethernet port 1/28 is configured to only allow tagged packets, that is, trunk mode is used. It is also configured to allow the four VLANs 10, 4000, 193, and 27.
Switch-1 [standalone: master] (config interface Ethernet 1/28) # switchport mode trunk Switch-1 [standalone: master] (config interface Ethernet 1/28) # switchport trunk allowed-vlan add 10 Switch-1 [standalone: master] (config interface Ethernet 1/28) # switchport trunk allowed-vlan add 4000 Switch-1 [standalone: master] (config interface Ethernet 1/28) # switchport trunk allowed-vlan add 193 Switch-1 [standalone: master] (config interface Ethernet 1/28) # switchport trunk allowed-vlan add 27 Switch-1 [standalone: master] (config interface Ethernet 1/28) # exit
Repeat as necessary for all Ethernet ports on the InfiniBand-Ethernet gateway switch.
Verifying Ethernet VLAN Configuration
While in configuration mode, execute the show vlan command to verify that the VLANs are set up as expected. For example,
Switch-1 [standalone: master] (config) # show vlan
VLAN Name Ports---- ---------- -----------------------
1 default Eth1/18, Eth1/19, Eth1/20, Eth1/21, Eth1/22,
Eth1/23, Eth1/24, Eth1/25, Eth1/26, Eth1/27
10, 27, 193, 4000 Eth1/28