diff --git a/roles/ifstated/templates/ifstated-dna.conf.j2 b/roles/ifstated/templates/ifstated-dna.conf.j2 index 7fcbd5f..ed794f3 100644 --- a/roles/ifstated/templates/ifstated-dna.conf.j2 +++ b/roles/ifstated/templates/ifstated-dna.conf.j2 @@ -17,10 +17,9 @@ state master { init { # spoof mac to keep dhcp lease in sync with both gw's run "/sbin/ifconfig vio1 lladdr {{ gw_home_mac }} up" - # flush routes and run dhclient and dhcpcd + # flush routes and renew lease run "/sbin/route -qn flush" - run "/sbin/dhclient vio1" - #run "/sbin/rcctl restart dhcpcd > /dev/null" + run "/usr/sbin/dhcpleasectl vio1" # reset firewall rules run "sleep 5 ; pfctl -f /etc/pf.conf" } @@ -31,8 +30,6 @@ state master { state backup { init { - # kill dhclient (TODO: better command for this) - run "pkill -9 dhclient" # bring down interface and reset mac run "/sbin/ifconfig vio1 delete lladdr {{ gw_home_mac }} down" # flush routes and fix default route