carp and vlan at the same time?

Rudy crapsh at monkeybrains.net
Fri May 30 09:43:32 UTC 2008


Dear NET,

I have some questions!

[1] vlan & carp
I have 10.3.1.1/24  10.3.2.1/25 and a 10.3.3.129/25 as gateway IPs each in their own vlan.
How do I get CARP working, or are people using another method to get failover working?

[2] carp
Is there a way to get around the requirement to already have an IP in the same network as the IP 
you want to put on a carp device?   I don't think freevrrp required another IP...  For example, 
this command fails:
# ifconfig carp1 vhid 31 advbase 1 pass TEST 10.3.3.1/24
ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address

Unless I put a 10.3.3.2/24 IP on my em0, and then make the carp IP 10.3.3.1/32.

[3] vlan
Final questions: is there any documentation on the "ifconfig em0.99 create" syntax?
Didn't find the dot notation in the man page.  Also, how do you set that up in your rc.conf?

  cloned_interfaces="em0.99"   # works.. clone is created
  ifconfig_em0.99="10.99.0.1/24"  # doesn't work... /etc/rc.d/netif start em0.99 doesn't work...



Thanks in advance,
Rudy



More information about the freebsd-net mailing list