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 [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
