How To: WX7052 VLAN & Port Configuration

How To: WX7052 VLAN & Port Configuration

WX7052-410G: VLAN & Port Configuration

1. Introduction

VLAN or Virtual LAN is a sub network which separates an existing physical network into multiple logical networks. Thus, each VLAN creates its own broadcast domain. They work as though they are created using independent switches.

They allow network administrators to automatically limit access to specified groups of users by dividing them into different isolated LAN segments.

2. VLAN Creation and Configuration using Web

2.1 Creating a VLAN

2.2 VLAN IP Configuration

2.3 Assigning Ports to new VLAN (Access Ports)

3.  VLAN Creation and Configuration using CLI

Login to the console or shell of the switch. The default credentials are Username: admin & Password: admin.

Run the following commands:

 

Switch>enable

Getting into configuration mode

Switch#configure terminal

 

Entering VLAN configuration mode to create a new VLAN

Switch(config)#vlan database

Creating and enabling a new VLAN ‘vlan 3’

Switch(config-vlan)#vlan 3

Switch(config-vlan)#exit

Switch(config)#ip interface vlan 3

 

Entering interface configuration mode

Switch(config)#interface ge1/25

 

Configuring interface ge1/25 as access port for vlan 3

Switch(config-ge1/25)#switchport access vlan 3                                                                

Switch(config-ge1/25)#exit

 

Entering vlan3 configuration mode

Switch(config)#interface vlan3

 

Configuring IP address for vlan3

Switch(config-vlan3)#ip address 192.168.3.1/24

Switch(config-vlan3)#exit

Switch(config)#exit

 

Saving the configuration

Switch#write 






To configure multiple ports in one go, enter;

Switch(config)#interface ge1/26 ge1/30

Switch(config-ge1/26-30)#switchport access vlan 3

Switch(config-ge1/26-30)#exit

Switch(config)#exit

            Switch#write





The following two commands will show a brief information about the various interfaces and VLANS, wherein there will be information about the newly created VLANs as well. An example is shown in the following image which contains the configuration done above.

 

Switch#show ip interface brief

Switch#show vlan





4. Configuring Ports as Trunk or Hybrid Ports

4.1  Trunk Port And Hybrid Port

A trunk port is a specific type of port on a network switch that allows data to flow across a network node for multiple virtual local area networks or VLANs. In simple words if a port is configured as a trunk port, it will allow traffic from all tagged VLANs (as configured) on the switch.

A Hybrid port is a combination of Access and trunk port. It is a port connected to either switches or hosts. It can receive both tagged and untagged frames and assigns untagged frames a default configured VLAN (Port VLAN ID). It receives tagged frames with VLANs of which the port is a member.

4.2 Trunk Port and Hybrid Port Configuration using Web

After logging into the web GUI, navigate to VLAN tab -> Trunk Port, choose a port to be configured as a trunk port, select a VLAN to be its Default VLAN, select the tagged VLANs as per your choice and click ‘Apply’ as shown below. Do a similar configuration on another switch and connect both of them through the trunk ports. Here we are configuring port ge1/31 as the trunk port.






For Hybrid port configuration, navigate to VLAN tab -> Hybrid Port. Its configuration is similar, and here you can choose which VLANs to be default, tagged or untagged as shown below. Here we are configuring port ge1/32 as the hybrid port.





4.3 Trunk Port and Hybrid Port Configuration using CLI

After logging into the console or shell, follow the given commands:

 

Switch>enable

Switch#configure terminal

 

Note: There are various options when it comes to hybrid or trunk configuration

 

 

1.      Trunk port configuration:

# Configuring interface ge1/33 as trunk port

Switch(config)#interface ge1/33

Switch(config-ge1/33)#switchport mode trunk

# To configure a particular VLAN as tagged member

Switch(config-ge1/33)#switchport trunk allowed vlan add <VLAN ID or list>

# To configure all VLANs as tagged, VLAN1 excluded

Switch(config-ge1/33)#switchport trunk allowed vlan all

# To remove all VLANs from membership of the trunk port

Switch(config-ge1/33)#switchport trunk allowed vlan none

# To remove a particular VLAN from membership of the trunk port

Switch(config-ge1/33)#switchport trunk allowed vlan remove <VLAN ID or list>

# To change the native VLAN of the port

Switch(config-ge1/33)#switchport trunk native vlan <VLAN ID>

 

2.      Hybrid port configuration:

# Configuring interface ge1/34 as hybrid port

Switch(config)#interface ge1/34

Switch(config-ge1/34)#switchport mode hybrid

# To configure a particular VLAN as tagged member

Switch(config-ge1/34)#switchport trunk allowed vlan add <VLAN ID or list> egress-tagged enable

# To configure a particular VLAN as untagged member

Switch(config-ge/34)#switchport trunk allowed vlan add <VLAN ID or list> egress-tagged disable

# To configure all VLANs as tagged, VLAN1 excluded

Switch(config-ge1/34)#switchport hybrid allowed vlan all

# To remove all VLANs from membership of the hybrid port. Implementing this command will revert back the native VLAN of the port to 1

Switch(config-ge1/34)#switchport hybrid allowed vlan none

# To remove a particular VLAN from membership of the hybrid port

Switch(config-ge1/34)#switchport hybrid allowed vlan remove <VLAN ID or list>

# To change the native VLAN of the port

Switch(config-ge1/34)#switchport hybrid native vlan <VLAN ID>

 

Note: There are only two ways of writing ‘VLAN ID or list’. You can either specify a list like ‘2-4’ or can specify individual VLANs by separating them using commas like 1,2,3,5. You can’t give a group of VLAN lists like ‘2-4, 6-9’.



























    • Related Articles

    • How to: WX7028-410G VLAN & Port Configuration

      Contents VLAN & Port Configuration 2 1. Introduction 2 2. VLAN Creation and Configuration in web GUI 2 2.1 Creating a VLAN 2 2.2 VLAN IP Configuration 2 2.3 Assigning Ports to new VLAN (Access Ports) 3 3. VLAN Creation and Configuration in CLI 3 4. ...
    • How to: Configure Port Security - WP6010

      Port Security   1.    What is Port security? Port Security helps secure any network by preventing unknown devices from forwarding packets. One can limit the number of MAC addresses on a given port. The ‘switchport security’ feature offers the ability ...
    • How to login a WP6012-8POE Ethernet Switch

      1. Different methods to log in to Switch console Connect the switch and one’s PC with RJ45 LAN cable. One can use any RJ45 port on switch. The default switch IP will be 192.168.0.1 and subnet mask 255.255.255.0. Note: The switch and one’s system ...
    • How to: MGS/AWG - Port Forwarding

      Contents 1.0 Introduction to NAT. 2 1.1 Some terms explained. 2 2.0 Port Forwarding: 3 2.1 Full Network Diagram (as per our setup) 3 2.2 Steps to configure port forwarding settings: 4 2.3 Destination port range and redirect target IP.. 5 2.4 Step To ...
    • Ethernet Switch - Port Configuration Options (WP series)