cancel
Showing results for 
Search instead for 
Did you mean: 

Configuing double ipv4

tempsample
Frequent Advisor

Configuing double ipv4

Hi,

 

Curently we are using 121.100.32.254 as ipv4 addess.

 

we login to the sever using the above ip.

 

but my requirement is ,

 

We have to configure one more ip which do not belong to 121 segment.

 

is it possible to configue two ipv4 ip?

12 REPLIES
Torsten.
Acclaimed Contributor

Re: Configuing double ipv4

Do you have more NICs or do you want to use the same?


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!   
tempsample
Frequent Advisor

Re: Configuing double ipv4

Hi

 

Do you have more NIC ??

 

How can I check it.

 

model :rp 3440.

 

do you want to use the same ??

 

Can You explain me ,How can I use the same ?

 

 

Patrick Wallek
Honored Contributor

Re: Configuing double ipv4

There are several ways to see how many NICs you have:

 

# lanscan

 

# ioscan -kfnC lan

 

To see what is in use you can do:

 

# netstat -in

 

Post that output and we can proceed from there.

tempsample
Frequent Advisor

Re: Configuing double ipv4

Hi

 

 

lanscan
Hardware Station        Crd  Hdw   Net-Interface    NM   MAC       HP-DLPI DLPI
Path     Address        In#  State NamePPA          ID   Type      Support Mjr#
0/2/3/0  0x001A4B0B2854 0    UP    lan0 snap0       1    ETHER       Yes   119
0/4/2/0/7/0 0x001708D1717B 1    UP    lan1 snap1       2    ETHER       Yes   119
0/5/2/0/7/0 0x001708D1717A 2    UP    lan2 snap2       3    ETHER       Yes   119


ioscan -kfnC lan
Class     I  H/W Path     Driver   S/W State   H/W Type     Description
========================================================================
lan       0  0/2/3/0      igelan   CLAIMED     INTERFACE    HP PCI 1000Base-T Core
lan       1  0/4/2/0/7/0  iether   CLAIMED     INTERFACE    HP AD193-60001 PCI/PCI-X 1000Base-T 4Gb FC/1000B-T Combo Adapter
lan       2  0/5/2/0/7/0  iether   CLAIMED     INTERFACE    HP AD193-60001 PCI/PCI-X 1000Base-T 4Gb FC/1000B-T Combo Adapter


netstat -in
Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs Coll
lan1      1500 121.100.32.0    121.100.32.254      3949 0     3967 0     0
lo0       4136 127.0.0.0       127.0.0.1       8542 0     9728 0     0

Torsten.
Acclaimed Contributor

Re: Configuing double ipv4

Looks like there are 3 NIcs, but only 1 configured.

Sure this is a rp3440?
The hardware paths look different.

Please run

# model

again.

However, connect a cable to the free slot of the second OCI card and use SAM to configure an IP address.

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!   
tempsample
Frequent Advisor

Re: Configuing double ipv4

Hi

 

I pasted the wrong output.

 

ioscan -kfnC lan
Class     I  H/W Path     Driver   S/W State   H/W Type     Description
========================================================================
lan       0  0/1/2/0      igelan   CLAIMED     INTERFACE    HP PCI 1000Base-T Core
lan       1  0/3/1/0/6/0  iether   CLAIMED     INTERFACE    HP AD193-60001 PCI/PCI-X 1000Base-T 4Gb FC/1000B-T Combo Adapter
lan       2  0/4/1/0/6/0  iether   CLAIMED     INTERFACE    HP AD193-60001 PCI/PCI-X 1000Base-T 4Gb FC/1000B-T Combo Adapter

 

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  0x001A4B0B2854 0    UP    lan0 snap0       1    ETHER       Yes   119
0/3/1/0/6/0 0x001708D1717B 1    UP    lan1 snap1       2    ETHER       Yes   119
0/4/1/0/6/0 0x001708D1717A 2    UP    lan2 snap2       3    ETHER       Yes   119

 

------Looks like there are 3 NIcs, but only 1 configured.

 

How you are saying this,Can you explain me.

 

 

Torsten.
Acclaimed Contributor

Re: Configuing double ipv4

Do

# ifconfig lan0

#ifconfig lan1

#ifconfig lan2

# netstat -in



Path 0/3/1/0 is the second from top slot,
path 0/4/1/0 is the top PCI slot,
path 0/1/2/0 is core I/O.

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!   
tempsample
Frequent Advisor

Re: Configuing double ipv4

hi,

 

Yes,I can confirm that lan1 and lan 3 are free.so two nic are free and one is used

 

I have below diubts ..

 

when i checking with ioscan -kfnC lan

 

in the "Driver " status is as igelan and iether.

 

what is the difference in it ?

 

so I can use any of the remaining two nics ?

 

but will there be any impact if I have two ip for same server ?

 

 

Torsten.
Acclaimed Contributor

Re: Configuing double ipv4

There are differnt chips used, hence different drivers.

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!   
tempsample
Frequent Advisor

Re: Configuing double ipv4

Hi ,

 

Now I am clear that I will request for networking team to allocate Lan cable either to lan0 or lan 1.

 

Can I have the steps to configure.

 

will there be any impact or downtime to existing ip ?

tempsample
Frequent Advisor

Re: Configuing double ipv4

if i configure two different ip,can i login to server with two ip also or is there any differance between two ip
Matti_Kurkela
Honored Contributor

Re: Configuing double ipv4

By default, yes you can login using either IP.

 

But if you want, you can configure some services (e.g. sshd) to accept incoming connections in one particular IP address only. Often this configuration option is called something like "BindAddress". Not all services will allow this.

 

You could even run two copies of a bindable service with different configuration settings, one bound to each IP address, if you find that useful to you.

MK