A. nv set interface mgmt ip 20.11.12.13 20.11.12.254
B. interface mgmt0 vrf mgmt ip address 20.11.12.13 20.11.12.254
C. sudo config interface ip add eth0 20.11.12.13/24 20.11.12.254
D. config ip add etho 20.11.12.13/24 20.11.12.254
Explanation:
In SONiC, to assign a static IP address to the management interface, the correct command is:
sudo config interface ip add eth0 20.11.12.13/24 20.11.12.254
This command sets the IP address and the default gateway for the management interface.
SONiC (Software for Open Networking in the Cloud) is an open-source network operating system used on NVIDIA Spectrum-X platforms, including Spectrum-4 switches, to provide a flexible and scalable networking solution for AI and HPC data centers. Configuring the management interface in SONiC is a critical task for enabling remote access and network management. The question asks for the correct command to assign the IP address 20.11.12.13 to the management interface, typically identified as eth0 in SONiC, as it is the default management interface for out-of-band management.
Based on NVIDIA’s official SONiC documentation, the correct command to assign an IP address to the management interface involves using the config command-line utility, which is part of SONiC’s configuration framework. The command sudo config interface ip add eth0 20.11.12.13/24 20.11.12.254 is the standard method to configure the IP address and gateway for the eth0 management interface. This command specifies the interface (eth0), the IP address with its subnet mask (20.11.12.13/24), and the default gateway (20.11.12.254), ensuring proper network connectivity.
Exact Extract from NVIDIA Documentation:
“To configure the management interface in SONiC, use the config interface ip add command. For example, to assign an IP address to the eth0 management interface, run:
sudo config interface ip add eth0 <IP_ADDRESS>/<PREFIX_LENGTH> <GATEWAY>
Example:
sudo config interface ip add eth0 20.11.12.13/24 20.11.12.254
This command adds the specified IP address and gateway to the management interface, enabling network access.”
―NVIDIA SONiC Configuration Guide
This extract confirms that option C is the correct command for assigning the IP address to the management interface in SONiC. The use of sudo ensures the command is executed with the necessary administrative privileges, and the syntax aligns with SONiC’s configuration model, which persists the changes in the configuration database.
Reference: Dell EMC Networking S-Series Basic Switch Management Configuration