HPE Mellanox Switch Training, Part 1
HPE Mellanox Switch Training, Part 1
HPE Mellanox Switch Training, Part 1
Switch Training
Suchart Boonpan
MASE, CCNP, ACE-A, ACMP
May 2020
Network Diagram
Link Aggregation
iLO
3
HPE M-SERIES SWITCHES SPECIFICATION
Half Width Half Width Full Width Full Width Full Width / Full & Short
Depth
18 x 1/10/25G SFP28 + 16 x 40/100 QSFP28 48 x 10G SFP + 48 x 10/25G SFP28 + 32 x 40/100G QSFP28
4 x 40/100G QSFP28 8 x 40 QSFP 8 x 40/100G QSFP
34 x 10/25G SFP28 64 x 10/25 SFP28 64 x 10GbE SFP 64 x 10/25G SFP28 64 x 10/25G SFP28
4
DOWNLINKS (COMPUTE AND STORAGE CONNECT)
HPE M‐Series SN2010M
(18) 10/25Gb SFP28 Ports
(4) 10/25/40/100Gb QSFP28 Ports
25G
25G
5
CROSSLINKS (MLAG 100G PREFERRED BEST PRACTICE)
6
M-SERIES SN2410M ETHERNET SWITCH
7
SN2410M M-SERIES NETWORK CONNECTIONS
Q ports go to the 640SFP28 NIC in
the Qumulo Nodes.
Q Q Comp Comp Edge
1 3 1 3 1 MLAG 1
MGMT
Comp ports go to the 640SFP28 NIC
in the Compute Nodes.
8
Q&A
– Question ?
– Break 5 m
9
Mellanox Switch User Interfaces
11
Connection with MLNX-OS
12
User name and password
Mellanox
Switch
Network
PC
14
Connection with MLNX-OS
Mellanox
Switch
Network
PC
15
CLI configuration modes—Standard and enable
Standard
– Identified by the CLI prompt >.
– Most restrictive mode.
– Includes commands that query only a restricted set of state information.
– Users cannot take any actions that directly affect the system—like rebooting the switch, or changing the
configuration.
– Use the enable command to move from standard mode to enable mode.
switchA [standalone: master] > enable
Enable
– Identified by the CLI prompt #.
– Offers commands to view all state information, and take actions like rebooting the system.
– Does not allow you to change any configurations.
– Use the disable command to move from enable mode to standard mode.
Config
– Identified by CLI prompt (config)#.
– Allowed only for user accounts in the “admin” role.
– Has a full, unrestricted set of commands to view anything, take any action, and change any configuration.
– Use the configure terminal command to move from enable mode to config mode.
Or
– Two images are stored in the flash memory: Partition 1 and Partition 2.
switchA [standalone: master] (config interface mgmt1) # show images
Installed images:
Partition 1:
version: X86_64 3.8.2204 2019-12-29 16:11:11 x86_64
Partition 2:
version: X86_64 3.7.1134 2019-01-24 13:38:57 x86_64
3. Press Login
1. Choose System
1. Choose System
1. Choose System
1. Choose System
1. Choose System
– Question ?
– Break 10 m or Lunch
32
MLAG – Multi Chassis LAG
– MLAG L2
– MLAG L3 (MAGP)
– Interface Port-Channel (Link Aggregation)
– Interface MLAG Port-Channel (Multi Chassis Link Aggregation)
– Spanning tree mode RPVST
– Switch port mode Hybridge
– Static Route
34
MLAG – Multi Chassis LAG:
Qumulo 1
The MLAG protocol components.
• Keepalive
• Unicast and multicast sync
• MLAG port sync
36
MLAG Keepalive and Failover
– Master election in MLAG is based on the highest IPL VLAN interface IPs of the nodes.
– The MLAG pair of switches periodically exchanges a keepalive message (via IPL)
– If the keepalive message fails to arrive for three consecutive intervals the switches break into two
standalone switches.
– If IPL fail, the slave shuts down its interfaces to avoid a split brain scenario and the master becomes a
standalone switch.
37
Unicast and Multicast Sync
– It prevents unicast asymmetric traffic from loading the network with flood traffic
38
MLAG Port Sync
– Under normal circumstances, traffic from the IPL cannot pass through the MLAG ports (the IPL is isolated
from the MLAG ports).
– If one of the MLAG links break, the other MLAG switch opens that isolation and allows traffic from its peer
through the IPL to flow via the MLAG port which accesses the destination of the fallen link.
39
MLAG Global Configurations
1. Enable IP routing
– MLAG may be enabled without IP routing, but without IP routing an IPL VLAN interface cannot be
configured and thus MLAG does not function.
2. Enable IGMP snooping
– MLAG may be enabled without IGMP snooping, but if IGMP snooping is disabled, multicast FDBs do not
synchronize.
3. Enable LACP – if dynamic LAG is used.
4. Enable MLAG protocol commands.
– g1switchA configuration:
g1switchA [standalone: master] (config) # ip routing
g1switchA [standalone: master] (config) # ip igmp snooping
g1switchA [standalone: master] (config) # lacp
g1switchA [standalone: master] (config) # protocol mlag
– g1switchB configuration:
g1switchB [standalone: master] (config) # ip routing
g1switchB [standalone: master] (config) # ip igmp snooping
g1switchB [standalone: master] (config) # lacp
g1switchB [standalone: master] (config) # protocol mlag
IPL Port-Channel
1. Create a port-channel:
– Port-channel indexes on two switches may differ.
– switchA configuration:
g1switchA [standalone: master] (config) # interface port‐channel 1
g1switchA [standalone: master] (config interface port‐channel 1) # ipl 1
g1switchA [standalone: master] (config interface port‐channel 1) # exit
g1switchA [standalone: master] (config) # interface ethernet 1/19‐1/20
g1switchA [standalone: master] (config interface ethernet 1/19‐1/20) # channel‐group 1 mode active
g1switchA [standalone: master] (config interface ethernet 1/19‐1/20) # exit
– switchB configuration:
g1switchB [standalone: master] (config) # interface port‐channel 1
g1switchB [standalone: master] (config interface port‐channel 34) # ipl 1
g1switchB [standalone: master] (config interface port‐channel 34) # exit
g1switchB [standalone: master] (config) # interface ethernet 1/19‐1/20
g1switchB [standalone: master] (config interface ethernet 1/19‐1/20) # channel‐group 1 mode active
g1switchB [standalone: master] (config interface ethernet 1/19‐1/20) # exit
IPL VLAN Configuration
1. Create a VLAN and a VLAN interface for the IPL.
2. Set an IP address and a netmask for the VLAN interface.
– The switch with highest IP address is elected as the MLAG master.
3. Map the VLAN interface to be used on the IPL and set
the peer’s IP address.
–switchA configuration:
g1switchA [standalone: master] (config) # vlan 4094
g1switchA [standalone: master] (config vlan 4094) # exit
g1switchA [standalone: master] (config) # interface vlan 4094
g1switchA [standalone: master] (config interface vlan 4094) # ip address 172.16.34.253 /30
g1switchA [standalone: master] (config interface vlan 4094) # ipl 1 peer‐address 172.16.34.254
g1switchA [standalone: master] (config interface vlan 4094) # exit
– switchB configuration:
g1switchB [standalone: master] (config) # vlan 4094
g1switchB [standalone: master] (config vlan 4094) # exit
g1switchB [standalone: master] (config) # interface vlan 4094
g1switchB [standalone: master] (config interface vlan 4094) # ip address 172.16.34.254 /30
g1switchB [standalone: master] (config interface vlan 4094) # ipl 1 peer‐address 172.16.34.253
g1switchB [standalone: master] (config interface vlan 4094) # exit
MLAG Cluster Configuration
1. Configure the MLAG cluster:
– Both switches must be configured with an identical
unique group name.
– One of the switches is also configured with the VIP –
it is the cluster master.
– VIP address must be of the management subnet.
– switchA configuration:
switchA [standalone: master] (config) # mlag‐vip MLAG‐G1 ip 10.25.19.13 /16
switchA [MLAG‐G1: master] (config) #
– switchB configuration:
switchB [standalone: master] (config) # mlag‐vip MLAG‐G1
switchB [MLAG‐G1: standby] (config) #
– Wait for a few seconds until prompt is changed to group name and cluster master/standby.
Enable MLAG Protocol
– Enable MLAG protocol:
– MLAG protocol is disabled by default.
– switchA configuration:
– switchB configuration
– switchA configuration:
switchA [MLAG‐G1: master] (config) # interface mlag‐port‐channel 16
switchA [MLAG‐G1: master] (config interface mlag‐port‐channel 16) # exit
switchA [MLAG‐G1: master] (config) # interface ethernet 1/16
switchA [MLAG‐G1: master] (config interface ethernet 1/16) # mlag‐channel‐group 16 mode active
switchA [MLAG‐G1: master] (config interface ethernet 1/16) # exit
– switchB configuration
switchB [MLAG‐G1: standby] (config) # interface mlag‐port‐channel 16
switchB [MLAG‐G1: standby] (config interface mlag‐port‐channel 16) # exit
switchB [MLAG‐G1: standby] (config) # interface ethernet 1/16
switchB [MLAG‐G1: standby] (config interface ethernet 1/16) # mlag‐channel‐group 16 mode active
switchB [MLAG‐G1: master] (config interface ethernet 1/16) # exit
MLAG Port-Channel Configuration
1. Disable STP for the mlag-port-channel:
2. Enable mlag-port-channel:
– Default admin state of mlag-port-channel is disabled.
In order to allow administrator to configure both
switches first, and then enable MLAG.
– switchA configuration:
switchA [MLAG‐G1: master] (config) # interface mlag‐port‐channel 16
switchA [MLAG‐G1: master] (config interface mlag‐port‐channel 16) # spanning‐tree port type edge
switchA [MLAG‐G1: master] (config interface mlag‐port‐channel 16) # spanning‐tree bpdufilter enable
switchA [MLAG‐G1: master] (config interface mlag‐port‐channel 16) # no shutdown
– switchB configuration
switchB [MLAG‐G1: standby] (config) # interface mlag‐port‐channel 16
switchB [MLAG‐G1: standby] (config interface mlag‐port‐channel 16) # spanning‐tree port type edge
switchB [MLAG‐G1: standby] (config interface mlag‐port‐channel 16) # spanning‐tree bpdufilter enable
switchB [MLAG‐G1: standby] (config interface mlag‐port‐channel 16) # no shutdown
Verify mlag-port-channel Configuration
Group
Port‐Channel Type Local Ports Peer Ports
(D/U/P/S) (D/P/S/I) (D/P/S/I)
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
1 Mpo16(U) LACP Eth1/16(P) Eth1/16(P)
– ‘mlag-port-channel’ flags:
– Partial Up – local or remote are down
– Up – both local and remote are up
– Down – ‘admin’ state is disabled
Q&A
– Question ?
– Break 10 m
50
Virtual local area network (VLAN)
– A virtual local area network (VLAN) is a logical segment of the Ethernet network that defines a broadcast domain.
– A VLAN is identified by a VLAN ID.
– Each VLAN should be assigned with a unique IP subnet.
– Hosts within the same VLAN can communicate with each other in layer 2.
– Hosts in different VLANs can communicate with each other in layer 3.
VLAN1 VLAN1
VLAN1
VLAN2
VLAN3
– Trunk ports carry traffic for multiple VLANs across a single link.
– Hosts in the same VLAN, that are connected to different switches, can communicate with each other over
the trunk link.
– When a frame is sent on the trunk port, the sending switch adds a tag that contains the VLAN ID.
The receiving switch reads the VLAN ID and removes the tag.
VLAN1
trunk port VLAN1
VLAN1
VLAN2
VLAN3
– The IEEE 802.1Q trunking protocol defines the tag added to Ethernet frames carried over a trunk port.
– The 802.1Q tag is 4 bytes in size, including the 12-bit VLAN ID.
Original Ethernet frame
6 bytes 6 bytes 2 bytes 46-1500 bytes 4 bytes
Destination Source Type/ Data FCS
MAC MAC Length
– switchA Configuration.
switchA [MLAG-G1: master] (config) # vlan 507
switchA [MLAG-G1: master] (config vlan 507) # exit
switchA [MLAG-G1: master] (config) # vlan 400
switchA [MLAG-G1: master] (config vlan 400) # exit
switchA [MLAG-G1: master] (config) #
– switchB Configuration
– switchA Configuration.
switchA [MLAG-G1: master] (config) # interface vlan 507 ip address 192.168.17.3 /24
switchA [MLAG-G1: master] (config) # ipv6 routing
switchA [MLAG-G1: master] (config) # interface vlan 1 ipv6 enable
switchA [MLAG-G1: master] (config) # interface vlan 507 ipv6 enable
– switchB Configuration
switchB [MLAG-G1: standby] (config) # interface vlan 507 ip address 192.168.18.3 /24
switchB [MLAG-G1: standby] (config) # ipv6 routing
switchB [MLAG-G1: standby] (config) # interface vlan 1 ipv6 enable
switchB [MLAG-G1: standby] (config) # interface vlan 507 ipv6 enable
– VLAN 1 is the default VLAN, and all ports are assigned to it.
– switchA Configuration.
switchA [MLAG-G1: master] (config) # interface ethernet 1/16 description Qumulo-Node1
switchA [MLAG-G1: master] (config) # interface mlag-port-channel 16 switchport mode hybrid
switchA [MLAG-G1: master] (config) # interface mlag-port-channel 16 switchport access vlan 1
switchA [MLAG-G1: master] (config) # interface mlag-port-channel 16 switchport hybrid allowed-vlan 507
– switchB Configuration
– VLAN 1 is the default VLAN, and all ports are assigned to it.
61
Configuring Hybrid Mode and Assigning Port VLAN ID (PVID)
62
Configuring Trunk Mode VLAN Membership
63
Q&A
– Question ?
– Break 10 m
64
Spanning Tree Protocol (STP)
- MST maps multiple VLANs to an instance, reducing the number of spanning-tree instances.
- MST and PVST+ are compatible
- Backwards compatible with RSTP and STP
- It is the IEEE standard protocol (802.1s)
66
Rapid spanning tree (RSTP)
- The Rapid Spanning Tree Protocol recovers (converges to a new spanning tree) more quickly than STP
- It is backwards-compatible with MST and STP.
- It is the IEEE standard protocol (802.1w)
67
Rapid per-VLAN spanning tree (RPVST)
68
Ethernet layer 2 loops
– switchA Configuration.
– switchB Configuration
– switchA Configuration.
– switchB Configuration
– The largest possible frame size of a communications Protocol Data Unit (PDU) on an OSI Model Layer 2 data network.
– Default frame size is 1518 bytes
– Example of commands to check MTU size;
74
Q&A
– Question ?
– Break 10 m
75
Link Layer Discovery Protocol (LLDP)
– switchA Configuration.
– switchB Configuration
switchA switchB
Eth1/19
Confidential – For Training Purposes Only 80
Onyx system features
Feature Description
– switchA Configuration.
switchA [MLAG-G1: master] (config) # clock timezone America North United_States Central
switchA [MLAG-G1: master] (config) # clock set 09:00:00 2020/05/12
switchA [MLAG-G1: master] (config) # ntp server 10.187.2.2
switchA [MLAG-G1: master] (config) # ntp enable
– switchB Configuration
switchB [MLAG-G1: master] (config) # clock timezone America North United_States Central
switchB [MLAG-G1: master] (config) # clock set 09:00:00 2020/05/12
switchB [MLAG-G1: master] (config) # ntp server 10.187.2.2
switchB [MLAG-G1: master] (config) # ntp enable
– switchA Configuration.
– switchB Configuration
– Question ?
– Break 10 m
86
Multi-active gateway protocol (MAGP)
88
Multi-active gateway protocol (MAGP)
89
Configuring MAGP Example
90
Verify the MAGP configuration
91
IP Routing
– IP Interfaces (L3)
– MLNX-OS supports the following 3 types of IP interfaces:
•VLAN interface
•Loopback interface
•Router port interface
Note: Router port interfaces are not supported on SX10xx-xxxR and SX60xx-xxxR systems
Note: Routing for this project is using VLAN interface with ip route 0.0.0.0 0.0.0.0 10.0.102.2
92
VLAN interface Attributes
– VLAN interface is a logical IPv4 interface created per subnet over a specific 802.1Q VLAN ID.
– Each interface VLAN has the following attributes:
•Admin state
•Operational state
•MAC address
•IP address and mask
•MTU
•Description
•Set of counters
93
Configure a Router Port Interface
94
Q&A
– Question ?
– Break 10 m
95
Basic Troubleshooting
Link Aggregation
Data VLAN 300 Qumulo
ILO Servers 1-6
iLO
97
What happens if no IP communication between the MGMT ports
Cisco core L3 #1, #2
1. CLI prompt is displayed: [:unknown]#
2. It Split-brain when IPL down
MAGP 2:
Interface vlan: 400
Admin state : Enabled VLAN 400 Management Plane (Active/Standby)
State : Master
Virtual IP : 10.0.102.1 mgmt0
Virtual MAC : 00:00:5E:00:01:02 10.0.99.61 ‐ 63 /24
SN2410M SN2410M
mgmt0
MAGP 1:
Interface vlan: 300 Cisco MGMG switch
Admin state : Enabled
State : Master
Virtual IP : 10.0.1.254
Virtual MAC : 00:00:5E:00:01:01
Link Aggregation
Data VLAN 300 Qumulo
ILO Servers 1-6
iLO
98
Verify interface MLAG port channel
Cisco core L3 #1, #2
#show interface mlag-port-channel sum
VLAN 400
mgmt0
10.0.99.61 ‐ 63 /24
SN2410M SN2410M
mgmt0
mlag-port-channel
Link Aggregation
Data VLAN 300 Qumulo
ILO Servers 1-6
iLO
99
Q&A
– Question ?
100
Thank you
[email protected]