Changing IP address with set_params


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Changing IP address with set_params
# 1  
Question

I want to change the IP address of my computer (743i card using HP-UX 10.2) using "set_params ip_address". The problem is the following:

1. I'm using a touch panel to enter in the IP address.

2. The set_params routine asks two questions; do I want to use the IP address entered and do I want to reboot.

Is there a way to pass the IP address (entered in with the touch panel) to the set_params routine and have it modify the IP address and reboot without asking for permission to do so?
# 2  
You would have to modify the set_parms script to be able to do this.

All this script does is modify the /etc/rc.config.d/netconf and /etc/hosts files. It might be easier to do this directly using the input from the touch screen. You could then run

/sbin/init.d/net stop ; /sbin/init.d/net start

to make the changes take effect immediately without rebooting.
# 3  
Quote:
Originally posted by PxT
modify the /etc/rc.config.d/netconf and /etc/hosts files. It might be easier to do this directly using the input from the touch screen. You could then run

/sbin/init.d/net stop ; /sbin/init.d/net start

to make the changes take effect immediately without rebooting.
So it's not necessary to reboot the system after I modify the above files with the new IP address?
# 4  
Quote:
So it's not necessary to reboot the system after I modify the above files with the new IP address?
Not unless you are running Windows! Smilie

Seriously though, modern Unix systems can make many configuration changes without requiring a reboot. This is one good example. The "net stop" command I gave you will halt the networking, and the "net start" will restart it. So your downtime will be a few seconds while you type these commands, instead of waiting to reboot which can take forever on an HP-UX box Smilie
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #1009
Difficulty: Easy
The number 128 in base 10 equals 64 in base 16.
True or False?

10 More Discussions You Might Find Interesting

1. IP Networking

Changing IP address

My work has a Unix based system that currently has the IP address 192.9.2.25 We recently changed internet providers from DSL to Cable. By doing so, we had to get a new router (Belkin) since the DSL provider had a wireless router/modem in one. With the DSL setup, I was able to change the router's... (2 Replies)
Discussion started by: Len351
2 Replies

2. AIX

changing ip address

Hi, I am using aix 5300-07, I am facing strange issue in aix. I have changed the ip address and gateway of aix server , it is showing the right ip address but it is taking old gateway ip address. I have used netstat -r command and found it is showing 2 Default gateway. I want to... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. UNIX for Dummies Questions & Answers

HOW TO Changing ip address advice

Hi, I am new to solars admin. My company want to change the ip adress presently it is 10 series they want to 20 serices i have done like this 1) #ifconfig -a (to check the interface) 2) #ifconfig <interface> new ipaddress up 3) #vi /etc/hosts 20.*.*.* wq! presently my version is 9 please... (3 Replies)
Discussion started by: phatan
3 Replies

4. Post Here to Contact Site Administrators and Moderators

changing my email address

Hello, Is there a link somewhere to my profile where I can change my email address to my new work email address? I have a new job and would like to receive a notification of responses to my new work address - how can I get that address to you without posting it online for everyone to see? ... (1 Reply)
Discussion started by: tekster757
1 Replies

5. Windows & DOS: Issues & Discussions

Changing IP address

Hi ,,, i just come across this forum and i make it a must to be pay a visit here everyday and through it am learning a lots of things which am sure i will be able to share later... So i have a prob with my pc when i try to change my Ip address in the dos command using ipconfig command i got a... (1 Reply)
Discussion started by: Lutchumaya
1 Replies

6. IP Networking

changing MAC address

hi, i wanted to know how to change the MAC id of the machine i`m using.. I know the MAC is permanent n on the ROM, but i wanted to know if there was any way to change it during tht particular session.. also.. if it was possible.. could it be kept changed for sometime...? (8 Replies)
Discussion started by: caltiger
8 Replies

7. IP Networking

Changing the ip address

Help me save my Unix box. I've had this Unix box (Enterprise 450) for about 7 years now. It was being used as a file server for a Macintosh Prepress department. All of our networking was done through Helios Etharshare. I am still currently up and online (however the location has changed). Our ip... (1 Reply)
Discussion started by: ubed
1 Replies

8. AIX

Changing the IP Address

I need to change the IP address on one of your Unix machines - P630, AIX5.2. I plan on using SMIT to perform this function. These are the steps that I have put together so far: 1. Select Communications Applications & Services - Select TCP/IP - Select Minimun Configuration & Startup... (2 Replies)
Discussion started by: jyoung
2 Replies

9. UNIX for Dummies Questions & Answers

Changing IP address

Hi, I am going to shift my Unix workstation to another lab. So I need to change the IP address. Please tell me how to change the Network IP address, what is the commands, what to take care? Thank you very much and have a very nice day. (4 Replies)
Discussion started by: champion
4 Replies

10. UNIX for Advanced & Expert Users

Changing Machine IP address

Hopefully someone can help with this. I need the command to change the IP address on a machine (7 Replies)
Discussion started by: kkinnon
7 Replies

Featured Tech Videos