Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carp on 2 interfaces on same openBSD

Status
Not open for further replies.
Sep 21, 2011
2
BG
Hi All

Please refer to the toppology picture below:


As you can see I have two openBSD machines with 4 interfaces (not inclulding the pfsyncs).
My problem comes from the fact that I have vlan18 and vlan24 on all 4 interfaces(redundancy issues) and because I need to have two gateways (one for vlan18 and the other for vlan24) i need a method to create two carps on all 4 of them.

This is my configuration on the first BSD:

---------------------------------------------------------------------------
rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:00:e8:65:00:82
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::200:e8ff:fe65:82%dc0 prefixlen 64 scopeid 0x1
rl1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
lladdr f4:ec:38:83:c1:5b
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::f6ec:38ff:fe83:c15b%rl0 prefixlen 64 scopeid 0x2
vlan180: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:00:e8:65:00:82
priority: 0
vlan: 18 priority: 0 parent interface: rl0
groups: vlan
status: active
inet6 fe80::200:e8ff:fe65:82%vlan100 prefixlen 64 scopeid 0x10
inet 172.18.0.2 netmask 0xffffff00 broadcast 172.18.0.255
vlan181: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr f4:ec:38:83:c1:5b
priority: 0
vlan: 18 priority: 0 parent interface: rl1
groups: vlan
status: active
inet6 fe80::f6ec:38ff:fe83:c15b%vlan101 prefixlen 64 scopeid 0x11
inet 172.18.0.3 netmask 0xffffff00 broadcast 172.18.0.255
---------------------------------------------------------------------------

The problem comes when I try to create the carp interfaces

---------------------------------------------------------------------------
# ifconfig carp180 create
# ifconfig carp180 vhid 1 advskew 10 carpdev vlan180 pass 123456
# ifconfig carp180 172.18.0.1/24
#
# ifconfig carp181 create
# ifconfig carp181 vhid 1 advskew 20 carpdev vlan181 pass 123456
# ifconfig carp181 172.18.0.1/24
ifconfig: SIOCAIFADDR: Can't assign requested address
---------------------------------------------------------------------------

It seemed that it wasn't able to create two redundant carp interfaces for the same IP and vhid on a single openBSD.
I tried to do the same thing but without the vlan interfaces(directly with the phisical ints):

---------------------------------------------------------------------------
# ifconfig vlan180 destroy
# ifconfig carp180 vhid 1 advskew 10 carpdev rl0 pass 123456
# ifconfig carp180 172.18.0.1/24
#
# ifconfig vlan181 destroy
# ifconfig carp181 vhid 1 advskew 20 carpdev rl1 pass 123456
# ifconfig carp181 172.18.0.1/24
---------------------------------------------------------------------------

Now it works like a charm but the bad thing is that I dont have trun anymore ;(.All in all it seems that this is only happening when I'm doing it with vlan interfaces
Please, if anyone have had an issue like that and knows where is my mistake or some workaround, shere it with me :(, because I really need this done.
Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top