Hello guys,
I hope to get some suggestions from you.
I have multiple FreeBSD machines currently running on 10.0-RELEASE-p9.
2 machines running with a CARP setup and provide the Internet/WAN Connection. They are connected to the ISP router. The ISP provides a x.x.67.0/30 subnet for the WAN Interface (one address is for my gateway and the other address is the ISP gateway). Thankfully the new CARP protocol can now handle this.
I learned that the new CARP implementation is very different from the old one. I'm still a bit confused about the /32 subnet mask for the CARP alias. But I could set[]up a working configuration. The master rc.conf for the igb0 (WAN Interface) looks like this. Unnecessary output is omitted:
With this setup the backup host fails over if the master goes down or if a fail-over is triggered manually.
My problem was the defaultroute option. The default route was not set. When the CARP interface is in backup mode the routing entry is deleted or not present.
I added the route like you see in the rc.conf above on master and backup host.
Routing table looks like this now:
Would you prefer a other way to get a functional routing?
I'm asking because I have another couple of FreeBSD machines which provide firewalling and routing for internal networking with link aggregation and VLAN tagging. On these machines I want to set[]up CARP like described.
On these machines it would also be necessarily to add manually static routing entries for every VLAN interface?
On FreeBSD 9 the routing table was "automatically" build because every interface was configured with an IP address and then the virtual CARP device was created. So the system knows for example that network 192.168.10.1/24 was connected via vlan10.
It would be great to get some suggestions. Thanks a lot!
I hope to get some suggestions from you.
I have multiple FreeBSD machines currently running on 10.0-RELEASE-p9.
2 machines running with a CARP setup and provide the Internet/WAN Connection. They are connected to the ISP router. The ISP provides a x.x.67.0/30 subnet for the WAN Interface (one address is for my gateway and the other address is the ISP gateway). Thankfully the new CARP protocol can now handle this.
I learned that the new CARP implementation is very different from the old one. I'm still a bit confused about the /32 subnet mask for the CARP alias. But I could set[]up a working configuration. The master rc.conf for the igb0 (WAN Interface) looks like this. Unnecessary output is omitted:
Code:
# igb0 WAN Interface
ifconfig_igb0_alias0="vhid 100 advskew 0 pass Test alias x.x.67.2/32"
# Static Routes
static_routes="default"
route_default="-net 0.0.0.0 -interface igb0"
My problem was the defaultroute option. The default route was not set. When the CARP interface is in backup mode the routing entry is deleted or not present.
I added the route like you see in the rc.conf above on master and backup host.
Routing table looks like this now:
Code:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 00:1b:21:45:23:A0 US 0 4473175 igb0
x.x.62.2 link#5 UHS 0 0 lo0 =>
x.x.62.2/32 link#5 U 0 0 igb0
Would you prefer a other way to get a functional routing?
I'm asking because I have another couple of FreeBSD machines which provide firewalling and routing for internal networking with link aggregation and VLAN tagging. On these machines I want to set[]up CARP like described.
On these machines it would also be necessarily to add manually static routing entries for every VLAN interface?
On FreeBSD 9 the routing table was "automatically" build because every interface was configured with an IP address and then the virtual CARP device was created. So the system knows for example that network 192.168.10.1/24 was connected via vlan10.
It would be great to get some suggestions. Thanks a lot!
Last edited by a moderator: