Operating System - HP-UX
1838135 Members
3255 Online
110124 Solutions
New Discussion

Config files for IP Logical Interface

 
OLIVA_1
Regular Advisor

Config files for IP Logical Interface

Hello,

I would like know which configuration files is concerned by "IP Logical Interface" ?
I know how I can add/remove/modify an IP Logical Interface via SAM, but I don't know where are the files which contain IP Logical Interface configuration ?

Thanks,
15 REPLIES 15
Warren_9
Honored Contributor

Re: Config files for IP Logical Interface

Hi,

The network interface is configure in the /etc/rc.config.d/netconf.

GOOD LUCK!
Sergejs Svitnevs
Honored Contributor

Re: Config files for IP Logical Interface

/etc/rc.config.d/netconf and /etc/hosts files contain the ip addresses of all interfaces.

Regards
OLIVA_1
Regular Advisor

Re: Config files for IP Logical Interface

No, /etc/rc.config.d/netconf file doesn't manage "IP Logical Interface"...
RAC_1
Honored Contributor

Re: Config files for IP Logical Interface

File /etc/rc.config.d/netconf manages it.

IP_ADDRESS[1]=xx.y.z.er
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan0
BROADCAST_ADDRESS[1]=aa.b.d.cc
INTERFACE_STATE[1]=up
There is no substitute to HARDWORK
OLIVA_1
Regular Advisor

Re: Config files for IP Logical Interface

This is my /etc/rc.config.d/netconf file :

saro121:(/var/sam/log)(root)#cat /etc/rc.config.d/netconf | grep -v ^#

HOSTNAME="saro121"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1


INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.5.28
SUBNET_MASK[0]=
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""


ROUTE_MASK[0]=""
ROUTE_ARGS[0]=""


GATED=0
GATED_ARGS=""


RDPD=0


RARP=0


DEFAULT_INTERFACE_MODULES=""
IP_ADDRESS[2]=192.168.75.2
SUBNET_MASK[2]=255.255.255.0
INTERFACE_NAME[2]=lan2
BROADCAST_ADDRESS[2]=192.168.75.255
INTERFACE_STATE[2]=up
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=192.168.5.1
ROUTE_COUNT[0]=1
saro121:(/var/sam/log)(root)#



This is my IP Logical Interfaces configured:

saro121:(/var/sam/log)(root)#netstat -rn
IPv4 Routing tables:
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.5.33 192.168.5.33 UH 0 lan0:2 4136
192.168.5.32 192.168.5.32 UH 0 lan0:1 4136
192.168.5.34 192.168.5.34 UH 0 lan0:3 4136
192.168.5.28 192.168.5.28 UH 0 lan0 4136




Where do you see IPs 192.168.5.32, 192.168.5.33, 192.168.5.34 ????

Sergejs Svitnevs
Honored Contributor

Re: Config files for IP Logical Interface

netconf file manages logical interface:

http://docs.hp.com/en/B2355-90796/ch03s04.html
Torsten.
Acclaimed Contributor

Re: Config files for IP Logical Interface

Do you use additional software like APA or ServiceGuard?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sยภเl Kย๓คг
Respected Contributor

Re: Config files for IP Logical Interface

Hi,

Check the timestamp of /etc/rc.config.d/netconf file to find out any modifications happend to this file when you added Logical interfaces using SAM

HPUNIX has /etc/rc.config.d/netconf file to store interface related setting default.

Can you try restarting net service and check #netstat -rn

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Sยภเl Kย๓คг
Respected Contributor

Re: Config files for IP Logical Interface

Hi,

And also try netstat -r, and ensure all hosts shown in the o/p is the same.


Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Torsten.
Acclaimed Contributor

Re: Config files for IP Logical Interface




Please provide the output of

# lanscan



Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sergejs Svitnevs
Honored Contributor

Re: Config files for IP Logical Interface

Could you post the output of "netstat -in" and your netconf file also?

Regards
OLIVA_1
Regular Advisor

Re: Config files for IP Logical Interface


That's my lanscan output :

saro121:(/var/sam/log)(root)#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x0014C26565DE 0 UP lan0 snap0 1 ETHER Yes 119
0/1/2/1 0x0014C26565DF 1 UP lan1 snap1 2 ETHER Yes 119
0/2/1/0 0x0012799D92B7 2 UP lan2 snap2 3 ETHER Yes 119
saro121:(/var/sam/log)(root)#




Yes I have Service Guard installed on this serveur.




saro121:(/var/sam/log)(root)#netstat -in
IPv4:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0:1 1500 192.168.5.0 192.168.5.32 49412492 0 238533 0 0
lan2 1500 192.168.75.0 192.168.75.2 2293001 0 1176071 0 0
lan0:3 1500 192.168.5.0 192.168.5.34 24309 0 5398 0 0
lan1* 1500 none none 0 0 0 0 0
lan0:2 1500 192.168.5.0 192.168.5.33 14902049 0 96792 0 0
lan0 1500 192.168.5.0 192.168.5.28 995736580 0 535127527 0 0
lo0 4136 127.0.0.0 127.0.0.1 4044697 0 4044697 0 0

IPv6:
Name Mtu Address/Prefix Ipkts Opkts
lan1* 1500 none 0 0
lo0 4136 ::1/128 6000 6000
saro121:(/var/sam/log)(root)#



Torsten.
Acclaimed Contributor

Re: Config files for IP Logical Interface

Consider these are your clusters package addresses.
see man cmquerycl for details.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
OLIVA_1
Regular Advisor

Re: Config files for IP Logical Interface

I know it is linked with my cluster pkg.
But I don't understand why I can't find nothing about this IP logical interface configuration in some conf files.
I find some information via SAM tool...

It's strange...
Torsten.
Acclaimed Contributor

Re: Config files for IP Logical Interface

It's not that strange.

Your cluster config files are typically under

/etc/cmcluster

there are directories for the different packages. There is the control file. In this file are the configured IP addresses for the package

e.g.

#IP ADDRESSES
IP[0]=192.168.2.100
SUBNET[0]=255.255.255.0

This is was you're looking for.

see "man cmgetconf" or "man cmquerycl"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!