System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

configuring virtual IP in hpux

Sreer
Valued Contributor

configuring virtual IP in hpux

Hi Gurus,
Could you pls tell me how can I configure few vitual Ip in my box?


Here i want to configure 2 more lans [IPs]

is it possible and how?

not via SAM..
[root@server:/tmp]#ioscan -fn
Class I H/W Path Driver S/W State H/W Type Description
=============================================================================
bc 0 root CLAIMED BUS_NEXUS
ioa 0 10 sba CLAIMED BUS_NEXUS System Bus Adapter (582)
ba 0 10/0 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
lan 0 10/0/12/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
/dev/diag/lan0 /dev/ether0 /dev/lan0
audio 0 10/0/13/0 audio CLAIMED INTERFACE Built-in Audio
/dev/audio /dev/audioBU_0 /dev/audioEL_0 /dev/audioIL_0 /dev/audioLL_0 /dev/audioNL_0
/dev/audioBA /dev/audioCtl /dev/audioEU /dev/audioIU /dev/audioLU /dev/audioNU
/dev/audioBA_0 /dev/audioCtl_0 /dev/audioEU_0 /dev/audioIU_0 /dev/audioLU_0 /dev/audioNU_0
/dev/audioBL /dev/audioEA /dev/audioIA /dev/audioLA /dev/audioNA /dev/audio_0
/dev/audioBL_0 /dev/audioEA_0 /dev/audioIA_0 /dev/audioLA_0 /dev/audioNA_0
/dev/audioBU /dev/audioEL /dev/audioIL /dev/audioLL /dev/audioNL
ext_bus 0 10/0/14/0 side CLAIMED INTERFACE IDE
target 0 10/0/14/0.7 tgt CLAIMED DEVICE
ctl 0 10/0/14/0.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c0t7d0
ba 1 10/0/14/1 superio CLAIMED BUS_NEXUS PCI Core I/O Adapter
tty 0 10/0/14/1/1 asio0 CLAIMED INTERFACE Built-in RS-232C
/dev/diag/mux0 /dev/mux0 /dev/tty0p0
tty 1 10/0/14/1/2 asio0 CLAIMED INTERFACE Built-in RS-232C
/dev/diag/mux1 /dev/mux1 /dev/tty1p0
ext_bus 1 10/0/14/1/3 SCentIf CLAIMED INTERFACE Built-in Parallel Interface
/dev/c1t0d0_lp
usb 0 10/0/14/2 hcd CLAIMED INTERFACE Built-in USB Interface
usbhub 0 10/0/14/2.1 hub CLAIMED DEVICE USB Root Hub
/dev/hub
usbhid 0 10/0/14/2.1.2 hid CLAIMED DEVICE USB HID Mouse(0)
/dev/hid/firstkbd /dev/hid/hid_005 /dev/hid/hid_012 /dev/hid/kbd_003 /dev/hid/mouse_002
/dev/hid/firstmouse /dev/hid/hid_006 /dev/hid/hid_013 /dev/hid/kbd_004 /dev/hid/mouse_003
/dev/hid/hid_000 /dev/hid/hid_007 /dev/hid/hid_014 /dev/hid/kbd_005 /dev/hid/mouse_004
/dev/hid/hid_001 /dev/hid/hid_008 /dev/hid/hid_015 /dev/hid/kbd_006 /dev/hid/mouse_005
/dev/hid/hid_002 /dev/hid/hid_009 /dev/hid/kbd_000 /dev/hid/kbd_007 /dev/hid/mouse_006
/dev/hid/hid_003 /dev/hid/hid_010 /dev/hid/kbd_001 /dev/hid/mouse_000 /dev/hid/mouse_007
/dev/hid/hid_004 /dev/hid/hid_011 /dev/hid/kbd_002 /dev/hid/mouse_001
usbhid 1 10/0/14/2.1.3 hid CLAIMED DEVICE USB HID Kbd(1)
ext_bus 2 10/0/15/0 c720 CLAIMED INTERFACE SCSI C896 Ultra Narrow Single-Ended
target 1 10/0/15/0.7 tgt CLAIMED DEVICE
ctl 1 10/0/15/0.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c2t7d0
ext_bus 3 10/0/15/1 c720 CLAIMED INTERFACE SCSI C896 Ultra2 Wide LVD
target 2 10/0/15/1.5 tgt CLAIMED DEVICE
disk 1 10/0/15/1.5.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c3t5d0 /dev/rdsk/c3t5d0
target 3 10/0/15/1.6 tgt CLAIMED DEVICE
disk 0 10/0/15/1.6.0 sdisk CLAIMED DEVICE HP 36.4GMAP3367NC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
target 4 10/0/15/1.7 tgt CLAIMED DEVICE
ctl 2 10/0/15/1.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c3t7d0
ba 2 10/1 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 3 10/4 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
ba 4 10/6 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)
graphics 0 10/6/2/0 graph3 CLAIMED INTERFACE PCI Display (103c1008)
processor 0 32 processor CLAIMED PROCESSOR Processor
memory 0 49 memory CLAIMED MEMORY Memory
[root@server:/tmp]#



