Trunk Port Configuration On Cisco Nexus Series

What is trunk port configuration?

Today we will learn what is trunk port configuration and how to configure the trunk port on Cisco Nexus 3000 Series switch. A trunk port on a switch means that the port carries the traffic of one or more VLANs. We do multi-Vlan on our router. It can be Mikrotik or Cisco or Juniper router. We use switches to work with multi ports. If you want, you can run the network by excluding specific VLANs. For this, you need to configure the trunk port. If you want to take service with all VLANs, then you need to configure the port trunk of the switch.


VLAN Creation:

You can use 1-4000 VLANs on the switch. You can create 1-4000 VLANs all at once if you want, Or you can create the Vlans you want to use separately. The command for Vlan creation is given below.

Thus specific VLANs must be created.
UBINTERENT(config)# vlan 300-304

Thus all VLANs have to be created together.
UBINTERENT(config)# vlan 2-4000


Configure trunk port Cisco:

After logging in, then select any port on which port the router's LAN port will connect to the switch. I have selected port number 4 on my switch. You can select any other port. The trunk port configuration is given below.

User Access Verification

login: afnan

Password:

UBINTERENT#

UBINTERENT(config)# interface ethernet 1/4

UBINTERENT(config-if)# switchport mode trunk

UBINTERENT(config-if)# switchport trunk allowed vlan add 300-304

UBINTERENT(config-if)# exit

UBINTERENT(config)# exit

UBINTERENT#


Saving Configuration:

Don't forget to save after all configurations. Many times forget to save at the end of the configuration. It is a very important matter. If the device reboots without saving, the configuration is deleted. Follow the below command to save the running configuration.

UBINTERENT#copy running-config startup-config.


If anyone has any problem understanding then don't forget to comment in the comment box I will try to support everyone, And if you like the post then don't forget to share it. Thanks.

Post a Comment

Previous Post Next Post

Contact Form