04-12-2017 11:27 AM - edited 03-08-2019 10:11 AM
Hello,
This question pertains to the nexus7K.
I have a port-channel(port-channel 800) and 5 sub-interfaces configured under it. The sub-interfaces are configured as L3 interfaces with dot1q. There are no VLAN IDs, which should correspond to the dot1q IDs that are assigned on the sub-interface, configured on the switch. Example below.
I wasn't sure if the VLANs need to be configured/added or not. If so, do I need to add the VLAN on the sub-interface in addition to the encapsulation dot1q statement?
VLAN 20--- Not configured
VLAN 30--- Not configured
interface port-channel800.20
encapsulation dot1q 20
ip address 10.16.192.1/24
no shutdown
interface port-channel800.30
encapsulation dot1q 30
ip address 10.16.193.1/24
no shutdown
Thanks in advance.
~zK
Solved! Go to Solution.
04-12-2017 11:56 AM
Not sure what you are asking.
The "encapsulation dot1q <vlan ID>" specifies the vlan so there is nothing else to configure. If you are asking should you add the vlans to the vlan database on the switch then no because it is a L3 interface so it is the device that connects to your switch which needs to know about the vlans.
Note the above applies to Catalyst switches but I can't see why it would be different with Nexus switches.
Jon
04-12-2017 11:56 AM
Not sure what you are asking.
The "encapsulation dot1q <vlan ID>" specifies the vlan so there is nothing else to configure. If you are asking should you add the vlans to the vlan database on the switch then no because it is a L3 interface so it is the device that connects to your switch which needs to know about the vlans.
Note the above applies to Catalyst switches but I can't see why it would be different with Nexus switches.
Jon
04-12-2017 03:38 PM
Thanks, Jon!
Correct, I was trying to find out if I needed to add the vlans to the vlan database on the Nexus and also add the vlan on the sub-interfaces. Your explanation clarified it for me, thank you!
~zK
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide