You are on page 1of 9

FIND A COMMUNITY

 Cisco Community  English Register Login

Speak French? Now you can ask your questions in the new French Community! CLICK HERE

This board  Search Switching   Options

Technology & Support For Partners Customer Connection Events Members & Recognition

Cisco Community /  Technology and Support /  Networking /  Switching /  Port channel VLAN's

2845 10 8
 VIEWS  HELPFUL  REPLIES Create Please login to create

content

 Discussion  Video

jbrit1969 Beginner 02-25-2016 01:28 PM


 Blog

Port channel VLAN's  Document

Hi there,
Related Content
Just looking at the port-channel cong on our 3850 - example below...  Discussions 

I'm just wondering why, on the interfaces that are members of the 1st port channel I  Blogs 

see the allowed VLANS, but on the interfaces for the 2nd port channel I do not?  Do I  Documents
need to add them to the interfaces that are members of the 2nd port channel?
 Events
The 2nd port channel is not active but we are planning on using it soon... ✖
 Videos
Cisco Consent Manager
interface Port-channel1 Like many companies, Cisco uses cookies and other technologies, some of which are
essential to make our website work. Others help us improve services and the user
description Uplink 1
experience or to advertise. In using our site, you consent to the use of these cookies
switchport trunk allowed vlan 1,4,5,12 Recommended
and other technologies. Learn more about cookies and other technologies we use.
switchport mode trunk Change your preferences Subject Author Posted

interface GigabitEthernet1/0/1   mune 04-15-2019


description Uplink 1/1
Vlans eb.ali0 01:26 AM
PDFmyURL easily turns web pages and even entire websites into PDF!
switchport trunk allowed vlan 1,4,5,12 for 7
switchport mode trunk Port-
channel-group 1 mode on
Chann
el in
interface GigabitEthernet1/0/2
description uplink 1/2 UCSM
switchport trunk allowed vlan 1,4,5,12
switchport mode trunk 
channel-group 1 mode on How
to tell

interface Port-channel2 new


Nevy 10-11-2018
description Uplink 2  create
03:08 AM
switchport trunk allowed vlan 1,5 d
switchport mode trunk vLAN
to use
interface GigabitEthernet1/0/13
new...
description Uplink 2/1
switchport mode trunk
channel-group 2 mode on 
Flexibl
interface GigabitEthernet1/0/14
e
description Uplink 2/2 randm
Neto 10-16-2017
switchport mode trunk  s2610
w on 02:49 AM
channel-group 2 mode on
Port
LAN Switching Chann
els
I have this problem too


ASA5

0 Helpful Reply 516 Rory


 10-17-2018
 Port Hama
11:11 AM
Chann ker
el
8 REPLIES
Help

Jon Marshall Hall of Fame Guru 02-25-2016 01:46 PM   lowfell 04-09-2019


Port- 11:13 PM
Actually the second way ie. chann

PDFmyURL easily turns web pages and even entire websites into PDF!
Actually the second way ie. only using that command on the port channel interface is el
the way to do it rather than repeat the same command on all interfaces. Trunk
not
The reason being that all members of a port channel need the same conguration so
showi
if you add it to just the port channel interface those changes are propagated to all
the physical links . ng
allowe
Never used 3850s but I assume they follow the same rule. d ...

Jon

 5 Helpful Reply

jbrit1969 Beginner 02-25-2016 01:54 PM

Thanks, so taking this


Thanks, so taking this further, in the future if I want to add a VLAN to the 1st port
channel I would have to modify the port channel and the member interfaces?

 0 Helpful Reply

Prabath Godevithanage Enthusiast 02-25-2016 04:36 PM

As Jon said, Setting the


As Jon said, Setting the attributes and changes on the port channel interface
would minimize the miscongurations. I always follow it as a best practice
rather than using "interface range" to select the members.

If you do the cong manually on members there is a higher chance of port-


channel going in to suspended mode due to inconsistency

PDFmyURL easily turns web pages and even entire websites into PDF!
changes made on the port channel should automatically propagate down to the
members ,same applies to 3850s.

But I couldn't replicate your second port-channel cong on my lab 3850 it


seems like you have manually deleted "switchport trunk allowed vlan 1,5" from
the port-channel members

***Please rate all the useful posts***


-Prabath

 5 Helpful Reply

Jon Marshall 02-25-2016 05:46 PM

Hall of Fame Guru

Good point about the missing


Good point about the missing lines from the physical ports, I completely
overlooked that:)

They should be there even if you just add the command to the port channel.

Jon

 0 Helpful Reply

jbrit1969 Beginner 02-25-2016 06:07 PM

That's interesting,
That's interesting,

PDFmyURL easily turns web pages and even entire websites into PDF!
After my initial post I created a port channel on the 3850, I did not add or
remove the VLANS on the channel members and this is the result which
looks the same as the original port-channel2 in my initial post

interface Port-channel3
description test
switchport trunk allowed vlan 1,5
switchport mode trunk

interface GigabitEthernet1/0/15
description test1
switchport mode trunk
channel-group 3 mode on

