Skip to main content

dhcpinfo command

Use this command to view the DHCP server-assigned IP configuration for eth0.

Use the dhcpinfo command to view the DHCP server-assigned IP configuration for eth0, if the interface is configured automatically by a DHCP server. You can use the ifconfig command to enable or disable DHCP.

Syntax:
dhcpinfo [ethernet_number]
Example:
dhcpinfo eth1
The following table describes the output from the example.
Table 1. dhcpinfo output
FieldDescription
-serverDHCP server that assigned the configuration
-nAssigned host name
-iAssigned IPv4 address
-i6Assigned IPv6 address
-gAssigned gateway address
-sAssigned subnet mask
-dAssigned IPv4 domain name
-d6Assigned IPv6 domain name
-dns1Primary IPv4 DNS server IP address
-dns2Secondary IPv4 DNS IP address
-dns3Tertiary IPv4 DNS server IP address
-i6IPv6 address
-d6IPv6 domain name
-dns61Primary IPv6 DNS server IP address
-dns62Secondary IPv6 DNS IP address
-dns63Tertiary IPv6 DNS server IP address
Syntax:
system> dhcpinfo
usage:
dhcpinfo eth0 - Display the DHCP settings for eth0
dhcpinfo eth1 - Display the DHCP settings for eth1
-server - DHCP server
-n - hostname
-i - IP address
-i6 - IPv6 address
-g - gateway
-s - subnet mask
-d - domain name
-d6 - IPv6 domain name
-dns1 - primary DNS server
-dns2 - secondary DNS server
-dns3 - tertiary DNS server
-dns61 - IPv6 primary DNS server
-dns62 - IPv6 secondary DNS server
-dns63 - IPv6 tertiary DNS server

system> dhcpinfo eth0
-server : 10.240.199.172
-n : XCC-7DFY-1234567890
-i : 10.240.216.168
-i6 :
-g : 10.240.216.1
-s : 255.255.255.0
-d : labs.lenovo.com
-d6 :
-dns1 : 10.240.199.172
-dns2 : 10.240.199.173
-dns3 :
-dns61 :
-dns62 :
-dns63 :