OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • WAN over PPPoE loses default IPv4 route in multi-WAN setup
« previous next »
  • Print
Pages: [1]

Author Topic: WAN over PPPoE loses default IPv4 route in multi-WAN setup  (Read 3539 times)

sergiup

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
WAN over PPPoE loses default IPv4 route in multi-WAN setup
« on: September 13, 2017, 04:55:24 pm »
I think this may be related to this bug, though I may well be wrong!

I can provide more logs, config etc as required later.

Setup: latest OPNSense installed on an AOpen i45GMt-HR with an HP NC364T NIC (so all NICs are Intel based); LAN is on the onboard NIC (em4), the two WANs (em0, em1) and a DMZ interface (em3) are on the NC364T.

First WAN (em0) is configured with IPv4 DHCP only; it's a cable ISP, there is no IPv6 connectivity provided.
Second WAN (em1) is configured with PPPoE, IPv4 DHCP and IPv6 DHCPv6 (PPPoE dual-stack). I also get an IPv6 DHCP-PD from this, works fine on the LAN etc. This is a VDSL2 ISP, and these gateways are set as the defaults.

I have a couple of gateway groups configured, but no rules in place that use them. I may try removing them to see if it makes a difference.

If I disable/re-enable the PPPoE connection or interface or IPv4 gateway, I completely lose the default IPv4 route unless I completely disable the PPPoE interface or IPv4 gateway.

It doesn't seem to matter what else I do, I just cannot seem to get the PPPoE default IPv4 route back, short of a reboot. The only thing that works is to disable the PPPoE WAN or PPPoE IPv4 gateway completely, which re-instates the Cable WAN as the default IPv4 route. If I don't do that, there is NO IPv4 default route.

I'm happy to provide logs, config details etc, just kindly let me know what would be required, and what tests would be useful. Thank you!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1173
    • View Profile
Re: WAN over PPPoE loses default IPv4 route in multi-WAN setup
« Reply #1 on: September 13, 2017, 10:59:09 pm »
Hi there,

Two times DHCP is tricky, we've had a larger discussion lately about what is supposed to happen and what can be done to end up with a working setup.

The current rationale is:

Go to Firewall: Settings: Advanced and enable "Allow default gateway switching".


Cheers,
Franco
Logged

sergiup

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: WAN over PPPoE loses default IPv4 route in multi-WAN setup
« Reply #2 on: September 14, 2017, 08:44:18 am »
Thank you Franco! I'll try that when I'm home again, run a few tests and get back to you.
Logged

sergiup

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: WAN over PPPoE loses default IPv4 route in multi-WAN setup
« Reply #3 on: September 29, 2017, 05:08:50 pm »
Quote from: franco on September 13, 2017, 10:59:09 pm
Hi there,

Two times DHCP is tricky, we've had a larger discussion lately about what is supposed to happen and what can be done to end up with a working setup.

The current rationale is:

Go to Firewall: Settings: Advanced and enable "Allow default gateway switching".


Cheers,
Franco

I disconnected the PPPoE interface under Interfaces > Overview, and re-enabled it; result - no IPv4 default route.

System > Log File
Sep 29 14:40:48   opnsense: /usr/local/etc/rc.newwanip: Cannot switch gateway EM1_WAN_VDSL_DHCP6 with undefined address
Sep 29 14:40:48   opnsense: /usr/local/etc/rc.newwanip: Cannot switch gateway EM1_WAN_VDSL_PPPOE with undefined address

Although I do have valid IPs under Interfaces > Overview.
Also, System > Gateways > Status shows Gateway "dynamic" for both though, and gray "Pending" status.

I Disabled / Re-enabled the Interface, this seems to have fixed the issue; not ideal though.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • WAN over PPPoE loses default IPv4 route in multi-WAN setup
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2