carp questions
Mark Jayson Alvarez
jay2xra at yahoo.com
Thu Nov 24 01:43:34 GMT 2005
Good day freebsd-net!
I have tried everything to make it work, yet I failed misserably
Here are my findings:
1. First arping only works if it detects more than 1 carp-enabled machine.
2. I can still see that both of the two carp-enabled machine as BACKUP (even with the other having lower advskew).
3. I still can't ping the virtual ip address.. perhaps because none of them is in MASTER state.. specifying 'state MASTER' in ifconfig results in command error. If this is the case, then how would I ever be able to use that virtual ip for the clients gateway? Specifying a lower advskew doesn't make it MASTER either.
4. In OpenBSD's carp documentation, one can specify the state, and also the carp device to use that will belong to the group, however not in FreeBSD, are those still necessary in FreeBSD?
Here are the ifconfig output on both machine:
Machine intended to be the MASTER:
xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=9<RXCSUM,VLAN_MTU>
inet6 fe80::201:2ff:fe88:d8c%xl0 prefixlen 64 scopeid 0x1
inet 10.10.8.144 netmask 0xffffff00 broadcast 10.10.8.255
ether 00:01:02:88:0d:8c
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
carp0: flags=41<UP,RUNNING> mtu 1500
inet 10.10.8.146 netmask 0xffffff00
carp: BACKUP vhid 1 advbase 1 advskew 0
Machine intended to be the BACKUP:
xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=9<RXCSUM,VLAN_MTU>
inet6 fe80::201:2ff:fe90:1957%xl0 prefixlen 64 scopeid 0x1
inet 10.10.8.145 netmask 0xffffff00 broadcast 10.10.8.255
ether 00:01:02:90:19:57
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
carp0: flags=41<UP,RUNNING> mtu 1500
inet 10.10.8.146 netmask 0xffffff00
carp: BACKUP vhid 1 advbase 1 advskew 100
The sysctl output on both machines:
net.inet.carp.allow: 1
net.inet.carp.preempt: 1
net.inet.carp.log: 1
net.inet.carp.arpbalance: 0
net.inet.carp.suppress_preempt: 0
Anymore idea?
Thanks
Atanas Yankov <xds at LanGame.Net> wrote: It's must go into ports and install it ;))
cd /usr/ports/net/arping/
make install clean
then man arping
and then read man carp carefully
there is 2 examples one that work for fail-over and second that make
fail-over and load-balacing
i think you should try this one
<
ifconfig carp0 create
ifconfig carp0 vhid 1 pass mekmitasdigoat 192.168.1.10/24
ifconfig carp1 create
ifconfig carp1 vhid 2 advskew 100 pass mekmitasdigoat
192.168.1.10/24
The configuration for host B is identical, except the advskew is on
vir-
tual host 1 rather than virtual host 2.
ifconfig carp0 create
ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat
192.168.1.10/24
ifconfig carp1 create
ifconfig carp1 vhid 2 pass mekmitasdigoat 192.168.1.10/24
Finally, the ARP balancing feature must be enabled on both hosts:
sysctl net.inet.carp.arpbalance=1
>
then arping -i em0 192.168.1.10
br,
CCNP Atanas Yankov
Network Administrator
AngelSoft Ltd.
Mark Jayson Alvarez wrote:
>
>
> */Atanas Yankov /* wrote:
>
> The better solutuon to test how carp worked is a arping :))) not
> ssh or
> other and you may be
> need to set a /32 mask for a virtual ip address , if you remind how
> works ip alliasing in freebsd.
>
> No luck, no manual entry for arping. the /32 mask won't work either.
> both of them shows that they are the BACKUP machine.. Ucarp is a lot
> easier... however I really like to make this work in the kernel
> level.. anymore idea?
>
> ------------------------------------------------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.
>
_______________________________________________
freebsd-net at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
More information about the freebsd-net
mailing list