PeraHoman
asked on
L2 Port channel question
interface Port-channel1
description Core-to-Core_L2_EC, G1/0/1 - 2
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 11,30,50,80,100,501,504,50 7,601,604, 607
switchport mode trunk
switchport nonegotiate
interface range g1/0/1 -2
description s_Etherchannel, G1/0/1 - 2
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 11,30,50,80,100,501,504,50 7,601,604, 607
switchport mode trunk
switchport nonegotiate
channel-group 1 mode on
cdp enable
Is the command in bold needed for L2 portchannels?
description Core-to-Core_L2_EC, G1/0/1 - 2
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 11,30,50,80,100,501,504,50
switchport mode trunk
switchport nonegotiate
interface range g1/0/1 -2
description s_Etherchannel, G1/0/1 - 2
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 11,30,50,80,100,501,504,50
switchport mode trunk
switchport nonegotiate
channel-group 1 mode on
cdp enable
Is the command in bold needed for L2 portchannels?
ASKER
@MadSpin
So on the physical interface, if "switchport mode trunk" is configured, and "switchport trunk allowed vlan X" isn't configured, then the default is to allow all VLANs to traverse the trunk? For example, if I created VLANS 1-200, all VLANs will traverse the trunk since nothing has been specified.
Let's say I had vlans 1-1000 configured. If I specified on the port channel to ONLY allow VLANs 1,2,3 on the logical trunk, but on the physical interface's configuration did only "switch mode trunk" then only VLANs 1,2,3 will traverse the port-channel and the rest will (4-1000) will not?
So on the physical interface, if "switchport mode trunk" is configured, and "switchport trunk allowed vlan X" isn't configured, then the default is to allow all VLANs to traverse the trunk? For example, if I created VLANS 1-200, all VLANs will traverse the trunk since nothing has been specified.
Let's say I had vlans 1-1000 configured. If I specified on the port channel to ONLY allow VLANs 1,2,3 on the logical trunk, but on the physical interface's configuration did only "switch mode trunk" then only VLANs 1,2,3 will traverse the port-channel and the rest will (4-1000) will not?
Is the command in bold needed for L2 portchannels?NO, by default command configured is # switchport trunk allowed vlan all.
switchport trunk allowed vlan 11,30,50,80,100,501,504,50If you configure that specific command you allow only those VLANs passing through trunk. And you need to configure it under Po interface, not under physical interface.7,601,604, 607
ASKER
So when you configure a physical interface to be apart of a port-channel 'channel-group X mode on', the command 'switchport trunk allowed vlan X, Y, Z' on the physical interface doesn't matter, and will now only abide to the port-channel's interface 'switchport trunk allowed vlan X,Y,Z', correct?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Predrag is correct, the Po settings are what is running, but you do want to mirror the config.
Removing it would allow communication to all VLANs. The Config should mirror the port channel interface.