How to get rid of DCHP


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to get rid of DCHP
# 1  
Old 12-27-2001
Question How to get rid of DCHP

Hi all:-

I am using Sun8 Intel PC in a network and have IP allocated by DHCP. Now I got a static IP and want to configure my PC for this new IP and disable DHCP. How can I do that ?

Thanks in advance
# 2  
Old 12-28-2001
Regarding DHCP

U can simply use the command "netconfig" at the terminal.
However, u must be the administrator in order to do so.

Simply follow the instructions on the screen and u will get wat u wan !
# 3  
Old 12-28-2001
Thanks, but 'netconfig' command is not working on SunOs.
It saidk 'not found'
Any other idea
# 4  
Old 12-28-2001
yea I got it in /etc/netconfig
But when I execute this command it gave me the following messages:
./netconfig: udp6: not found
./netconfig: tcp6: not found
./netconfig: udp: not found
./netconfig: tcp: not found
.....

What shoud I do ?
# 5  
Old 12-29-2001
DCHP

Ok ! Since netconfig didn't work on your machine. Try using the ifconfig command. It should work.
# 6  
Old 12-31-2001
smartybob, ifconfig will work, but only one time. s_aamir need to adjust things so that the start up scripts run differently after a reboot.

I have never used dhcp, but I have been looking at Sun's startup scripts. I think that you currently have a file something like /etc/dhcp.* which should be removed. And you need a /etc/hostname.* which has the hostname. And then the ip address needs to be in the /etc/hosts file.
# 7  
Old 12-31-2001
Perderabo, yes you are right. I need to configure some scripts or something else at startup.
Well, this is a new workstation on our network, I took a chance and re-install SunOS with static IP and DNS config....and it worked.
Thanks both of you for valuable info.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Two simple questions about Solaris DCHP and Samba

I have two simple questions First is :can dhcp server NATIVE of solaris perform dhcp updates of bind via dnssec like dchpd on linux? Second: Is possible to build a pdc with samba and iplanet ldap server?Or is better with openldap? I never found howto or discussions about iplanet server. Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

2. Shell Programming and Scripting

Getting rid of ^M

I have a text file with hundreds of 32-character hash codes in it, each terminated with a linefeed (/l, or ^M). 185ead08e45a5cbb51e9f7b0b384aaa2 57643e1a17252a9fc746d49c3da04168 60cba11d09221d52aaabb5db30f408a2 2b75ee6e5c2efc31b4ee9a190d09a4df ...... etc. I want to create a file for each... (6 Replies)
Discussion started by: teledon
6 Replies

3. Linux

How to get rid of ^m

Hi all, I am new to unix....pls help me with this. I have a binary file generating output by passing arguments in bash.when i open the output file in VI i can see that ^m is included in between most of lines,as a result when i pass this file to my java application it dosent parse the data... (3 Replies)
Discussion started by: asheshrocky
3 Replies

4. Shell Programming and Scripting

how to get rid of ' from variable?

hi, I want to get rid of ' from my variable value in ksh, and I also want to read the value on the right hand side of = into a variable thanks (10 Replies)
Discussion started by: JamesByars
10 Replies

5. UNIX for Dummies Questions & Answers

How to get rid of ^[[D

Hi All, Im selecting a large record from a table and putting it in a file in the unix box. The file has a hidden character "^[[D " present in it. Can any one help me in getting rid of the character Thanks in advance, (4 Replies)
Discussion started by: madhan@29
4 Replies

6. Shell Programming and Scripting

how to get rid of ^M in the file

Hi I have a file wich contains ^M characters, looks like these are from DOS, Is there a way to get rid of them? Thanks -A (3 Replies)
Discussion started by: aoussenko
3 Replies

7. UNIX for Dummies Questions & Answers

how to get rid of ==>

ok the assignment question: That English paper you were writing on the works of Lewis Carroll is due in a few hours and you have forgeotten the name of the text file in which you has written a number of quotations to use in your paper. Luckily, you know that the file is somewhere in your... (1 Reply)
Discussion started by: mek86
1 Replies

8. Solaris

getting rid of ^H

Hello everybody I have a very annoying problem on my Solaris (Unix in general) servers. When I open a shell and press the backspace button, it results in a ^H character being printed on screen. I can resolve it by typing stty erase <backspace>, but does anyone know how I can prevent the... (3 Replies)
Discussion started by: soliberus
3 Replies

9. Windows & DOS: Issues & Discussions

DCHP server assigning a wrong Address

Pls could you help me diagnose my problem. I have a system which is a DHCP server and also the Remote Access Server. The DHCP server allocate normal address within the scope range to the LAN system. why it allocates abitrary number such as 169.254.217.90 255.255.0.0 class B address to the remote... (1 Reply)
Discussion started by: kayode
1 Replies

10. IP Networking

How to get rid of DCHP ?

Hi all:- I am using Sun8 Intel PC in a network and have IP allocated by DHCP. Now I got a static IP and want to configure my PC for this new IP and disable DHCP. How can I do that ? Thanks in advance (3 Replies)
Discussion started by: s_aamir
3 Replies
Login or Register to Ask a Question