Ifconfig command, Syntax, Description – Lenovo ThinkServer TD200 User Manual
Page 89: Example

Option
Description
-d
Assigned domain name
-dns1
Primary DNS server IP address
-dns2
Secondary DNS IP address
-dns3
Tertiary DNS server IP address
ifconfig command
Syntax
ifconfig eth0 [options]
options:
-state interface_state
-c config_method
-i static_ip_address
-g gateway_address
-s subnet_mask
-n hostname
-r data_rate
-d duplex_mode
-m max_transmission_unit
-l locally_administered_MAC
Description
Use the ifconfig command to configure the Ethernet interface. Type ifconfig eth0
to display the current Ethernet interface configuration. To change the Ethernet
interface configuration, type the options, followed by the values. To change the
interface configuration, you must have at least Adapter Networking and Security
Configuration authority.
The following table shows the arguments for the options.
Option
Description
Values
-state
Interface state
disabled, enabled
-c
Configuration method
dhcp, static, dthens (dthens corresponds to the try
dhcp server, if it fails use static config
option on the
Web interface)
-i
Static IP address
Valid IP address format
-g
Gateway address
Valid IP address format
-s
Subnet mask
Valid IP address format
-n
Host name
String of up to 63 characters. Can include letters,
digits, periods, underscores, and hyphens.
-r
Data rate
10, 100, auto
-d
Duplex mode
full, half, auto
-m
MTU
Numeric between 60 and 1500
-l
LAA
MAC address format. Multicast addresses are not
allowed (the first byte must be even).
Example
system> ifconfig eth0
-state enabled
-c dthens
-i 192.168.70.125
Chapter 7. Command-line interface
83