[root@sttr16:/tmp]#ioscan -fknC lan
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
lan 0 10/0/12/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
/dev/diag/lan0 /dev/ether0 /dev/lan0
[root@sttr16:/tmp]#

[root@sttr16:/tmp]#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/0/12/0 0x00306E485E10 0 UP lan0 snap0 1 ETHER Yes 119
[root@sttr16:/tmp]#


[root@sttr16:/tmp]#netstat -in
Name Mtu Network Address Ipkts Opkts
lan0 1500 152.15.0.0 152.15.121.226 20288397 24198969
lo0 4136 127.0.0.0 127.0.0.1 175382 175382
[root@sttr16:/tmp]#

5 REPLIES
Mounaam
Trusted Contributor

Re: configuring virtual IP in hpux

Hi,

$ ifconfig lan0:1 ...
$ ifconfig lan0:2 ...

more information in ifconfig(1M).

I you want to configure them a each boot, add them to file /etc/rc.config.d/netconf

Regards,
Mounaam
SoorajCleris
Honored Contributor

Re: configuring virtual IP in hpux

Hi

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1291831435962+28353475&threadId=180574

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Taifur
Respected Contributor

Re: configuring virtual IP in hpux

Hi,

U can configure virtual IP by using APA (Auto Port Aggregiation).

Cheers//
Taifur
Mel Burslan
Honored Contributor

Re: configuring virtual IP in hpux

Since you did not mention the houx version you are running, looking at the single NIC and graphics etc, I am under the impression that you are running a workstation class machine with v 11.11 and below. So, I am taking the running different subnets on a single interface concept totally out.

In this case, first thing you will need to consider, your virtual IP addresses should be in the same network as your primary IP adress.

Having this hurdle out of the way, there are two ways that you can proceed:

1. create temporary virtual IP addresses, which will not come back upon reboot automatically. For this, you run:

ifconfig lan0:1 inet 152.15.X.Y netmask 255.255.0.0 up

that is all there is to it.

2. Create a permanent virtual IP address. For this one you will need to edit your

/etc/rc.config.d/netconf

file, find the stanza defining lan0, copy and paste it to a second and third and so on stanza(s) and modify the interface name to "lan0:1" or "lan0:X" where X is any number, as well as changing the IP address to whatever your heart desires, keeping it in the same subnet. Then you will need to stop and start networking with:

/sbin/init.d/net stop
/sbin/init.d/net start

Make sure you understand, when you stop and restart networking, any sessions connected to this machine, say via, telnet, ssh, ftp or any other way, will drop dead.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Sreer
Valued Contributor

Re: configuring virtual IP in hpux

Hi ALL,

Thanks for your reply.

This Thread is closed.
rgds
Sreekumar