Operating System - HP-UX
1832577 Members
3188 Online
110043 Solutions
New Discussion

Need to know free network interfaces real and virtual one

 
Shivkumar
Super Advisor

Need to know free network interfaces real and virtual one

Dear Sirs,

We have multiple network interface cards with multiple virtual interface configured on hpux boxes.
I wanted to verify what are the interfaces free and not being used or configured for any other application.

I want this information so that i can allocate available network interfaces to other application.

Appreciate your help.

Thanks,
Shiv
4 REPLIES 4
Jeff_Traigle
Honored Contributor

Re: Need to know free network interfaces real and virtual one

You can see the installed NICs with "lanscan". This will also show which device file is associated with each NIC.

To see what addresses are assigned to the NICs, "netstat -in". The ones assigned as virtual addresses will show up in lanX:Y format.
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: Need to know free network interfaces real and virtual one

and the netstat -in Name column entries follwed by '*' will indicate interfaces not currently in use (e.g. MC/SG standby LAN's).
If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: Need to know free network interfaces real and virtual one

Hi Shiv,

1.Check the output of
# lanscan
, you can find out the LAN interfaces.

2.Run a ifconfig on the card , you can see if it has been configured or not.
# ifconfig lan1 (ex:)

3. Also check with
# netstat -in

Cheers ,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Need to know free network interfaces real and virtual one

Shiv ,

Also check the file :
/etc/rc.config.d/netconf for configured lan cards:

Here it will report the configured lan cards :
# cat /etc/rc.config.d/netconf | grep INTERFACE_NAME

Enjoy ,
hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "