cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5716
Views
5
Helpful
9
Replies

Port-channel or LACP

FashionNStyle
Level 1
Level 1

Hello

 

My server adapter are all are with 2x40G

My router also have 2x40G adapter installed

I was going to use those 2 ports like so:

Port 1 : switchport trunk allowed vlan 1,2,3,4....

Port 2 : switchport trunk allowed vlan 15,30,32....

for what I could find online this is not the best practice to use of those 2 ports, most using port-channel or LACP

My knowledge of nexus is limited, so I need some help

1st decide witch one to use

2nd what is going to be the best configuration for me

My network is very simple:

 

Switch Nexus 3132Q

eth1/1-2 - Router/Firewall pfSense - Trunk vlan all

eth1/29-30 - ESXI Host1 - Trunk vlan all

eth1/31-32 - ESXI Host2 - Trunk vlan all

 

now eth29-32 are uplink to a DVSwitch, so I have the option for LACP

 

Thank you

 

 

 

 

9 Replies 9

Hello,

 

what do you want to configure, a port channel between your  ESXis and the Nexus ? Please clarify...

balaji.bandi
Hall of Fame
Hall of Fame

As suggested other post what is the achievement.

 

as per my understand you can do this way :

 

Port 1 : switchport trunk allowed vlan 1,2,3,4....

Port 2 : switchport trunk allowed vlan 15,30,32....

 

Port 1 and 2 configure as port-channel in nexus allow all that vlan mentioned  in the port-channel.(you can also use vPC depends in your requirement) 

Esxi side you can do same configuration on dVS.

 

VMWARE docs for your reference :

https://docs.vmware.com/en/VMware-vSphere/6.0/com.vmware.vsphere.networking.doc/GUID-0D1EF5B4-7581-480B-B99D-5714B42CD7A9.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

hello

 

I am little confused port-channel channel-group LACP

Can you please show me some simple configuration of LACP so I can better understand the terminology

 

Let say I currently have a Windows Server (with windows is easy to configure)

I have a 2x40G ports on the Windows server and just created new nic team here are the setting

2018-10-14_8-08-13.jpg

 

Just for this server forget about everything else

team is set to DHCP how would you configure the switch so the server can receive

data let say on vlan2

 

thank you

here is some of my tests with windows server - it may be changed in your environment. but you get idea how to configure and easy

 

http://www.balajibandi.com/2018/02/14/enhanced-vpc-testing/

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Definitely LACP is the way to go. Here is the config you need. This will enable LACP link on the Nexus to both the ESXi Hosts you have. You have to configure ESXi distributed switch with lacp. I have attached the screenshot to message.  Please mark helpful posts.

switch# configure terminal
! Enable LACP on the switch
feature lacp
!
!
! Port-Channel is a logical interface which is created to bundle 2 or more physical interfaces
interface port-channel1
description ESXi Host1
switchport mode trunk
switchport trunk allowed vlan all
switchport trunk native vlan XX
spanning-tree port type edge trunk
!
!
!
! Add the physical interfaces to channel-group which corresponds to Port-Channel. Note that the
! port-channel and channel-group number should match for all physical ports to be part of the
! same bundle
interface ethernet 1/29, ethernet 2/30
switchport mode trunk
switchport trunk allowed vlan all
switchport trunk native vlan XX
channel-group 1 mode active
lacp rate fast
!
!
!
interface port-channel2
description ESXi Host2
switchport mode trunk
switchport trunk allowed vlan all
switchport trunk native vlan XX
spanning-tree port type edge trunk
!
!
interface ethernet 1/31, ethernet 2/32
switchport mode trunk
switchport trunk allowed vlan all
switchport trunk native vlan XX
channel-group 2 mode active
lacp rate fast
!
!

 

hello

 

this is a great tutorial, but  1 think i need to ask more do I need a spanning-tree

I have just 1 core switch 3132Q-V trunk to an other switch 3064-X there is no way I can get loops in my setup 

and if port-channel is mode access do I have to setup spanning-tree on it too

and What's the command to do that?

 

Thank you

Spanning Tree is definitely a must have for any good network deployments. It just ensure that you do not create loops when you have redundant paths in your network. I usually enable spanning tree globally and enable portfast on access ports (command is "spanning-tree portfast" under interface config)

hello

 

I do not have "spanning-tree portfast" command

 

 

thank you

I have been reading for past few days about spanning-tree

Let me see if I didn't lost my time on the net

 

For all access ports with (LACP)

interface port-channel XX
spanning-tree port type edge trunk

for switch to switch trunk port with LACP 

 

interface port-channel XX

spanning-tree port type network

 

for switch to host with LACP (in my case ESXI server)

 

interface port-channel XX

spanning-tree port type edge trunk

 

Thank you

 

 

EDIT

 

I found an article

https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/nxos/commands/l2/spanning-tree-port-type-edge.html

 

Where explains how to use the commands:

spanning-tree port type edge

spanning-tree port type edge trunk

 

so if I understand right

spanning-tree port type edge

is used for an access port

 

spanning-tree port type edge trunk

is used when port is in trunking mode

 

but if I want to enable spanning-tree when on the other site of trunk port is a switch, hub including firewall/router what command I have to use then ?

 

 

Thank you