10-13-2018 10:59 AM - edited 03-08-2019 04:22 PM
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
10-13-2018 11:26 AM
Hello,
what do you want to configure, a port channel between your ESXis and the Nexus ? Please clarify...
10-13-2018 01:55 PM
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 :
10-14-2018 06:06 AM - edited 10-14-2018 06:09 AM
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
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
10-14-2018 11:41 AM
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/
10-14-2018 11:43 AM
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
!
!
10-14-2018 03:39 PM
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
10-14-2018 05:59 PM
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)
10-15-2018 03:37 AM
hello
I do not have "spanning-tree portfast" command
thank you
10-22-2018 12:01 PM - edited 10-23-2018 03:46 AM
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
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide