LAN Bridge Constant Disconnecting Problem.



  • Hi There,

    So I am in the process of setting up pfSense to be a single WAN, dual LAN router (with both lan ports on the same subnet), I'm pretty novice at networking. So far, I have my interfaces configured as such:
    WAN (wan) -> re0
    WIREDLAN1 (lan) -> em0
    WIREDLAN2 (opt1) -> em1
    LANBRIDGE (opt2) -> WIREDLAN1 + WIREDLAN2

    Both WIREDLANs have IPV4/6 Config Types set to None.
    LANBRIDGE has a static IPV4 address of 192.168.1.1 with DHCP enabled; IPV6 is set to Track.
    I also used:
    net.link.bridge.pfil_bridge 1
    net.link.bridge.pfil_member 0

    As for firewall rules, I have the "Default allow LAN to any rule"  set on all interfaces except WAN. I can't switch the "Anti-Lockout Rule" that's currently attached to the interface WIRELAN1, to the LANBRIDGE; don't know if that matters or not. NAT is set to the default "Automatic outbound NAT rule generation." I'm not sure if this has to be changed or not.

    Now with those settings, it works perfectly when I have only one of the WIRELAN interfaces connected. However, when both are connected simultaneously, one of the WIRELAN interfaces can't seem to stay connected for more than 5 seconds. After about 5 seconds of connection, the interface go down for 3 seconds, then goes back up. This processing of connecting and disconnecting just keeps looping. What's even more strange is that if I unplug both of the WIRELAN connections, and hook either one back in, they both start experiencing the disconnect/reconnect problem. And when I say disconnecting/reconnecting, I mean the lights on the back of the NICs goes blank, then comes back on. Furthermore, the CPU usage shoots up to 100% when I connect both WIRELAN interfaces. When I check the system activity, it says "/usr/local/sbin/check_reload_status" is taking up 99% of the CPU.

    Rebooting pfSense with a single WIRELAN interface connected seems to  fix the issue, until I reconnect both simultaneously again.

    Any ideas?

    Oh and here's my system specs:
    Asus M2A-VM Motherboard
    AMD Opteron 1210 CPU
    2X1GB OCZ Platinum PC2-6400 RAM
    Seagate 7200.10 320GB
    2 X Intel Gigabit CT PCI-E NICs

    2.1-RELEASE (amd64)
    built on Wed Sep 11 18:17:48 EDT 2013
    FreeBSD 8.3-RELEASE-p11

    EDIT:
    Here's a copy of my syslog:

    Nov 18 17:49:00 check_reload_status: Linkup starting em1
    Nov 18 17:49:00 kernel: em1: link state changed to UP
    Nov 18 17:49:02 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:02 check_reload_status: rc.newwanip starting em1
    Nov 18 17:49:04 php: rc.newwanip: rc.newwanip: Informational is starting em1.
    Nov 18 17:49:04 php: rc.newwanip: rc.newwanip: on (IP address: ) (interface: opt1) (real interface: em1).
    Nov 18 17:49:04 php: rc.newwanip: rc.newwanip: Failed to update opt1 IP, restarting…
    Nov 18 17:49:04 check_reload_status: Configuring interface opt1
    Nov 18 17:49:06 php: rc.interfaces_wan_configure: The command '/sbin/ifconfig 'em1' inet delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
    Nov 18 17:49:06 check_reload_status: Linkup starting em1
    Nov 18 17:49:06 kernel: em1: link state changed to DOWN
    Nov 18 17:49:09 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:10 check_reload_status: Linkup starting em1
    Nov 18 17:49:10 kernel: em1: link state changed to UP
    Nov 18 17:49:13 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:13 check_reload_status: rc.newwanip starting em1
    Nov 18 17:49:15 php: rc.newwanip: rc.newwanip: Informational is starting em1.
    Nov 18 17:49:15 php: rc.newwanip: rc.newwanip: on (IP address: ) (interface: opt1) (real interface: em1).
    Nov 18 17:49:15 php: rc.newwanip: rc.newwanip: Failed to update opt1 IP, restarting...
    Nov 18 17:49:15 check_reload_status: Configuring interface opt1
    Nov 18 17:49:17 php: rc.interfaces_wan_configure: The command '/sbin/ifconfig 'em1' inet delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
    Nov 18 17:49:17 check_reload_status: Linkup starting em1
    Nov 18 17:49:17 kernel: em1: link state changed to DOWN
    Nov 18 17:49:19 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:21 check_reload_status: Linkup starting em1
    Nov 18 17:49:21 kernel: em1: link state changed to UP
    Nov 18 17:49:23 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:23 check_reload_status: rc.newwanip starting em1
    Nov 18 17:49:25 php: rc.newwanip: rc.newwanip: Informational is starting em1.
    Nov 18 17:49:25 php: rc.newwanip: rc.newwanip: on (IP address: ) (interface: opt1) (real interface: em1).
    Nov 18 17:49:25 php: rc.newwanip: rc.newwanip: Failed to update opt1 IP, restarting...
    Nov 18 17:49:25 check_reload_status: Configuring interface opt1
    Nov 18 17:49:28 php: rc.interfaces_wan_configure: The command '/sbin/ifconfig 'em1' inet delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
    Nov 18 17:49:28 kernel: em1: link state changed to DOWN
    Nov 18 17:49:28 check_reload_status: Linkup starting em1
    Nov 18 17:49:30 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:32 check_reload_status: Linkup starting em1
    Nov 18 17:49:32 kernel: em1: link state changed to UP
    Nov 18 17:49:34 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:34 check_reload_status: rc.newwanip starting em1
    Nov 18 17:49:36 php: rc.newwanip: rc.newwanip: Informational is starting em1.
    Nov 18 17:49:36 php: rc.newwanip: rc.newwanip: on (IP address: ) (interface: opt1) (real interface: em1).
    Nov 18 17:49:36 php: rc.newwanip: rc.newwanip: Failed to update opt1 IP, restarting...
    Nov 18 17:49:36 check_reload_status: Configuring interface opt1
    Nov 18 17:49:38 php: rc.interfaces_wan_configure: The command '/sbin/ifconfig 'em1' inet delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
    Nov 18 17:49:38 check_reload_status: Linkup starting em1
    Nov 18 17:49:38 kernel: em1: link state changed to DOWN
    Nov 18 17:49:40 php: rc.linkup: Hotplug event detected for WIREDLAN2(opt1) but ignoring since interface is configured with static IP ( )
    Nov 18 17:49:42 check_reload_status: Linkup starting em1
    Nov 18 17:49:42 kernel: em1: link state changed to UP

    EDIT2:

    I have found a fix after a bit more googling.
    For anyone having the same issue I was, just apply the following patch:
    https://github.com/pfsense/pfsense/commit/f3a4601c85c4de78caa4f12fefd64067fd83dbe8



  • Hi

    I'm having the same problem you are. I wasn't sure what to do with the code but I figured it out and applied it to the rc.newwanip file, rebooted the machine and all is well. Machine has only been up for about 10mins now without dropping that connection, so far so good!

    Thank you so much for solving this!



  • I'm experiencing the same disconnect after setting up a transparent bridge - what did you do with this file to fix the constant reboots?


  • Netgate Administrator

    The problem that the above patches are referencing has been corrected in 2.1.1. In that instance the bridge member interfaces continuously cycle up and down approximately every 10s.
    Upgrade to 2.1.1 if you're still running 2.1.

    Steve



  • Awesome, thanks Steve.  Just installed the latest and it's working great.


Log in to reply