How to change IP in UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to change IP in UNIX
# 1  
Old 09-21-2003
How to change IP in UNIX

Hi Guys,

I have an old unix server (HP 9000) which we just use to view history of data. which has a private IP of 121.1.1.n. At present we change our IP addresses (subnetting) and I have to change the old IP of UNIX to 10.10.4.n.

Could someone help me how to do or what the command is?

thanks a lot.

Henry
# 2  
Old 09-21-2003
see if you have the command 'ifconfig' if you do, then you use that to change your ip.

however these settings will be lost upon reboot. i dont know where your system saves its IP settings. someone here knows but if you need to do it NOW and cant wait for the way to do it properly, you can write a small shell script invoking ifconfig to change your ip address.

have the script run very late in the boot proccess to override the systems (properly) set ip address.
# 3  
Old 09-22-2003
Try the 'sam' command. This will bring up a menu (or GUI if your display is set). You should be able to navigate through the menu (or GUI) without much explanation. Update the netcard info there and exit, this will save the info to the correct files so you will not have to redo anything if the system is rebooted.

Of the top of my head, I can't recall which file(s) get updated.
# 4  
Old 09-22-2003
The file it updates is /etc/rc.config.d/netconf, but if you are unfamiliar with it, sam is your best bet. This file also contains route information.
# 5  
Old 09-22-2003
Another way to do is

set_parms ip_address
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ip change SCO UNIX 3.2.4.2

I had a router change and needed to change the ip in some machines. I have two machines on SCO Unix 3.2.4.2 I changed the IP in my chain(relinked kernel, used as default) and in /etc/hosts on both. One is fine. The other I am unable to get to with putty. Is there anything else I would need to... (11 Replies)
Discussion started by: steveo314
11 Replies

2. UNIX for Dummies Questions & Answers

Change windows to unix

Hi everyone. I have some questions... I have a 2nd pc with windows and i want to change it to unix cause i want to learn unix so can someone tell me how to get unix os and how to change it from windows?:D (6 Replies)
Discussion started by: NParas
6 Replies

3. UNIX for Advanced & Expert Users

Can I change unix to linux?

System: Digital Personal Workstation 433a Processor: Digital Alpha 21164, 433 MHz Memory: 64 MB OS: Digital Unix Console (SRM), Digital Unix V4.0D This type of conmputer run radar application. What i would like to know is whether i can change OS or not. Thanks in advance. (7 Replies)
Discussion started by: akz
7 Replies

4. What is on Your Mind?

The Language of the Unix World should Change

We should put an end to saying "orphan", "kill child", "zombie". Anyone, We should change the awful metaphors used in the language of managing Unix processes. I believe that this still humbly local initiative hides a great importance of how the world of Unix looks and feels to every user. ... (18 Replies)
Discussion started by: tonank
18 Replies

5. UNIX for Advanced & Expert Users

how do change hostname of a unix server

what command do you use to change a unix server name. i've tried hostname, but when the unix server is rebooted, it reverts back to the old server name. regards venhart (3 Replies)
Discussion started by: venhart
3 Replies

6. IP Networking

Change a Unix IP address

I have purchased a Dec unix Ver 3.2c machine that is about ten years old. I need to get this machine on our network (windows 2003 domain) so I can copy files to it. I know I need to change the IP address, but where and how do I change it? What else do I chang? Thanks Randy (8 Replies)
Discussion started by: randy1
8 Replies

7. Shell Programming and Scripting

Script to change UNIX password

My shop has just ordained that all UNIX passwords expire after 45 days. We do NOT have a "single logon" facility, so I will need to logon to each of the servers (15+) I interact with and change my password by hand. I thought I could invoke passwd inside a ksh script as a Here document and... (12 Replies)
Discussion started by: kornshellmaven
12 Replies

8. UNIX for Dummies Questions & Answers

how to change sh to tsch UNIX

My oracle account uses tsch to use .cshrc. "Somehow" it was switch to sh and changed the login environment. My question is who has the right to change sh to tsch or other shells? How can I change back the original setting(tsch) from sh? This is what is appear in my /etc/passwd: ... (2 Replies)
Discussion started by: simt
2 Replies

9. Filesystems, Disks and Memory

How to change permissions in UNIX?

I want to change a file permission which just I can list , read, and write it. So, does anybody can tell me the command? (2 Replies)
Discussion started by: a8111978
2 Replies

10. UNIX for Dummies Questions & Answers

How do I change the time in Unix?

Hi there. This is probably a very stupid question, but... How do I change or set the time in UNIX? I am taking care of a Sun Ultra 5 running SunOS 5.7 and I can't figure out how to change the time. Help. (3 Replies)
Discussion started by: Tannim
3 Replies
Login or Register to Ask a Question