Software >> OS >> Unix >> Solaris >> Networking >> How to configure a network interface for dynamic IP using DHCP

Assuming the interface name is bge0

# touch /etc/dhcp.bge0
# touch /etc/hostname.bge0

both files can be left blank first.

# reboot

After reboot verify the IP address and hostname is set by DHCP
 

# ifconfig bge0
# cat /etc/dhcp.bge0
# cat /etc/hostname.bge0

 

Verified to work in Solaris 10 environment