I have nearly finished moving from pfSense to VyOS. While I have been finishing the firewall configuration, I have been swapping the connections between my old hardware (pfsense) and new hardware (VyOS) but found that when connecting the ethernet cable to VyOS box, the PPPoE connection was not coming up automatically.
I took at look at the
connect-on-demand option for a PPPoE interface, which seems to map to the
demand configuration option for pppd, but it appears to do the opposite of what I want:
demand Initiate the link only on demand, i.e. when data traffic is
present. With this option, the remote IP address may be speci‐
fied by the user on the command line or in an options file, or
if not, pppd will use an arbitrary address in the 10.x.x.x
range. Pppd will initially configure the interface and enable
it for IP traffic without connecting to the peer. When traffic
is available, pppd will connect to the peer and perform negotia‐
tion, authentication, etc.
Which looks to me if it was intended for the good old days of dial-up modems and not DSL?
As far as I can tell PPPoE interfaces are brought up automatically when VyOS boots up. But seems to give up after a while, if PPPoE is unable to connect.
I have had a couple of ideas:
- Would it make sense to change VyOS to add
maxfail 0to the pppd configuration? At the moment, it looks like pppd defaults to giving up after 10 attempts. Would it need to be configurable?
- Start pppd automatically X seconds after the Ethernet interfaces comes up - perhaps a
/etc/network/if-up.dscript? And bring it down again, if Ethernet goes down.
Has anyone else experienced similar issues?
Is these a solution that I am missing?