setting multiple tunnels in rc.conf
I have a direct connection between to FreeBSD machines using an ethernet cable. I have setup a tunnel over this link and am able to ping between all four IP addresses just fine (between tunnel IP address and static NIC IP addresses). I want to extend this by adding two additional tunnels gif1 and gif2. here is the content of my rc.conf
the routing tables seem correct. I am still able to ping on the gif0 interface. But when I try to ping 10.30.0.2 or 172.16.0.2, i get network is down error. I don't understand what's the problem. I sniffed packets on wireshark and there is absolutely no activity on gif1 and gif2 interfaces during pings, just on gif0 and msk0 when i ping 10.0.0.2. do i need to specify additional settings if i want to use multiple tunnels instead of just one in rc.conf?
ifconfig_msk0="inet 192.168.1.1 netmask 255.255.255.0"
cloned_interfaces="gif0 gif1 gif2"
ifconfig_gif0="inet 10.0.0.1 10.0.0.2 tunnel 192.168.1.1 192.168.1.2 up"
static_routes="tunnelone tunneltwo tunnelthree"
route_tunnelone="10.0.0.0 10.0.0.2 255.255.255.0"
ifconfig_gif1="inet 172.16.0.1 172.16.0.2 tunnel 192.168.1.1 192.168.1.2 up"
route_tunneltwo="172.16.0.0 172.16.0.2 255.255.255.0"
ifconfig_gif2="inet 10.30.0.1 10.30.0.2 tunnel 192.168.1.1 192.168.1.2 up"
route_tunnelthree="10.30.0.0 10.30.0.2 255.255.255.0"
could somebody please explain what am i doing wrong here?