Link to home
Start Free TrialLog in
Avatar of PeraHoman
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,507,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,507,601,604,607
 switchport mode trunk
 switchport nonegotiate
 channel-group 1 mode on
 cdp enable


Is the command in bold needed for L2 portchannels?
Avatar of MadSpin
MadSpin

The command you are referencing is not related to the port channel specifically.  That has to do with which VLANs you are allowing the port to communicate with in conjunction with the switchport mode trunk.

Removing it would allow communication to all VLANs.  The Config should mirror the port channel interface.
Avatar of PeraHoman

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?
Avatar of Predrag Jovic
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,507,601,604,607
If 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.
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
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Predrag is correct, the Po settings are what is running, but you do want to mirror the config.