Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Virtual-IP with "unnumbered" interface

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


airween at gmail

Sep 21, 2009, 2:21 PM

Post #1 of 3 (1409 views)
Permalink
Virtual-IP with "unnumbered" interface

Hello all,

I configured a virtual-IP on a Debian Lenny with openais.

Relevant part of config:

primitive virtual-ip ocf:heartbeat:IPaddr2 \
params ip="192.168.113.33" \
op monitor interval="21s" timeout="5s"

...
group db-group fs0 mysql virtual-ip
...

The node's primary IP's are 192.168.113.12 and 192.168.112.22 (master/slave).

Everything is working fine, but on active node there isn't "real-virtual-IP".
Looks like the node has that IP without interface.
In output of netstat there are several established connection which
uses this IP,
the appcilcation is working, but no interface.

In ARP table also I found that IP...

Is it problem or evident?

(correct description of problem: the 'ifconfig' doesn't show the IP,
'ip' shows:
ip -d addr
...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 1000
link/ether 00:16:3e:0f:01:12 brd ff:ff:ff:ff:ff:ff
inet 192.168.113.12/24 brd 192.168.113.255 scope global eth0
inet 192.168.113.33/24 brd 192.168.113.255 scope global secondary eth0
)

Thanks:


a.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


lars.ellenberg at linbit

Sep 21, 2009, 2:55 PM

Post #2 of 3 (1341 views)
Permalink
Re: Virtual-IP with "unnumbered" interface [In reply to]

On Mon, Sep 21, 2009 at 11:21:20PM +0200, Ervin Hegedüs wrote:
> Hello all,
>
> I configured a virtual-IP on a Debian Lenny with openais.
>
> Relevant part of config:
>
> primitive virtual-ip ocf:heartbeat:IPaddr2 \
> params ip="192.168.113.33" \
> op monitor interval="21s" timeout="5s"
>
> ...
> group db-group fs0 mysql virtual-ip
> ...
>
> The node's primary IP's are 192.168.113.12 and 192.168.112.22 (master/slave).
>
> Everything is working fine, but on active node there isn't "real-virtual-IP".
> Looks like the node has that IP without interface.
> In output of netstat there are several established connection which
> uses this IP,
> the appcilcation is working, but no interface.
>
> In ARP table also I found that IP...
>
> Is it problem or evident?
>
> (correct description of problem: the 'ifconfig' doesn't show the IP,
> 'ip' shows:
> ip -d addr

This is expected.
Man ip, section "ip address add - add new protocol address",
specifically "label".
The concept of linux net aliases is long gone.

If you insist on having those "secondary" addresses show up with
ifconfig, you can give them labels.

To illustrate:

ifconfig

ip a add dev lo 127.0.1.0/8 lo
ip a add dev lo 127.0.1.1/8 lo
ip a add dev lo 127.0.1.2/8 lo:0
ip a add dev lo 127.0.1.3/8 lo:7
ip a add dev lo 127.0.1.4/8 lo:foo
ip a add dev lo 127.0.1.5/8 lo:42

ip a show
ip a show primary
ip a show secondary

ifconfig

iirc, IPaddr2 takes a label parameter.

> ...
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 1000
> link/ether 00:16:3e:0f:01:12 brd ff:ff:ff:ff:ff:ff
> inet 192.168.113.12/24 brd 192.168.113.255 scope global eth0
> inet 192.168.113.33/24 brd 192.168.113.255 scope global secondary eth0
> )
>
> Thanks:

--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


airween at gmail

Sep 22, 2009, 11:47 AM

Post #3 of 3 (1330 views)
Permalink
Re: Virtual-IP with "unnumbered" interface [In reply to]

Hello Lars,

>> (correct description of problem: the 'ifconfig' doesn't show the IP,
>> 'ip' shows:
>> ip -d addr
>
> This is expected.
> Man ip, section "ip address add - add new protocol address",
> specifically "label".
> The concept of linux net aliases is long gone.
>
> If you insist on having those "secondary" addresses show up with
> ifconfig, you can give them labels.

yes, I discovered the difference between this config and an another
node's config - the difference is here I use IPAddr2 (based on an
example), every another place I'm using IPAddr.


Thank you for your help.


a.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.