cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
378
Views
0
Helpful
3
Replies

customized load balance over portchannel

Mahmoud
Level 1
Level 1

Hi,

I have two switches connected by two cables with no stp so I need to force some MACs to go through first cable and other MACs go through other cable

is there is any solution for that

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

Hi well as an option you can alter the specific load balancing for the port-channel but im not aware of a feature that will allow you to be as specific to chose which macs take which path on the po but you can make the links load balance more evenly

changing the LB can alter the flows and even them out if only one interface in the po is constantly being used

depending on the platform/ios you may have more or less options as below , we use src-dst-port which for us works well on our pos


SwitchA(config)#port-channel load-balance ?
  dst-ip                      Dst IP Addr
  dst-mac                     Dst Mac Addr
  dst-mixed-ip-port           Dst IP Addr and TCP/UDP Port
  dst-port                    Dst TCP/UDP Port
  mpls                        Load Balancing for MPLS packets
  src-dst-ip                  Src XOR Dst IP Addr
  src-dst-mac                 Src XOR Dst Mac Addr
  src-dst-mixed-ip-port       Src XOR Dst IP Addr and TCP/UDP Port
  src-dst-port                Src XOR Dst TCP/UDP Port
  src-ip                      Src IP Addr
  src-mac                     Src Mac Addr
  src-mixed-ip-port           Src IP Addr and TCP/UDP Port
  src-port                    Src TCP/UDP Port
  vlan-dst-ip                 Vlan, Dst IP Addr
  vlan-dst-mixed-ip-port      Vlan, Dst IP Addr and TCP/UDP Port
  vlan-src-dst-ip             Vlan, Src XOR Dst IP Addr
  vlan-src-dst-mixed-ip-port  Vlan, Src XOR Dst IP Addr and TCP/UDP Port
  vlan-src-ip                 Vlan, Src IP Addr
  vlan-src-mixed-ip-port      Vlan, Src IP Addr and TCP/UDP Port

if I break the portchannel bundle can we use static mapping to the interfaces like pbr but for L2

You can match by mac-list on a nx-os device through pbr but I don't think that's available in ios or ios-xe versions that  know of anyway