Cannot boot machine


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cannot boot machine
# 1  
Old 08-22-2006
Cannot boot machine

I have a sun v240 running solaris 9. I recently changed the ip via the ifconfig command but made a mistake when running the command:

ifconfig bge0 (ip address) netmask (ip address)

when i meant to do:

ifconfig bge0 (ip address) netmask ffff0000 broadcast (ip address)

Now when I boot the machine it stops booting because it cannot communicate with NIS via DHCP. All I can get to at this point is the ok prompt.

My queston is can change the I.P from the ok prompt if not, what can I do to correct my mistake? Thanks

Last edited by GLJ@USC; 08-22-2006 at 03:55 PM..
# 2  
Old 08-22-2006
From the ok prompt, boot up in single user mode, then make whatever changes you need to make.
Code:
ok   boot -s

Little confused as to why you are setting the IP manually if you have DHCP?
# 3  
Old 08-22-2006
Quote:
Originally Posted by System Shock
From the ok prompt, boot up in single user mode, then make whatever changes you need to make.
Code:
ok   boot -s


Thanks ,I tried the single user mode and it still wouldnt boot up all the way. It keeps timing out when trying to communicate with NIS.

Quote:
Originally Posted by System Shock
Little confused as to why you are setting the IP manually if you have DHCP?
The way we have it set up here is we assigne ipaddress to the Mac. addresses of our machines using MIP then we have to manually set (or in my case change) the I.P. locally on the machine.
# 4  
Old 08-22-2006
Ok... but it shouldn't be trying to communicate to NIS in single user mode (IIRC). Anyway, if you have a CD handy, boot up from the CD, mount root, then remove or rename /etc/defaultdomain and reboot.


EDIT:
Now that I read your original post again, I think there has to be something else here. the ifconfig command doesn't write to files, so after a reboot, whatever you set with ifconfig would've been lost.

Last edited by System Shock; 08-22-2006 at 05:12 PM..
# 5  
Old 08-22-2006
Thanks for all your help....I got into the machine via single user mode and had to edit /etc/hosts and rename a dir. in /var/yp/binding/ and then create a file 'ypservers' within that directory. after that I was all good
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

2. UNIX for Dummies Questions & Answers

CentOS machine does not boot!

Hello, one of my machine ,does not boot! check the pic and kindly help! Thx in advance! (0 Replies)
Discussion started by: ahmedamer12
0 Replies

3. Solaris

After command setenv auto-boot false machine's console not displaying

hi Alll, I want to install solaris 10 on exixting solaris mahcine. I tried for OK boot cdrom-install but it gave me fatal error - disk not bootable , boot command disable so i tried with ok setenv auto-boot? false Ok reset-all after this server rebooted automatically and... (2 Replies)
Discussion started by: sunray
2 Replies

4. UNIX and Linux Applications

How do I Start postgre SQL automatically when boot my linux machine

Can any body give me the script to start postgre SQL 8.3.1 when boot linux? (2 Replies)
Discussion started by: shiraz
2 Replies

5. Shell Programming and Scripting

How do I Start JBoss automatically when boot my linux machine.

I have created a script file named 'start-jboss' ------------------------------------------------- #!/bin/sh # For starting Jboss JAVA_HOME=/home/argole/jdk/jdk1.6.0_10 export JAVA_HOME cd /home/argole/server/jboss-4.2.0.GA/bin echo "Starting JBOSS server" nohup ./run.sh -c... (25 Replies)
Discussion started by: shiraz
25 Replies

6. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

7. HP-UX

I want to get machine boot up time

I use the uptime command,but it only show how long system has been up up 18 days but I want the this format machine boot time YYYY-MM-DD hh:mm:ss does any command can get that or how to i use program to do this (6 Replies)
Discussion started by: alert0919
6 Replies

8. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

9. Solaris

Sun machine boot up

Hi I am trying to bring up our Sun V100 machine remotely using hyper terminal. We have connected LOM port A to COM1 of our windows server and have lom promt available. Now when we type poweron it starts booting and goes through the booting process and stops at the following step... .... ... (7 Replies)
Discussion started by: chimpu
7 Replies

10. UNIX for Dummies Questions & Answers

Triple Boot Machine

I'm in a predicament right now! I have RedHat 7.2 ,Debian 2.2r5 ,and Windows ME. I am currently in a Sun Solaris 8 class and will soon acquire a copy of Solaris 8. I would like to start a small home network ,but 4 pc's for the house would be a little too expensive for me right now. What I was... (4 Replies)
Discussion started by: bilal_aa
4 Replies
Login or Register to Ask a Question