enable dhcp at startup


 
Thread Tools Search this Thread
Operating Systems Solaris enable dhcp at startup
# 1  
Old 07-12-2008
enable dhcp at startup

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

# ifconfig <interface> auto-dhcp
i thought would do that !
# 2  
Old 07-12-2008
create a file like "/etc/interfacename.dhcp"
# 3  
Old 07-13-2008
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
# 4  
Old 07-13-2008
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
# 5  
Old 07-14-2008
if the service is disabled, you can do a svcs -xv to check any dependencies that is disabling it from starting i guess....
# 6  
Old 07-14-2008
Quote:
Originally Posted by stevie_velvet
nothing doing!
- have touched hme0.dhcp & dhcp.hme0, <hostname>.dhcp
dhcp.hme0 and <hostname>.dhcp make no sense.

Is your network interface name "hme0" ?
# 7  
Old 07-14-2008
sorry guys.. my typo.. it should be /etc/<interface>.dhcp
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Enable lpfc changes!

Hi Folks! I am writing a script which changes lpfc.conf if there it has been setup on RHEL BOXes, do I need to put dracut -f for enabling it? I am not sure, Can someone help! (6 Replies)
Discussion started by: nixhead
6 Replies

2. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

3. SCO

Auditing: how to enable?

edit: solution found Auditing Quick Start and Compatibility Notes (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

4. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

5. Fedora

Enable a Key

Hi team, Print Screen key is disabled in my machine. How can i enable it?? How do i do that via command line?? Or tell me in GUI.. Am using Linux Fedora 14 OS. (2 Replies)
Discussion started by: Adhi
2 Replies

6. UNIX and Linux Applications

how do i enable messaging

hi guyz i work as a system administrator for some organization(am a newbie). one of the solaris machines is loaded with the messenger server...all configured by a former administrator. my task was to create user accounts for the mail and calendar services and as i checked its not working .....i... (0 Replies)
Discussion started by: henokia4j
0 Replies

7. Linux

How to enable Hibernate

Hi, I want to enable hibernate in my machine. when i click hibernate option, it is throwing message that hibernate is not enabled in kernel. earlier, i was hibernating in the same machine with windows os. any idea ? Thx in advance. Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies

8. Solaris

enable log

dear all i want to enable the below logs can you help me /var/adm/xferlog /var/spool/uucp/.Admin thanx you (0 Replies)
Discussion started by: murad.jaber
0 Replies

9. Solaris

How to enable rsh

HELP..... How to enable and disable RSH in solaris 8 (4 Replies)
Discussion started by: gini
4 Replies
Login or Register to Ask a Question