With DHCP, where does one find their IP, nameserver and gatewayaddresses?

ape ulist at gs1.ubuntuforums.org
Thu May 5 04:54:14 UTC 2005


If you are on the machine that has gotten its address via DHCP do the
following:



IP address - run `ifconfig <network interface>`, where <network
interface> is the interface that you use to connect to the network;
eth0, eth1, etc...  You should see the assigned IP address in the
output.



nameserver -  `cat /etc/resolv.conf`.  This should give you the
nameserver address



default gateway - `netstat -rn` and look for the IP address under
"Gateway" for the destination address of 0.0.0.0


-- 
ape




More information about the ubuntu-users mailing list