Management Interfaces
Management interfaces are used in order to provide access to switch management user interfaces (e.g., CLI, openAPI).
NVIDIA switches support out-of-band (OOB) dedicated interfaces (e.g., eth0). In addition, most NVIDIA switches feature a serial port that provides access to the CLI only.
The management interface uses DHCP for addressing by default.
To set a static IP address (for example):
admin@nvos
:~$ nv set interface
eth0 ip address 192.0
.2.42
/24
admin@nvos
:~$ nv set interface
eth0 ip gateway 192.0
.2.1
admin@nvos
:~$ nv config apply
To help setups with static IP to detect new devices, configuring static IP address will trigger unsolicited announcement messages to the gateway in order to reveal the devices's MAC address. This also applies to static IPv6 addresses.
Physically disconnecting and connecting the cables will also trigger the same messages when static IP addresses are configured.
Set a static IPv6 address. Run:
admin
@nvos
:~$ nv setinterface
eth0 ip address fdfd:fdfd:7
:145
:9a03:9bff:fe6b:6ac/64
admin@nvos
:~$ nv config applyVerify the IPv6 address is configured correctly. Run:
admin
@nvos
:~$ nv showinterface
eth0
To configure manually the default gateway, use the “nv set interface eth0 ip gateway” 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.
To enable DHCP client and DHCPv6 client state on Management (eth0, eth1) interfaces use the following commands:
nv set interface <interface-id> ip dhcp-client state <enabled | disabled>
nv set interface <interface-id> ip dhcp-client6 state <enabled | disabled>
Enabling DHCP client on management interface (eth0, eth1) automatically enables DHCPv6 client and vice-versa.