Operating System - HP-UX
1832645 Members
2611 Online
110043 Solutions
New Discussion

Assigning a new IP address--L1000

 
SOLVED
Go to solution
Kathleen
Regular Advisor

Assigning a new IP address--L1000

How do I go about changing the currently assigned IP address on my L class to a new IP address?
11 REPLIES 11
Craig Rants
Honored Contributor
Solution

Re: Assigning a new IP address--L1000

You can use the ifconfig command to change the ip address temporarily.

To change permanently, edit /etc/rc.config.d/netconf and modify things like default router netmask ip etc... until your have made all the proper substitutions. This file is read when the system boots up and will ensure your changes are good.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Ian Dennison_1
Honored Contributor

Re: Assigning a new IP address--L1000

Use the 'set_parms' utility and modify DNS/hosts file entries, along with possibly the /etc/rc.config.d/netconf file (SAM is also good for this).

Cheers, Ian Dennison
Building a dumber user
Alex Glennie
Honored Contributor

Re: Assigning a new IP address--L1000

#set_parms ip_address

& check with nslookup that hostname and ip address resolution are working afterwards .
Patrick Wallek
Honored Contributor

Re: Assigning a new IP address--L1000

The easiest way:

# set_parms ip_address

The other way is to edit the /etc/rc.config.d/netconf file and the /etc/hosts file.

Be sure you change the IP in your DNS server, if you have one and also in NIS/NIS+ if you happen to use either one of those.
Uday_S_Ankolekar
Honored Contributor

Re: Assigning a new IP address--L1000

Hi,

Hi Bill,

There are couple of ways to change the IP Address.

- set_parms ip_address (for IP) and set_parms addl_netwrk
You can also use ifconfig lan? IP_ADDRESS netmask; route add
SAM is the easy method to change IP !
Or Manually edit the following
a) /etc/rc.config.d/netconf
b) Edit /etc/hosts and keep the entry for the host
c) /sbin/init.d/net stop; /sbin/init.d/net start

-Goodluck,
-USA..
Good Luck..
Sandip Ghosh
Honored Contributor

Re: Assigning a new IP address--L1000

Hi Cathleen,

You can apply this command. It will ask you about what all you want to set.

# set_parms
Usage: set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
font_c-s
or initial (for entire initial boot-time dialog sequence)

Ahter changing the parameter it will reset the Server.

Sandip
Good Luck!!!
Marco Santerre
Honored Contributor

Re: Assigning a new IP address--L1000

just used
ifconfig lancard inet new IP address netmask new netmask up

and change /etc/rc.config.d/netconf to reflect your new changes
Cooperation is doing with a smile what you have to do anyhow.
Sanjay_6
Honored Contributor

Re: Assigning a new IP address--L1000

Hi Kathleen,

Use "/sbin/set_parms ip_address" to change the ip address of the system.

The other options are
hostname : set hostname
timezone : set timezone
date_time : set time and date
root_passwd : set root password
addl_netwrk : set additional network / DNS / NIS info
initial : Reconfigure all install time options.

hope this helps.

Regds
Uday_S_Ankolekar
Honored Contributor

Re: Assigning a new IP address--L1000

Oops..Sorry I got confused with the Name.. Infact I was posting answer to some one else.
Good Luck..
Marco Santerre
Honored Contributor

Re: Assigning a new IP address--L1000

Sorry forgot that HTML wasn't working here..
Cooperation is doing with a smile what you have to do anyhow.
James George_1
Trusted Contributor

Re: Assigning a new IP address--L1000

Use the set_parms utility and will this will
guide you through ! you can also change it manually, by editing /etc/rc.config.d/netconf and your hosts file. remeber to start the net daemon after everything is done. /sbin/init.d/net start / stop
forum is for techies .....heaven is for those who are born again !!