RACADM Subcommand Details 121
setniccfg
NOTE: To use the setniccfg command, you must have Configure iDRAC permission.
NOTE: The terms NIC and Ethernet management port may be used
interchangeably.
Synopsis
racadm setniccfg -d
racadm setniccfg -d6
racadm setniccfg -s <IPv4Address> <netmask> <IPv4
gateway>
racadm setniccfg -s6 <IPv6 Address> <IPv6 Prefix
Length> <IPv6 Gateway>
racadm setniccfg -o
Table2-34 describes the setniccfg subcommand options.
Subcommand Description
setniccfg The setniccfg subcommand sets the iDRAC6 IP address. It displays
an error message if the requested operation could not be performed,
or a success message if the operation completed successfully.
Table 2-34. setniccfg Subcommand Options
Option Description
-d Enables DHCP for the NIC (default is DHCP disabled).
-d6 Enables AutoConfig for the NIC. It is enabled by default.
-s Enables static IP settings. The IPv4 address, netmask, and gateway can be
specified. Otherwise, the existing static settings are used. <IPv4Address>,
<netmask>, and <gateway> must be typed as dot-separated strings.
racadm setniccfg -s 192.168.0.120 255.255.255.0
192.168.0.1
-s6 Enables static IPv6 settings. The IPv6 address, Prefix Length, and the IPv6
Gateway can be specified.