Operating System - HP-UX
1833414 Members
3164 Online
110052 Solutions
New Discussion

Unable to save ip address

 
SOLVED
Go to solution
Nadine Silue
Advisor

Unable to save ip address



Dears,

I use ifconfig lan0 ---------netmask ---------broadcast------------ to set my ip address by when i restart the system the ip address disappear.

Can someone tell me what iam doing wrong?

Or how i can save it permentatly.

PLS.

Nadine
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: Unable to save ip address

Nadine,

To make it permanent, you need to set it in the config file: /etc/rc.config.d/netconf.

You will see something like this:INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="120.2.2.12"
SUBNET_MASK[0]="0xffff0000"
BROADCAST_ADDRESS[0]="130.1.255.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

Make the appropriate changes and they will carry through restart after restart.


Pete

Pete
Ninad_1
Honored Contributor

Re: Unable to save ip address

Hi,

You need to make the changes in the file
/etc/rc.config.d/netconf manually - using vi editor.
Or, you can use SAM to do the changes which will update the mentioned file along with changing the currently assigned ip address.

Regards,
Ninad
Aneesh Mohan
Honored Contributor

Re: Unable to save ip address


Hi Nadine

Because the configuration has not updated in /etc/rc.config.d/netconf

If you are configuring lan using ifconfig command you may need to update netconf file manually (for keeping permenanent)

Configure the lan using SAM ,so it will update the /etc/rc.config.d/netconf file.

Aneesh
Nadine Silue
Advisor

Re: Unable to save ip address



Thanks i will do that and get back to you.

Nadine
Nadine Silue
Advisor

Re: Unable to save ip address



Dears,

Thanks is working now.

:) Nadine