Specifications

Send document comments to ucs-docfeedback@cisco.com
2-11
Cisco UCS C200 Server Installation and Service Guide
OL-20732-02
Chapter 2 Installing the Server
Initial Server Setup
Defining Static Network Settings Using a Script File
This section describes how to define static network settings for multiple servers by automating the
configuration process with a script file.
Step 1 Use a text editor to create a file named network.cfg.
Step 2 Create the contents of network.cfg in the following format. Use only the tags that you want to set.
dhcp-enabled:
v4-addr:
v4-netmask:
v4-gateway:
vlan-enabled:
vlan-id:
vlan-priority:
password:
mode:
redundancy:
For example, to disable DHCP, set IP address, subnet mask, gateway, and user password, you can use the
following sample values:
dhcp-enabled: 0
v4-addr: 10.193.70.102
v4-netmask: 255.255.255.0
v4-gateway: 10.193.70.1
password: nonpasswd
mode:
redundancy:
Step 3 Use a text editor to create a file named startup.nsh. with the following contents:
fs0:
cimcconfig
Step 4 Copy your network.cfg file and your startup.nsh file to a USB thumb drive.
Step 5 Insert the USB thumb drive into a USB port on the server.
Step 6 Press and release the Power button to boot the server.
Step 7 Observe the booting process and press F6 when prompted to enter the BIOS Boot Manager.
Step 8 Select EFI as the boot device and then press Enter.
The server power cycles and launches the configuration utility, which runs the startup.nsh file. Any
errors are printed to the screen and an errors.txt file.
Step 9 Remove the USB thumb drive, alter the network.cfg file with your next IP address, and then insert the
USB thumb drive into the next server that you want to configure.
Step 10 After the server has been assigned an IP address, you can use that address to access the service
processor’s GUI or CLI management system. See the Cisco UCS C-Series Rack-Mount Server
Configuration Guide or the Cisco UCS C-Series Rack-Mount Server CLI Configuration Guide.