1827293 Members
1620 Online
109717 Solutions
New Discussion

Re: Missing Netconf

 
richard yamin
New Member

Missing Netconf

I removed my netconf file on accident and now I need to know how to create another one. Running Version 10.0
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: Missing Netconf

Do you have a backup that you can restore from? That would be the easiest.
richard yamin
New Member

Re: Missing Netconf

No it is a stand alone work station that I bought to learn hp unix on. I have my old static ip address into and after I move it would not boot up. I looked for a netconf.old file but was unable to locate one. I also can not login to the system I can only run single user mode. But that is another problem.
Printaporn_1
Esteemed Contributor

Re: Missing Netconf

in case you don't have backup , please find new template in
/usr/newconfig/etc/rc.config.d/netconf
enjoy any little thing in my life
richard yamin
New Member

Re: Missing Netconf

/usr is empty whoever installed hpuinx on this ws did not follow the standard install paths there is not even a / for my logon. Iafraid I must recreate it by hand but I cannot even find a editor like vi anywere. all I can do is cat files
Printaporn_1
Esteemed Contributor

Re: Missing Netconf

attachment is template for netconf
enjoy any little thing in my life
richard yamin
New Member

Re: Missing Netconf

thanks for the temp. what to you guy user from single user mode to create files ? This is a diskless workstation
Magdi KAMAL
Respected Contributor

Re: Missing Netconf

Hi Richard,

You may execute the following to reconstruct your /etc/rc.config.d/netconf file :

#lanscan
Will give you all configured lan cards within your system. Catch the names under the column NamePPA ( Name of Physical Point of Attachement, example : lan0).

For each value occurs under NamePPA, apply the following :

#ifconfig lan0
Note info according to :
inet
netmask
broadcast

#netstat -r
Will give you the default gateway IP address( intersection between line default and column Gateway : example : def1).

In your netconf file type :

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=valueOfInet ### from ifconfig command
SUBNET_MASK[0]=valueOfNetmask ### from ifconfig command
BROADCAST_ADDRESS[0]=valueOfBroadcast ### from ifconfig command
INTERFACE_STATE[0]=up
ROUTE_DESTINATION=[0]=default
ROUTE_GATEWAY[0]=valueOfDef1 ### from netstat command


Repeat these steps for each other NamePPA and your /etc/rc.config.d/netconf will be up to date.

Good luck.

Magdi

Magdi KAMAL
Respected Contributor

Re: Missing Netconf

Hi again Richard,

For each other NamePPA ( lan1, lan2, ... ), you must increase the INSTANCE ID .

Example :
For lan1, it will be ( notice the INDEX between [ ] ):

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=inet ### for ifconfig lan1

...etc

For lan2, it will be ( notice the INDEX between [ ] ):

INTERFACE_NAME[2]=lan2
IP_ADDRESS[2]=inet ### for ifconfig lan1

...etc



Magdi