This quick start guide provides an end-to-end setup process for installing and running NVOS.
Before you run NVUE commands, refer to NVIDIA User Experience (NVUE).
NVOS supports configurations through NVUE only. Running Linux commands or directly modifying underlying Linux files might result in undefined behavior.
Prerequisites
This guide requires intermediate-level Linux knowledge, including text editing, Unix file permissions, and process monitoring. NVOS includes several preinstalled text editors, such as vi and nano.
You need access to a Linux or UNIX shell. On Windows, NVIDIA recommends a Linux environment such as Cygwin as your command-line tool for working with NVOS.
If you are moving from MLNX-OS to NVOS, refer to Moving from MLNX-OS to NVOS.
Get Started
NVOS provides two methods for initial provisioning:
Manual Provisioning
When NVOS starts for the first time, the management port sends a DHCP request. To find the IP address of the switch, look up the MAC address of the switch on your DHCP server. The MAC address is usually on the side of the switch or on the box that the switch ships in.
Login Credentials
The default installation includes two accounts:
-
The user account (admin) has
sudoprivileges. The admin account uses the default passwordadmin. -
The user account (monitor) has read-only privileges. The monitor account uses the default password
monitor.
When you first log in, you must change the default passwords for the admin and monitor accounts. The new passwords must comply with the default password hardening rules. For more information, refer to Password Hardening.
NVOS treats the new password like any other configuration change. If you do not save the configuration, you must set the password again after the next reboot.
You are required to change your password immediately (administrator enforced).
███╗ ██╗██╗ ██╗ ██████╗ ███████╗
████╗ ██║██║ ██║██╔═══██╗██╔════╝
██╔██╗ ██║██║ ██║██║ ██║███████╗
██║╚██╗██║╚██╗ ██╔╝██║ ██║╚════██║
██║ ╚████║ ╚████╔╝ ╚██████╔╝███████║
╚═╝ ╚═══╝ ╚═══╝ ╚═════╝ ╚══════╝
WARNING: Your password has expired.
You must change your password now!
New password:
Retype new password:
In this quick start guide, use the admin account to configure NVOS.
All accounts except root can log in remotely over SSH. The default SSH auto-logout time is 15 minutes.
NVOS supports multiple local and remote services to authenticate users and authorize switch tasks.
For more information, refer to Authentication Authorization and Accounting.
Serial Console Management
NVIDIA recommends that you manage and configure the switch over the network, either in-band or out-of-band. NVOS also fully supports a serial console.
Switches typically ship from the manufacturer with a mating DB9 serial cable. Switches with ONIE always use a 115200 baud rate.
Recommended Serial Connection Settings
|
Parameter |
Setting |
|---|---|
|
Baud Rate |
115200 |
|
Data bits |
8 |
|
Stop bits |
1 |
|
Parity |
None |
|
Flow Control |
None |
Wired Ethernet Management
An NVOS switch provides two dedicated Ethernet management ports, eth0 and eth1. These interfaces are for out-of-band management only. By default, the management interfaces use DHCP for addressing.
Set Static IP Address
To set a static IPv4 or IPv6 address, run the following commands:
admin@nvos:~$ nv set interface eth0 ipv<4/6> address 192.0.2.42/24
admin@nvos:~$ nv set interface eth0 ipv<4/6> gateway 192.0.2.1
admin@nvos:~$ nv config apply
When you configure a static IP address, the switch sends unsolicited announcement messages to the gateway to reveal its MAC address.
Configure the Hostname
The hostname identifies the switch, so configure a unique and descriptive hostname. For more information, refer to Hostname.
Configure the System Clock
NVOS uses the system clock to display the time and to timestamp messages. You can set the system time zone and clock.
Manual Settings
Time Zone
The default time zone is Coordinated Universal Time (UTC). To change the time zone, run the following commands:
admin@nvos:~$ nv set system date-time timezone Etc/UTC
admin@nvos:~$ nv config apply
Clock
You can change the system date and time manually. NTP servers that are configured on the switch override any date and time that you set manually.
admin@nvos:~$ nv action change system date-time 2024-12-24 10:25:13
NTP
NVOS supports Network Time Protocol (NTP) for synchronizing the time of the system.
NTP Servers from DHCP
By default, NTP obtains the NTP servers from DHCP. To disable this, run the following commands:
admin@nvos:~$ nv set system ntp dhcp disabled
admin@nvos:~$ nv config apply
Configure NTP Servers
To add an NTP server, run the following commands:
admin@nvos:~$ nv set system ntp server 10.11.100.5
admin@nvos:~$ nv config apply
You can configure NTP to accept packets only from an authenticated source. NTP authentication is disabled by default.
To authenticate incoming NTP packets, create an authentication key. To make sure that NVOS uses the key, complete the following steps:
-
Enable NTP authentication:
admin@nvos:~$ nv set system ntp authentication enabled admin@nvos:~$ nv config apply -
Add an NTP key and associate it with the server:
admin@nvos:~$ nv set system ntp key 15 value SECRET admin@nvos:~$ nv set system ntp key 15 trusted yes admin@nvos:~$ nv set system ntp server 10.11.100.5 key 15 admin@nvos:~$ nv config apply -
Configure the NTP server to use the same key.
NVOS supports additional attributes for NTP servers and keys. For more information, refer to NTP Commands.
Configure Syslog Servers
To send syslog messages to one or more centralized logging servers, run the following commands:
admin@nvos:~$ nv set system syslog server 10.20.30.40
admin@nvos:~$ nv config apply
For more syslog configuration options, refer to Remote Logging.
Test Cable Connectivity
By default, NVOS enables all data plane ports (every InfiniBand port). To view link status, run the nv show interface command or nv show platform transceiver.
When running NVUE commands to configure the switch, run the nv config save command before you reboot. The command saves the applied configuration to the startup configuration so that the changes persist after the reboot.
admin@nvos:~$ nv config save
Configure Connection-Mode in an InfiniBand Interface
The connection-mode attribute indicates the type of peer that the port connects to. This feature applies only to the Q3200-RA system, which can connect to NDR (or older) systems and to XDR systems.
If the port connects to an XDR system, set connection-mode to XDR. If the port connects to an NDR system, set connection-mode to NDR. By default, all ports use connection-mode XDR.
When you connect a port to an NDR system, set the port connection-mode to 'ndr' with the set command (nv set interface link connection-mode) so that the link comes up with full functionality. When you change the connection mode, the port goes down and comes back up after the configuration completes.
Last updated: