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 eth0
Example:
system> dhcpinfo eth0
-server : 192.168.70.29
-n : IMM2A-00096B9E003A
-i : 192.168.70.202
-g : 192.168.70.29
-s : 255.255.255.0
-d : linux-sp.raleigh.ibm.com
-dns1 : 192.168.70.29
-dns2 : 0.0.0.0
-dns3 : 0.0.0.0
<span className="ph">-i6 : 0::0
-d6 : *
-dns61 : 0::0
-dns62 : 0::0
-dns63 : 0::0
</span>
system>
The following table describes the output from the example.Option | Description |
---|---|
-server | DHCP server that assigned the configuration |
-n | Assigned host name |
-i | Assigned IPv4 address |
-g | Assigned gateway address |
-s | Assigned subnet mask |
-d | Assigned domain name |
-dns1 | Primary IPv4 DNS server IP address |
-dns2 | Secondary IPv4 DNS IP address |
-dns3 | Tertiary IPv4 DNS server IP address |
-i6 | IPv6 address |
-d6 | IPv6 domain name |
-dns61 | Primary IPv6 DNS server IP address |
-dns62 | Secondary IPv6 DNS IP address |
-dns63 | Tertiary IPv6 DNS server IP address |
Give documentation feedback