HP Mellanox SX1018 Mellanox MLNX-OS® User Manualfor SX1018HP Ethernet - Page 37

Default Gateway, In-Band Management

Page 37 highlights

For all other systems (and software versions) DHCP is disabled by default. If a user connects through SSH, runs the wizard and turns off DHCP, the connection is immediately terminated as the management interface loses its IP address. Rev 1.6.9 # ssh [email protected] Mellanox MLNX-OS Switch Management Password: Mellanox Switch Mellanox configuration wizard Do you want to use the wizard for initial configuration? yes Step 1: Hostname? [switch-6287a4] Step 2: Use DHCP on mgmt0 interface? [yes] no # In such case the serial connection should be used. 4.1.4 Default Gateway In order to configure manually the default gateway, use the "ip route" command, with "0.0.0.0" as prefix and mask. The next-hop address must be within the range of one of the IP interfaces on the system. switch (config)# ip route 0.0.0.0 0.0.0.0 10.209.0.2 switch (config)# show ip route Destination Mask Gateway default 0.0.0.0 10.209.0.2 10.209.0.0 255.255.254.0 0.0.0.0 switch (config)# Interface mgmt0 mgmt0 Source static direct 4.1.5 In-Band Management In-band management is a management path passing through the data ports. In-band management can be created over one of the VLANs in the systems. The in-band management feature does not require any license. However, it works only for system profiles VPI and Ethernet. It cannot be enabled with IP Routing or IP Proxy-ARP.  To set an in-band management channel: Step 1. Create a VLAN. Run: switch (config) # vlan 10 switch (config vlan 10) # Step 2. Create a VLAN interface. Run: switch (config) # interface vlan 10 create Step 3. Enter the VLAN interface configuration mode and configure L3 attributes. Run: switch (config) # interface vlan10 switch (config interface vlan10)#ip address 10.10.10.10 /24 Mellanox Technologies 37 Mellanox Technologies Confidential

  • 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
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

Rev 1.6.9
Mellanox Technologies
37
Mellanox Technologies Confidential
For all other systems (and software versions) DHCP is disabled by default.
4.1.4
Default Gateway
In order to configure manually the default gateway, use the “ip route” command, with “0.0.0.0”
as prefix and mask. The next-hop address must be within the range of one of the IP interfaces on
the system.
switch (config)# ip route 0.0.0.0 0.0.0.0 10.209.0.2
switch (config)# show ip route
Destination
Mask
Gateway
Interface
Source
default
0.0.0.0
10.209.0.2
mgmt0
static
10.209.0.0
255.255.254.0
0.0.0.0
mgmt0
direct
switch (config)#
4.1.5
In-Band Management
In-band management is a management path passing through the data ports. In-band management
can be created over one of the VLANs in the systems.
The in-band management feature does not require any license. However, it works only for system
profiles VPI and Ethernet. It cannot be enabled with IP Routing or IP Proxy-ARP.
To set an in-band management channel:
Step 1.
Create a VLAN. Run:
Step 2.
Create a VLAN interface. Run:
Step 3.
Enter the VLAN interface configuration mode and configure L3 attributes. Run:
If a user connects through SSH, runs the wizard and turns off DHCP, the connection is
immediately terminated as the management interface loses its IP address.
<localhost># ssh [email protected]
Mellanox MLNX-OS Switch Management
Password:
Mellanox Switch
Mellanox configuration wizard
Do you want to use the wizard for initial configuration? yes
Step 1: Hostname? [switch-6287a4]
Step 2: Use DHCP on mgmt0 interface? [yes] no
<localhost>#
In such case the serial connection should be used.
switch (config) # vlan 10
switch (config vlan 10) #
switch (config) # interface vlan 10 create
switch (config) # interface vlan10
switch (config interface vlan10)#ip address 10.10.10.10 /24