|
| 1 | +.. _switch-agent-installation: |
| 2 | +.. meta:: |
| 3 | + :description: Network Switch Initial Setup |
| 4 | + |
| 5 | +====================================== |
| 6 | +Nvidia Cumulus v5.9+ Switch Initial Setup |
| 7 | +====================================== |
| 8 | + |
| 9 | + |
| 10 | +.. note:: |
| 11 | + |
| 12 | + Further installation requires a Console and Internet connectivity via the management port! |
| 13 | + |
| 14 | +If the switch has pre-installed network operating system (NOS), it needs to be uninstalled first |
| 15 | + |
| 16 | + |
| 17 | +1. NOS Uninstall (if pre-installed) |
| 18 | + |
| 19 | +To uninstall the current NOS, access **ONIE** from the GRUB menu and select the **Uninstall OS** option. |
| 20 | + |
| 21 | +.. image:: images/uninstallOS.png |
| 22 | + :align: center |
| 23 | + |
| 24 | +Once it's done, the switch will automatically reboot and get ready for the installation of the Cumulus Linux. |
| 25 | + |
| 26 | + |
| 27 | +2. NOS Install |
| 28 | + |
| 29 | +If there is no DHCP in the management network, stop the onie-discovery service and configure an IP address and default gateway manually. |
| 30 | + |
| 31 | +.. code-block:: shell-session |
| 32 | +
|
| 33 | + onie-stop |
| 34 | + |
| 35 | +.. code-block:: shell-session |
| 36 | +
|
| 37 | + ip addr add <management IP address/prefix> dev eth0 |
| 38 | + |
| 39 | +.. code-block:: shell-session |
| 40 | +
|
| 41 | + ip route add default via <gateway of the management network> |
| 42 | + |
| 43 | +.. code-block:: shell-session |
| 44 | +
|
| 45 | + echo "nameserver <DNS server address>" > /etc/resolv.conf |
| 46 | +
|
| 47 | +The Cumulus image should be available on a web server to which the switch has access through the local network or the Internet. |
| 48 | + |
| 49 | +Example: |
| 50 | + |
| 51 | +.. code-block:: shell-session |
| 52 | +
|
| 53 | + onie-nos-install http://192.168.100.10/cumulus-linux-5.9.1-mlx-amd64.bin |
| 54 | +
|
| 55 | +After completion of the installation, the switch will automatically reboot. |
| 56 | + |
| 57 | +To login use the default username and password for Cumulus v5.9: |
| 58 | + |
| 59 | +``cumulus/cumulus`` |
| 60 | + |
| 61 | + |
| 62 | +3. Set up the Out-of-Band (OOB) Management. |
| 63 | + |
| 64 | +Upon installation of Cumulus Linux v5.9 or later ZTP must be disabled and internet connectivity must be provided to the switch via OOB management network: |
| 65 | + |
| 66 | +Disable ztp: |
| 67 | + |
| 68 | +.. code-block:: shell-session |
| 69 | +
|
| 70 | + sudo ztp -d |
| 71 | +
|
| 72 | +If there is no DHCP server in the OOB management network, then IP/Gateway/DNS information must be configured manually: |
| 73 | + |
| 74 | +.. code-block:: shell-session |
| 75 | +
|
| 76 | + nv set interface eth0 ip address <IP-ADDRESS/MASK> |
| 77 | + nv set interface eth0 ip gateway <DEFAULT-GATEWAY> |
| 78 | + nv set service dns mgmt server <DNS-SERVER1> |
| 79 | + nv set service dns mgmt server <DNS-SERVER2> |
| 80 | + nv unset interface eth0 ip address dhcp |
| 81 | + nv config apply -y |
| 82 | + nv config save |
| 83 | +
|
| 84 | +
|
| 85 | +4. Netris agent installation. |
| 86 | + |
| 87 | +Navigate to the Net–>Inventory section and click the three vertical dots (⋮) on the right side of the switch you are provisioning. Then click Install Agent and copy the one-line installer command to your clipboard. |
| 88 | + |
| 89 | +.. image:: images/Switch-agent-installation-Inventory-cl5.9.png |
| 90 | + :align: center |
| 91 | + |
| 92 | +.. image:: images/Switch-agent-installation-oneliner-cl5.9.png |
| 93 | + :align: center |
| 94 | + |
| 95 | +.. image:: images/Switch-agent-installation-cli-cl5.9.png |
| 96 | + :align: center |
| 97 | + |
| 98 | +6. Reboot the switch |
| 99 | + |
| 100 | +.. code-block:: shell-session |
| 101 | +
|
| 102 | + sudo reboot |
| 103 | +
|
| 104 | +7. Netris agent connected to the controller. |
| 105 | + |
| 106 | +.. image:: images/Switch-agent-installation-Inventory-online-cl5.9.png |
| 107 | + :align: center |
| 108 | + |
| 109 | +Once the switch is back, the Heartbeat status should be "OK" in the Netris controller. |
0 commit comments