Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Integrated Dell Remote Access Controller 8 (iDRAC8) and iDRAC7 Version 2.10.10.10 RACADM Command Line Interface Reference Guide

PDF

setniccfg

Description Sets the iDRAC or CMC IP address for static and DHCP modes.

To run this subcommand, you must have the Configure Chassis Administrator privilege.

  • NOTE: The command helps to modify network configuration properties.
  • 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
  • racadm setniccfg [-m <module>] -d [-6]
  • racadm setniccfg [-m <module>] -s <ipAddress> <netmask> <gateway>
  • racadm setniccfg [-m <module>] -s -6 <ipv6Address> <prefixlen> <gateway>
  • racadm setniccfg [-m <module>] -v [<vlan_id> <vlan_priority>]
  • racadm setniccfg [-m chassis] -o
  • racadm setniccfg –p [-6]
  • racadm setniccfg [-m <module>] -k [<speed> <duplex>]
  • racadm setniccfg [-i <slot>] -v [<vlan_id> <vlan_priority>]
Input
  • -d — Enables DHCP for the NIC. It is enabled by default.
  • -d6 — Enables AutoConfig for the NIC (default is disabled).
  • -s — Enables static IP settings. The IPv4 address, netmask, and gateway must be specified. Otherwise, the existing static settings are used. <ipaddress>, <netmask>, and <gateway> must be typed as dot-separated strings.
    racadm setniccfg -s 192.168.0 255.255.255.0 192.168.0
  • -s6 — Enables static IPv6 settings. The IPv6 address, Prefix Length, and the IPv6 Gateway can be specified.
  • -o — Enable or disable NIC.
  • -m<module> — Must be one of the following values:
    • chassis — Default state if -m is not specified
    • server–<n>: where n=1–16
    • server–<nx>: where n=1–8; x=a–d (lower case)
    • switch–<n>: where n=1–6
  • -v — VLAN settings has following legal values: no arguments imply remove VLAN tag, not compatible with server–nx (for example "server–4b") notation <vlan_id>=between 1 and 4000, 4021 and 4094, inclusive <vlan_priority>=between 0 and 7, inclusive.
  • -p — Disables IPv4(default) or IPv6 protocol.
  • -k — Option has following legal values: no arguments imply autonegotiate <speed>=10, 100 <duplex> =half, full.
  • NOTE:
    • -o, -k, -p: These options can be specified for chassis only
    • -6: Sets static IPv6 addresses (with -soption). Enables autoconfig for IPv6 (with -d option) disables IPv6 (with -p option) can be specified for chassis or servers.
    • -v: When performing on a switch, release and renew any DHCP lease on that port for changes to take effect.
Example
  • To Configure static IPv4 address for iDRAC NIC
    racadm setniccfg -s 192.168.0 255.255.255.0 192.168.0
                                                          Static IP configuration enabled and modified successfully
                                                       
  • Configure DHCP mode for iDRAC IPv4
    racadm setniccfg -d
                                                          DHCP is now ENABLED
                                                       
  • Configure DHCP mode for iDRAC IPv6
    racadm setniccfg -d6
                                                          DHCP6 is now ENABLED
                                                       
  • Configuration of Speed= 100 Mbps and duplex= full duplex.
    racadm setniccfg -k 100 full
  • Configuration of Speed and Duplex to Autonegotiate.
    racadm setniccfg -k
  • Configuration of VLAN id and priority of a slot or all blades in a sleeve.
    racadm setniccfg -i 5 -v 1000  7
  • Configuration of CMC to a static IPv6 address.
    racadm setniccfg -m chassis -s -6 2001:DB8::2 64 2001:DB8::1
  • Configuration of server to use stateless autoconfiguration address.
    racadm setniccfg -m server-1 -d -6
  • Configuration of VLAN id and priority for a switch.
    racadm setniccfg -m switch-1 -v 1000 7
  • Removal of VLAN configuration from a switch.
    racadm setniccfg -m switch-1 -v
  • Configuration of redundant mode
    racadm setniccfg -r 1
                                                             
                                                          

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\