cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6958
Views
0
Helpful
2
Replies

L3 Port-Channel Sub-interfaces

zekebashi
Level 4
Level 4

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 

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

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

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

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

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