Operating System - HP-UX
1824975 Members
4406 Online
109678 Solutions
New Discussion юеВ

In HPUX how to create logical interface using C

 
jagobbur
Occasional Advisor

In HPUX how to create logical interface using C

Hi,
In hpux, i want to create logical interface using C language provided inputs i.e. IPaddress, netmask, interfacename.
Pls let me know how to proceed.
5 REPLIES 5
Eric SAUBIGNAC
Honored Contributor

Re: In HPUX how to create logical interface using C

Bonjour,

At least, but not last, you need product B9007AA "HP C/aC++ Developer's Bundle" or B3901BA "HP C/ANSI C".

Regards

Eric
rick jones
Honored Contributor

Re: In HPUX how to create logical interface using C

It isn't clear that HP have documented the procedures used by the ifconfig command. However, if they have, they would/should be somewhere on docs.hp.com.
there is no rest for the wicked yet the virtuous have no pillows
ajin
Frequent Advisor

Re: In HPUX how to create logical interface using C

hi
below link help you
http://docs.hp.com/en/B2355-90672/ch03s10.html

Thanks
Ajin
Laurent Menase
Honored Contributor

Re: In HPUX how to create logical interface using C

Hi,

in fact there is no public interface to create them.
So you should use
system("/usr/sbin/ifconfig lanx:y ipaddress netmask sonetmask ");

Dennis Handly
Acclaimed Contributor

Re: In HPUX how to create logical interface using C

>Ajin: below link help you

Your link had to do with LVMs, not networking.