enable dhcp at startup

anyone know how to enable a ip at startup on S10 ?

# ifconfig <interface> auto-dhcp
i thought would do that !

create a file like "/etc/interfacename.dhcp"

On some servers, you can do that from the ALOM or SC. if not ,as DukeNude2 suggested, perform the following:
touch /etc/hostname.hme0
touch /etc/hme0.dhcp

in the file /etc/nsswitch.conf You'll have to add dns after files at the host
entry (see /etc/nsswitch.dns) "hosts files dns"
Then You have to add the nameserver(s) in /etc/resolv.conf (may have to create it first)
Example for resolv.conf:
nameserver 192.168.1.1
nameserver 192.168.1.2

reboot and verify

nothing doing!

  • have touched hme0.dhcp & dhcp.hme0, <hostname>.dhcp
  • nsswitch.conf ; hosts: files dns
  • nsswitch.dns: hosts: files dns
  • # svcadm enable dns/client (was disabled)
  • /etc/hosts ; <ip>. loghost <hostname>

i'm sure i'm mssing something but dhcp sdoesn't start manually (is effective on # ifconfig <interface> auto-dhcp

if the service is disabled, you can do a svcs -xv to check any dependencies that is disabling it from starting i guess....

dhcp.hme0 and <hostname>.dhcp make no sense.

Is your network interface name "hme0" ?

sorry guys.. my typo.. it should be /etc/<interface>.dhcp

Yes, i got a little confused about that to but assume it was a typr & meove the file anyway -nothing happing....

I have multiple interfaces with the primary interface having a DHCP flag & the necessary interface not actually hme0) not. The primary interface has been dveloping drop off connections - it's brand new

Anyway, i cut things short by doing the drastic ( sys-unconfig )even though solaris supports dhcp on multiple interfaces

Problem sovled, not the right way

tx incred. dn2, & jill.