The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-05-2004
s93366's Avatar
s93366 s93366 is offline
Registered User
  
 

Join Date: Apr 2002
Location: Sweden / Stockholm
Posts: 168
login as root
check what interfaces you would like use (ifconfig -a)..

to enable the interface for dhcp do this as root

cat /dev/null > /etc/hostname.XXX
cat /dev/null > /etc/dhcp.XXX

where XXX is the name of the network interface like hme0, qfe0, eri0, ce0, bge0 or something like that..

after you are done with that simple reboot or issue the following command to make the change right away if you cant reboot

ifconfig XXX dhcp start

The following commands can be used to display the DHCP lease information and release the DHCP lease, respectively:

ifconfig XXX dhcp status
ifconfig XXX dhcp release

/Peter