API Guide

Assign Port Channel IP Address
OS10# configure terminal
OS10(config)# interface port-channel 1
OS10(conf-if-po-1)# ip address 1.1.1.1/24
OS10(conf-if-po-1)#
Remove or disable port-channel
You can delete or disable a port-channel.
1. Delete a port-channel in CONFIGURATION mode.
no interface port-channel channel-number
2. Disable a port-channel to place all interfaces within the port-channel operationally down in CONFIGURATION mode.
shutdown
Delete port-channel
OS10(config)# interface port-channel 10
OS10(conf-if-po-10)# no interface port-channel 10
Load balance traffic
Use hashing to load balance traffic across member interfaces of a port-channel. Load balancing uses source and destination
packet information to distribute traffic over multiple interfaces when transferring data to a destination.
For packets without an L3 header, OS10 automatically uses the load-balancing macselection destination-mac
command for hash algorithms by default.
When you configure an IP and MAC hashing scheme at the same time, the MAC hashing scheme takes precedence over the IP
hashing scheme.
Select one or more methods of load balancing and replace the default IP 4-tuple method of balancing traffic over a port-
channel in CONFIGURATION mode.
OS10(config)# load-balancing
ingress-port Ingress port configurations
tcp-udp-selection TCP-UDP port for load-balancing configurations
ip-selection IPV4 load-balancing configurations
ipv6-selection IPV6 load-balancing configurations
mac-selection MAC load-balancing configurations
ingress-port [enable] Enables the ingress port configuration.
tcp-upd-selection [l4destination-port | l4source-port] Uses the Layer 4 destination port or
Layer 4 source port in the hash calculation.
ip-selection [destination-ip | source-ip | protocol | vlan-id | l4destination-port |
l4source-port] Uses the destination IP address, source IP address, protocol, VLAN ID, Layer 4 destination port
or Layer 4 source port in the hash calculation.
ipv6-selection [destination-ip | source-ip | protocol | vlan-id | l4destination-port
| l4source-port] Uses the destination IPv6 address, source IPv6 address, protocol, VLAN ID, Layer 4 port or
Layer 4 source port in the hash calculation.
macselection [destination-mac | source-mac] [ethertype | vlan-id] Uses the destination
MAC address or source MAC address, and ethertype, or VLAN ID in the hash calculation.
Configure load balancing
OS10(config)# load-balancing ip-selection destination-ip source-ip
262
Interfaces