HP Mellanox SX1018 Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed - Page 76

Creating an IP Interface

Page 76 highlights

Rev 1.6.2 The load balancing function of the ECMP is configured globally on the system. Hash algorithm can be symmetric or asymmetric. In symmetric hash functions bidirectional flows between routes will follow the same path, while in asymmetric hash functions, bidirectional traffic can follow different paths in both directions. The following load balancing types are supported: • Source IP & Port - source IP (SIP) and source UDP/TCP port: If the packet is not UDP/ TCP, only SIP is used for the hash calculation. This is an asymmetric hash function. • Destination IP & Port - destination IP (DIP) and destination UDP/TCP port: If the packet is not UDP/TCP, only DIP is used for the hash calculation. This is an asymmetric hash function. • Source and Destination IP & Port - destination and source IP, as well as destination and source UDP/TCP port: If the packet is not UDP/TCP, only SIP/DIP are used for the hash calculation. This is a symmetric hash function. • Traffic Class: Load balance based on the traffic class assigned to the packet. This is an asymmetric hash function. • All (default): all above fields are part of the hash calculations. This is a symmetric hash function. 6.1.3 Creating an IP Interface Preconditions: • An L3 license must be installed on your system (LIC-XXXX-L3) • A VLAN must be created using the command vlan • There must be at least one interface attached to this VLAN (to do so, run the switchport command in the interface configuration mode) • There must be at least one interface in the operational state "UP"  To create an IP interface: Step 1. Create a VLAN interface using the command interface vlan . Step 2. Apply an IP address and a network mask to the interface using the ip address command. switch (config)# vlan 10 switch (config vlan 10)# exit switch (config)# interface ethernet 1/1 switch (config interface ethernet 1/1)#switchport mode access switch (config interface ethernet 1/1)#switchport access vlan 10 switch (config interface ethernet 1/1)#exit switch (config)# show interface etherent status // making sure there is a port in UP state Port ---Eth1/1 ... Operational state Up Speed ----40 Gbps Negotiation ----------No-Negotiation switch (config)#interface vlan 10 switch (config interface vlan)#ip address 10.10.10.10 /24 Mellanox Technologies 76

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77

Rev 1.6.2
Mellanox Technologies
76
The load balancing function of the ECMP is configured globally on the system.
Hash algorithm can be symmetric or asymmetric. In symmetric hash functions bidirectional
flows between routes will follow the same path, while in asymmetric hash functions, bidirec-
tional traffic can follow different paths in both directions.
The following load balancing types are supported:
Source IP & Port - source IP (SIP) and source UDP/TCP port: If the packet is not UDP/
TCP, only SIP is used for the hash calculation. This is an asymmetric hash function.
Destination IP & Port - destination IP (DIP) and destination UDP/TCP port: If the
packet is not UDP/TCP, only DIP is used for the hash calculation. This is an asymmetric
hash function.
Source and Destination IP & Port - destination and source IP, as well as destination and
source UDP/TCP port: If the packet is not UDP/TCP, only SIP/DIP are used for the
hash calculation. This is a symmetric hash function.
Traffic Class: Load balance based on the traffic class assigned to the packet. This is an
asymmetric hash function.
All (default): all above fields are part of the hash calculations. This is a symmetric hash
function.
6.1.3
Creating an IP Interface
Preconditions:
An L3 license must be installed on your system (LIC-XXXX-L3)
A VLAN must be created using the command
vlan <vlan-id>
There must be at least one interface attached to this VLAN (to do so, run the
switchport
com-
mand in the interface configuration mode)
There must be at least one interface in the operational state “UP”
To create an IP interface:
Step 1.
Create a VLAN interface using the command
interface vlan <vlan-id>
.
Step 2.
Apply an IP address and a network mask to the interface using the
ip address
command.
switch (config)# vlan 10
switch (config vlan 10)# exit
switch (config)# interface ethernet 1/1
switch (config interface ethernet 1/1)#switchport mode access
switch (config interface ethernet 1/1)#switchport access vlan 10
switch (config interface ethernet 1/1)#exit
switch (config)# show interface etherent status
// making sure there is a port in UP
state
Port
Operational state
Speed
Negotiation
----
-----------------
-----
-----------
Eth1/1
Up
40 Gbps
No-Negotiation
switch (config)#interface vlan 10
switch (config interface vlan)#ip address 10.10.10.10 /24