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

From the ok prompt, boot up in single user mode, then make whatever changes you need to make.

ok   boot -s

Little confused as to why you are setting the IP manually if you have DHCP?

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.

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.

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.

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