How do I restart an interface using command?
-
I have two WAN interfaces on my pfSense box:
WAN_A -> VDSL (Service provided by telecommunications company over telephone network using PPOE via Tp-Link VDSL modem...)
WAN_B -> DHCP (Service provided by mobile phone company via Tp-Link LTE modem...)Of course, the idea of paying two bills instead of just one is to provide redundancy. Almost all payments are made using credit cards and therefore POS connectivity is of utmost importance. As you can imagine, the two WANs are configured in a "failover" group so that when WAN_A goes down, POS machines can still accept payments over WAN_B.
The problem is that some time after configuring WAN_B, which is think over 12 hours, the interface turns red and if WAN_A goes down too, connection is lost until the modem is restarted. This is the first time I am using an LTE connection as backup. When they lose connectivity, they first reboot the modem and the give me an angry call. Everytime, I go to WAN_B configuration page and press "Save" and then it turns green.
I don't know why this happens but I need to find a way of pressing that "Save" button through a Cron job.
I know I can simply do
ifconfig em0 down && ifconfig em0 up
, but I'd like to know if there is a pfSense way of doing it. -
Playback restartallwan from developers shell might do what ya want