interface GigabitEthernet1/0/16
description test2
switchport mode trunk
channel-group 3 mode on

 0 Helpful Reply

Prabath Godevithanage 02-26-2016 03:21 AM

Enthusiast

I gave it another go just 


I gave it another go and just realized that it is something simple but didn't
notice it as i always practice the other way..

It seems that you have created the logical interface (Port Channel3) rst
and then go into the Gig interfaces and add them to the members list.I
had the same results as you when I do it that way. however if you go back
to your logical interface and make a change you'll notice that updated
cong will be propagated in to the members automatically.

You could try just simply adding "switchport trunk allowed vlan add 7" on
to your Po3 as an example.

PDFmyURL easily turns web pages and even entire websites into PDF!
I usually select the members and add them to the group.This way switch
creates the logical interface automatically for me and I go back and make
changes on the port channel.

Like this
SW01(cong)#interface range gigabitEthernet 5/0/45-46
SW01(cong-if-range)#channel-group 3 mode on
Creating a port-channel interface Port-channel 3

SW01(cong-if-range)#interface po3
SW01(cong-if)#description test1
SW01(cong-if)#switchport trunk allowed vlan 1,5
SW01(cong-if)#switchport mode trunk

SW01(cong-if)#do show run in gi5/0/45


!
interface GigabitEthernet5/0/45
switchport trunk allowed vlan 1,5
switchport mode trunk
channel-group 3 mode on
end

SW01(cong-if)#do show run in po3


!
interface Port-channel3
description test1
switchport trunk allowed vlan 1,5
switchport mode trunk
end

Here is the 3850 Etherchannel guide .

Look for the topic "Channel Groups and Port-Channel Interfaces"

***Please rate all the useful posts***


-Prabath

 0 Helpful Reply

PDFmyURL easily turns web pages and even entire websites into PDF!
jbrit1969 Beginner 02-29-2016 08:38 AM

I have tried to create a Port


I have tried to create a Port Channel in the way you describe and the
output is still the same as in my original post.

Interestingly, I found some documentation from when the 3850's were


originally commissioned and found these notes:

! To restrict VLANs, add the following command below.


! Add the command to the interfaces in the following order:
! 1st interface, Port-Channel, 2nd interface.
switchport trunk allowed vlan <list of allowed vlans>
!

This seems to suggest that I do need to congure both port channel and


individual channel members.......

 0 Helpful Reply

Jon Marshall Hall of Fame Guru 02-25-2016 05:49 PM

No you wouldn't.
No you wouldn't.

As preranda78 says when you add the command to the port channel this
should then add the command to the individual member links.

So if you wanted to add a vlan you just add it to the port channel and it will
automatically be added to the individual links.

Why your second entry is missing those lines on the physical links is not clear.

Jon

PDFmyURL easily turns web pages and even entire websites into PDF!
 0 Helpful Reply

Latest Contents

5-min Survey - Tell us what devices you use 0 0 


when using your ...
Created by betswang on 08-13-2019 05:17 PM

Inviting all Network professionals! We want you to tell us what devices you use to do
your work and its screen resolution. Your response will help us improve network man
agement tools.   Click here to take the 5-minute survey: http://cs.co/9009E28lV ... vi
ew more

5-Minute Network Management Survey 0 0 


Created by Hannah Faye Chua on 08-08-2019 06:18 PM

Calling Cisco Customers who manage networks in your companies We have a quick
5-minute survey for you to complete. Your response will help Cisco improve a produ
ct feature that could benet you.   Click here now: http://cs.co/9002E0kjC &nb... vie
w more

Unleashing the power of Catalyst 9000 Series 2 5 


switches with o...
Created by jayshar on 08-08-2019 11:27 AM

Since the last blog on IOS-XE release, there has been a standard maintenance relea
se which was followed by the recently published Extended Maintenance Release(EM
R) and the last release on the 16.x train, IOS-XE 16.12.1. With this being an EMR rel
ease, it ... view more

#CiscoChat Live: AI + ML = The Answer to 0 0 


Increased Network C...
Created by Kelli Glass on 08-07-2019 06:21 PM

Join us live (or on demand) on Thursday, August 8 at 11 am PT to hear Prashanth an


d Ravi discuss the use of AI and ML in intent-based networking. Learn about how AI/
ML provide highly personalized information to IT environments, allowing them to ... vi
ew more

#CiscoChat Live: AI + ML = The Answer to 2 5 


Increased Network C...
PDFmyURL easily turns web pages and even entire websites into PDF!
Created by Kelli Glass on 08-07-2019 06:17 PM

Hear Prashanth Shenoy, VP Product Marketing, and Ravi Chandrasekaran, SVP Core


Software Group, discuss the use of AI and ML in intent-based networking. Learn abo
ut how AI/ML provide highly personalized information to IT environments, allowing th
em t... view more

 Top

Follow our Social Media Channels

    


Contacts Privacy Statement Copyright © 2019 Cisco Systems Inc.
Community Feedback Cookie Policy All rights reserved.
Site Map Trademarks
Terms & Conditions Help

PDFmyURL easily turns web pages and even entire websites into PDF!

You might also like