OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: Minty14 on September 13, 2016, 07:27:06 pm

Title: Flapping WAN interface on 16.7.1
Post by: Minty14 on September 13, 2016, 07:27:06 pm
Hi Guys,

I recently set up virtual instance of OPNsense which I use as my gateway. Everything is great except one issue which I cannot get to the bottom of.

The WAN interface is flapping - dropping roughly every 10 seconds and immediately coming back up. This is of course causing issues with web browsing etc as packet loss is constantly around 15%.

The logs look like this (read from the bottom up):

Quote
Sep 13 19:14:23   kernel: em0: link state changed to UP
Sep 13 19:14:22   kernel: em0: link state changed to DOWN
Sep 13 19:14:22   opnsense: /usr/local/etc/rc.linkup: HOTPLUG: Configuring interface wan
Sep 13 19:14:22   opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet attached event for wan
Sep 13 19:14:22   configd.py: [e628a762-017c-407b-a0e1-d3a86c7175f0] Linkup starting em0
Sep 13 19:14:22   devd: Executing '/usr/local/opnsense/service/configd_ctl.py interface linkup start em0'
Sep 13 19:14:22   opnsense: /usr/local/etc/rc.linkup: Clearing states to old gateway x.x.x.x.
Sep 13 19:14:21   opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet detached event for wan
Sep 13 19:14:21   configd.py: [41d3c0cb-d042-4b87-845e-464c3501d3de] Linkup stopping em0
Sep 13 19:14:21   devd: Executing '/usr/local/opnsense/service/configd_ctl.py interface linkup stop em0'
Sep 13 19:14:21   configd.py: [063a7424-aba4-416a-9936-502b2661d290] updating dyndns wan
Sep 13 19:14:19   opnsense: /usr/local/etc/rc.linkup: ROUTING: setting IPv4 default route to x.x.x.x
Sep 13 19:14:16   opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
Sep 13 19:14:14   opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to x.x.x.x
Sep 13 19:14:14   opnsense: /usr/local/etc/rc.newwanip: rc.newwanip: on (IP address: x.x.x.x) (interface: WAN[wan]) (real interface: em0).
Sep 13 19:14:14   opnsense: /usr/local/etc/rc.newwanip: rc.newwanip: Informational is starting em0.
Sep 13 19:14:14   kernel: em0: link state changed to UP
Sep 13 19:14:13   kernel: em0: link state changed to DOWN

This cycle is continuous. As you can see, it doesn't tell me an awful lot about why the interface is dropping.

I have ruled out the NICs as I have now used all 3 NICs on my VM host as the WAN interface and the same thing happens. The LAN interface does not drop on any physical interface.

I'm with Virgin Media in the UK and use their router in modem mode. I don't think this is faulty in anyway as it was working with the physical router I had before.

The virtual host is Proxmox, running on a Lenovo TS140. I'd like to avoid using a separate router as a gateway if possible.

Does anyone have any idea where to start with this? I'm starting to go a bit nuts with this one. Are there any logs which might give me a better idea?

Thanks!
Title: Re: Flapping WAN interface on 16.7.1
Post by: sergiup on September 29, 2017, 03:48:36 pm
Did you ever get to the bottom of this? I'm seeing the same issue now, and I've no idea what's going on... Thanks!