Hi all,
I have spread running on OpenBSD and have successfully compiled wackamole to
run. My setup consists of two machines (A/B) that are identical in
hardware, with two nics each. The problem I have is that when I attempt to
'ifconfig sis0 down' on B which wackamole is controling 10.1.0.231 &
10.1.0.232, A assumes only the ip 10.1.0.231. When I 'ifconfig sis0 up' on
B, B then gets the gets both ips, but A doesn't let go of 10.1.0.231 and an
arp war begins.
I would like to know if I did something wrong in a config. Below is my
info. Also, I go into more detail on how my system reacts at the end of
this info.
wackamole.conf on A:
-------------------------------
Spread = 4803@drella
Group = wack1
Control = /var/tmp/wack.it
prefer sis0:10.1.0.1/24
VirtualInterfaces {
{ sis0:10.1.0.231/16 }
{ sis0:10.1.0.232/16 }
}
Arp-Cache = 90s
Notify {
sis0:10.1.0.12/32
arp-cache
}
balance {
AcquisitionsPerRound = all
interval = 4s
}
mature = 5s
-------------------------------
wackamole.conf on B:
-------------------------------
Spread = 4803@bela
Group = wack1
Control = /var/tmp/wack.it
prefer sis0:10.1.0.5/24
VirtualInterfaces {
{ sis0:10.1.0.231/16 }
{ sis0:10.1.0.232/16 }
}
Arp-Cache = 90s
Notify {
sis0:10.1.0.12/32
arp-cache
}
balance {
AcquisitionsPerRound = all
interval = 4s
}
mature = 5s
-------------------------------
ifconfig on A for sis0:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
ifconfig on B for sis0:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
spread.conf on A:
-------------------------------
Spread_Segment 10.1.0.255:4803 {
bela 10.1.0.5
drella 10.1.0.1
}
EventLogFile = /var/log/spread_%h.log
EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
AllowedAuthMethods = "NULL"
AccessControlPolicy = "PERMIT"
-------------------------------
spread.conf on B:
-------------------------------
Spread_Segment 10.1.0.255:4803 {
bela 10.1.0.5
drella 10.1.0.1
}
EventLogFile = /var/log/spread_%h.log
EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
AllowedAuthMethods = "NULL"
AccessControlPolicy = "PERMIT"
-------------------------------
- I have spread running with no wackamole running.
ifconfig on A for sis0:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
ifconfig on B for sis0:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
- I start wackamole on A:
ifconfig on A:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
inet 10.1.0.232 netmask 0xffff0000 broadcast 10.1.255.255
- I start wackamole on B:
ifconfig on B:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
inet 10.1.0.232 netmask 0xffff0000 broadcast 10.1.255.255
ifconfig on A:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
- I `ifconfig sis0 down` on B:
ifconfig on A:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
ifconfig on B:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
inet 10.1.0.232 netmask 0xffff0000 broadcast 10.1.255.255
As you can see A doesn't pick up the x.x.x.232 address.
Am I doing something wrong? Does 'ifconfig <iface> down' good enough to
simulate a downed interface card? If not, how can I test this, besides
actually unplugging the cable? Am I getting my broadcast and netmasks
messed up?
Any help is greatly appreciated.
-.mag
I have spread running on OpenBSD and have successfully compiled wackamole to
run. My setup consists of two machines (A/B) that are identical in
hardware, with two nics each. The problem I have is that when I attempt to
'ifconfig sis0 down' on B which wackamole is controling 10.1.0.231 &
10.1.0.232, A assumes only the ip 10.1.0.231. When I 'ifconfig sis0 up' on
B, B then gets the gets both ips, but A doesn't let go of 10.1.0.231 and an
arp war begins.
I would like to know if I did something wrong in a config. Below is my
info. Also, I go into more detail on how my system reacts at the end of
this info.
wackamole.conf on A:
-------------------------------
Spread = 4803@drella
Group = wack1
Control = /var/tmp/wack.it
prefer sis0:10.1.0.1/24
VirtualInterfaces {
{ sis0:10.1.0.231/16 }
{ sis0:10.1.0.232/16 }
}
Arp-Cache = 90s
Notify {
sis0:10.1.0.12/32
arp-cache
}
balance {
AcquisitionsPerRound = all
interval = 4s
}
mature = 5s
-------------------------------
wackamole.conf on B:
-------------------------------
Spread = 4803@bela
Group = wack1
Control = /var/tmp/wack.it
prefer sis0:10.1.0.5/24
VirtualInterfaces {
{ sis0:10.1.0.231/16 }
{ sis0:10.1.0.232/16 }
}
Arp-Cache = 90s
Notify {
sis0:10.1.0.12/32
arp-cache
}
balance {
AcquisitionsPerRound = all
interval = 4s
}
mature = 5s
-------------------------------
ifconfig on A for sis0:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
ifconfig on B for sis0:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
spread.conf on A:
-------------------------------
Spread_Segment 10.1.0.255:4803 {
bela 10.1.0.5
drella 10.1.0.1
}
EventLogFile = /var/log/spread_%h.log
EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
AllowedAuthMethods = "NULL"
AccessControlPolicy = "PERMIT"
-------------------------------
spread.conf on B:
-------------------------------
Spread_Segment 10.1.0.255:4803 {
bela 10.1.0.5
drella 10.1.0.1
}
EventLogFile = /var/log/spread_%h.log
EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
AllowedAuthMethods = "NULL"
AccessControlPolicy = "PERMIT"
-------------------------------
- I have spread running with no wackamole running.
ifconfig on A for sis0:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
ifconfig on B for sis0:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
- I start wackamole on A:
ifconfig on A:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
inet 10.1.0.232 netmask 0xffff0000 broadcast 10.1.255.255
- I start wackamole on B:
ifconfig on B:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
inet 10.1.0.232 netmask 0xffff0000 broadcast 10.1.255.255
ifconfig on A:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
- I `ifconfig sis0 down` on B:
ifconfig on A:
inet 10.1.0.1 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
ifconfig on B:
inet 10.1.0.5 netmask 0xff000000 broadcast 255.255.0.0
inet 10.1.0.231 netmask 0xffff0000 broadcast 10.1.255.255
inet 10.1.0.232 netmask 0xffff0000 broadcast 10.1.255.255
As you can see A doesn't pick up the x.x.x.232 address.
Am I doing something wrong? Does 'ifconfig <iface> down' good enough to
simulate a downed interface card? If not, how can I test this, besides
actually unplugging the cable? Am I getting my broadcast and netmasks
messed up?
Any help is greatly appreciated.
-.mag