Operating System - HP-UX
1834261 Members
70706 Online
110066 Solutions
New Discussion

Re: Lan configuration problem

 
SOLVED
Go to solution
vjta
Regular Advisor

Lan configuration problem

Hi all!

I m facing one problem in my rx2660 server lan configuration.
When i reboots this server ip configuration changed & its not showing any interface in "netstat -nr" where as in my netconf file all entries are proper also its working when i configured manually thru SAM but settings lost once i reboot. I have removed all conf files form /etc/rc.config.d & this is contains only netconf file having 444 permition with root:sys .I tried for set_params addl also,but its not doing giving same problem.
I copied basic config file from /usr/newconfig/etc/rc.config.d also still problem persists.

regards
Vjta

Vijeta Bhedi
18 REPLIES 18
vjta
Regular Advisor

Re: Lan configuration problem

The Os is Hp-ux 11.31
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: Lan configuration problem

Jeeshan
Honored Contributor
Solution

Re: Lan configuration problem

and also see the docs in

http://docs.hp.com/en/hpux11iv3.html
a warrior never quits
vjta
Regular Advisor

Re: Lan configuration problem

hi ahsan
thanks for ur contribution but my lan card is configured properly only problem is its releasing settings after rebooting.
I want to keep settings permanently.

regards
vjta
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: Lan configuration problem

set the ip using command

#set_parms ip_address
a warrior never quits
vjta
Regular Advisor

Re: Lan configuration problem

Thanks ahsan but i tried that also.

regards
vjta
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: Lan configuration problem

the ownership of netconf file should be bin:bin

did you set the gateway address?
a warrior never quits
TTr
Honored Contributor

Re: Lan configuration problem

> I have removed all conf files form /etc/rc.config.d & this is contains only netconf file having 444 permition with root:sys

Why? All these are critical system initialization files.

Did you look in /etc/rc.log to see if there are any errors in the startup sequence?

Can you post the netconf file (without the comments)
vjta
Regular Advisor

Re: Lan configuration problem

hi Ttr

i hav removed only backup copies of netconf files from /etc/rc.config.d

then i copied fresh netconf file from /usr/neconfig/etc/rc.config.d/netconf

i also configured lan interface using set_params ip_address,gateway using set_params addl_network,at this stage my interface is up & accessible from network but the problem is after rebooting same interface is not accessible from network.
#ifconfig lanxx
ifconfig:no such interface

whereas netconf is showing same entries also net service is also running. in rc.log no error coming.

regards
vjta
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: Lan configuration problem

after reboot what is your lanscan output
a warrior never quits
vjta
Regular Advisor

Re: Lan configuration problem

after reboot in lanscan all interfaces are UP

regards
vjta
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: Lan configuration problem

post your lanscan and ifconfig lan0 output here
a warrior never quits
vjta
Regular Advisor

Re: Lan configuration problem

#netstat -nr
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
127.0.0.0 127.0.0.1 U 0 lo0 32808


#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/1/0 0x001A4B0755DA 0 UP lan0 snap0 1 ETHER Yes 119
0/0/0/1/1 0x001A4B0755DB 1 UP lan1 snap1 2 ETHER Yes 119
0/0/12/1/0 0x001A4B0757D4 5 UP lan5 snap5 7 ETHER Yes 119

----cut----

#ifconfig lan0
ifconfig: no such interface
#ifconfig lan7
ifconfig: no such interface

-cut-----------------


regards
vjta
Vijeta Bhedi
TTr
Honored Contributor

Re: Lan configuration problem

Post the netconf file.

According to the lanscan output the valid lan devices are lan0, 1, 5.
rick jones
Honored Contributor

Re: Lan configuration problem

It has been a while since I played with those parts of HP-UX, but is it really ok to have backup copies of rc.config.d files in /etc/rc.config.d itself?

IIRC there is a boot time log - rc.log? - that may help shed light on what is happening. Perhaps it also gets copied into syslog.
there is no rest for the wicked yet the virtuous have no pillows
Tim Nelson
Honored Contributor

Re: Lan configuration problem

Do NOT create "backup" copies in /etc/rc.config.d

During system boot the rc script parses every file in /etc/rc.config.d no matter what it is called.

Depending on the name of the backup file its contents will override others.

See man rc or read through any one of the /sbin/init.d/ boot scripts.

vjta
Regular Advisor

Re: Lan configuration problem

Hi All!
sorry for the delay & thanks a lot for ur efforts.my problem is solved actually my /sbin/init.d/net file has become 0 size
I copied same file from other location & now its working properly.

but i dont know how this change happened.

Thanks & regards
Vjta
Vijeta Bhedi
vjta
Regular Advisor

Re: Lan configuration problem

CLOSED
Vijeta Bhedi