This solution will describe how to configure VLANs on your Brocade switch.
- Connect to the switch via the console port (or telnet/ssh when available)
- Get granted privileges (might return an error if it has been previously done):
# enable
- Switch to config mode:
# configure terminal
- Show information about the current VLAN setup:
# show vlan brief
- Show information about the VLAN 1:
# show vlan 1
There is a default VLAN configured on every brocade switch, its name is "DEFAULT-VLAN" and its ID is 1.
All the switch ports are part of this VLAN by default.
This is why all ports are listed under VLAN 1 when printing the VLAN information summary.
When assigning a particular port to a different VLAN , it automatically gets removed from VLAN 1.
- Configure VLAN 2
# vlan 2
- Assign a particular port to a different VLAN
# untagged ethernet 1/1/1
Now the ethernet port 1/1/1 is part of VLAN 2.
- You can assign multiple ports to a VLAN in a single command as per the following example:
# untagged ethernet 1/1/1 to 1/1/4
Now the ethernet 1st, 2nd, 3rd and 4th ports are assigned to VLAN 2.
- You can exit the VLAN 2 configuration at anytime by entering the following command:
# exit
- VLANs configuration can be checked by entering the following:
# show vlan 1
# show vlan 2
The above commands will show which ports are assigned to VLAN 1 and VLAN 2.
- Save the current configuration by writing it to flash memory (if you do not, modifications will be lost at reboot/shutdown):
# write memory