1
18.1 Legacy Series / WAN DHCP - Loss of IP no retry
« on: July 02, 2018, 04:44:11 pm »
Hello,
I recently set up a OPNSense system and everything worked great, but today the WAN interface lost its DHCP-IP.
The modem should give out a new IP as I have no static IP on the WAN interface. But for some reason this failed, I was able to solve the issue with reapplying the DHCP setting on the interface.
I also checked the log and will attach it below.
It seems as the WAN interface went down and came back up, but dhclient failed (error code 15) to gain a new IP.
I can understand that it could fail (nothing is perfect), but why does it not retry after some time instead of being stuck with no IP.
Is there a way to tell the dhclient to retry after one failure?
Thanks in advance
I recently set up a OPNSense system and everything worked great, but today the WAN interface lost its DHCP-IP.
The modem should give out a new IP as I have no static IP on the WAN interface. But for some reason this failed, I was able to solve the issue with reapplying the DHCP setting on the interface.
I also checked the log and will attach it below.
It seems as the WAN interface went down and came back up, but dhclient failed (error code 15) to gain a new IP.
I can understand that it could fail (nothing is perfect), but why does it not retry after some time instead of being stuck with no IP.
Is there a way to tell the dhclient to retry after one failure?
Thanks in advance
Code: [Select]
Jul 2 10:52:43 Jun kernel: igb0: link state changed to DOWN
Jul 2 10:52:44 Jun opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet detached event for wan
Jul 2 10:52:44 Jun opnsense: /usr/local/etc/rc.linkup: Clearing states to old gateway 84.112.13.1.
Jul 2 10:52:47 Jun kernel: igb0: link state changed to UP
Jul 2 10:52:48 Jun opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet attached event for wan
Jul 2 10:52:48 Jun opnsense: /usr/local/etc/rc.linkup: HOTPLUG: Configuring interface wan
Jul 2 10:53:03 Jun kernel: ovpnc1: link state changed to DOWN
Jul 2 10:53:11 Jun kernel: igb0: link state changed to DOWN
Jul 2 10:53:14 Jun kernel: igb0: link state changed to UP
Jul 2 10:54:28 Jun opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'igb0'
Jul 2 10:54:28 Jun opnsense: /usr/local/etc/rc.newwanip: On (IP address: 192.168.100.3) (interface: WAN[wan]) (real interface: igb0).
Jul 2 10:54:29 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
Jul 2 10:54:29 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv4 default gateway set, assuming wan
Jul 2 10:54:29 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv6 default gateway set, assuming wan
Jul 2 10:54:29 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to 192.168.100.1
Jul 2 10:54:29 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway '192.168.100.1'
Jul 2 10:54:29 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: skipping IPv6 default route
Jul 2 10:54:34 Jun opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
Jul 2 10:54:43 Jun opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS: updatedns() starting
Jul 2 10:54:47 Jun configd_ctl.py: error in configd communication Traceback (most recent call last): File "/usr/local/opnsense/service/configd_ctl.py", line 65, in exec_config_cmd line = sock.recv(65536) timeout: timed out
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet detached event for wan
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: The command '/sbin/dhclient -c '/var/etc/dhclient_wan.conf' -p '/var/run/dhclient.igb0.pid' 'igb0'' returned exit code '15', the output was 'dhclient: PREINIT dhclient: Starting delete_old_states() dhclient: Comparing IPs: Old: 84.1.13.244 New: dhclient: Remo
ving states from old IP '84.1.13.244' (new IP '') 0 states cleared killed 0 src nodes from 1 sources and 0 destinations DHCPREQUEST on igb0 to 255.255.255.255 port 67 DHCPREQUEST on igb0 to 255.255.255.255 port 67 DHCPREQUEST on igb0 to 255.255.255.255 port 67 DHCPREQUEST on igb0 to 255.255.255.255 port 67 DHCPDIS
COVER on igb0 to 255.255.255.255 port 67 interval 2 DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 2 DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 4 igb0 link state up -> down DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 8 igb0 link state down -> up DHCPREQUEST on igb0 to 255.255.255
.255 port 67 DHCPREQUEST on igb0 to 255.255.255.255 port 67 DHCPREQUEST o
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: entering configure using 'wan'
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: no IPv4 default gateway set, assuming wan
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: no IPv6 default gateway set, assuming wan
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: setting IPv4 default route to 192.168.100.1
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: creating /tmp/igb0_defaultgw using '192.168.100.1'
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: The command '/sbin/route add -'inet' default '192.168.100.1'' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net default: gateway 192.168.100.1 fib 0: Network is unreachable'
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: skipping IPv6 default route
Jul 2 10:54:48 Jun opnsense: /usr/local/etc/rc.linkup: Clearing states to old gateway 192.168.100.1.
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet attached event for wan
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: HOTPLUG: Configuring interface wan
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: The command '/sbin/dhclient -c '/var/etc/dhclient_wan.conf' -p '/var/run/dhclient.igb0.pid' 'igb0'' returned exit code '1', the output was 'dhclient already running, pid: 30344. exiting.'
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: entering configure using 'wan'
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: no IPv4 default gateway set, assuming wan
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: no IPv6 default gateway set, assuming wan
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: skipping IPv4 default route
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.linkup: ROUTING: skipping IPv6 default route
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.newwanip: Aborted IPv4 detection: Resolving timed out after 5722 milliseconds
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS (@.flk-industries.com): IP address could not be extracted
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS (@.flk-industries.com): running get_failover_interface for wan. found igb0
Jul 2 10:54:49 Jun opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS (@.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:54:51 Jun opnsense: /usr/local/etc/rc.newwanip: Aborted IPv4 detection: no address for igb0
Jul 2 10:54:51 Jun opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS (wien.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:54:52 Jun opnsense: /usr/local/etc/rc.newwanip: Aborted IPv4 detection: no address for igb0
Jul 2 10:54:52 Jun opnsense: /usr/local/etc/rc.newwanip: Dynamic DNS (acme.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:54:53 Jun opnsense: /usr/local/etc/rc.linkup: The command '/usr/local/opnsense/scripts/dns/unbound_dhcpd.py /domain 'flk'' returned exit code '1', the output was 'Unable to lock on the pidfile.'
Jul 2 10:54:55 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS: updatedns() starting
Jul 2 10:54:55 Jun opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for igb0
Jul 2 10:54:55 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (@.flk-industries.com): IP address could not be extracted
Jul 2 10:54:55 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (@.flk-industries.com): running get_failover_interface for wan. found igb0
Jul 2 10:54:55 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (@.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:54:56 Jun opnsense: /usr/local/etc/rc.newwanip: The command '/usr/local/opnsense/scripts/dns/unbound_dhcpd.py /domain 'flk'' returned exit code '1', the output was 'Unable to lock on the pidfile.'
Jul 2 10:54:56 Jun opnsense: /usr/local/etc/rc.newwanip: The command '/usr/local/sbin/unbound -c '/var/unbound/unbound.conf'' returned exit code '1', the output was '[1530521696] unbound[8152:0] error: bind: address already in use [1530521696] unbound[8152:0] fatal error: could not open ports'
Jul 2 10:54:57 Jun opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for igb0
Jul 2 10:54:57 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (wien.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:54:57 Jun opnsense: /usr/local/etc/rc.linkup: The command '/usr/local/sbin/unbound -c '/var/unbound/unbound.conf'' returned exit code '1', the output was '[1530521697] unbound[25131:0] error: bind: address already in use [1530521697] unbound[25131:0] fatal error: could not open ports'
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for igb0
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (acme.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS: updatedns() starting
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for igb0
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (@.flk-industries.com): IP address could not be extracted
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (@.flk-industries.com): running get_failover_interface for wan. found igb0
Jul 2 10:54:59 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (@.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:55:01 Jun opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for igb0
Jul 2 10:55:01 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (wien.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 10:55:02 Jun opnsense: /usr/local/etc/rc.dyndns: Aborted IPv4 detection: no address for igb0
Jul 2 10:55:02 Jun opnsense: /usr/local/etc/rc.dyndns: Dynamic DNS (acme.flk-industries.com) There was an error trying to determine the public IP for interface - wan(igb0). Probably interface is not a WAN interface.
Jul 2 16:00:38 Jun opnsense: /index.php: Successful login for user 'admin' from: 192.168.10.121
Jul 2 16:01:39 Jun opnsense: /usr/local/etc/rc.newwanip: IP renewal is starting on 'igb0'
Jul 2 16:01:39 Jun opnsense: /usr/local/etc/rc.newwanip: On (IP address: 84.1.13.244) (interface: WAN[wan]) (real interface: igb0).
Jul 2 16:01:40 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
Jul 2 16:01:40 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv4 default gateway set, assuming wan
Jul 2 16:01:40 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: no IPv6 default gateway set, assuming wan
Jul 2 16:01:40 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to 84.112.13.1
Jul 2 16:01:40 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway '84.112.13.1'
Jul 2 16:01:40 Jun opnsense: /usr/local/etc/rc.newwanip: ROUTING: skipping IPv6 default route
Jul 2 16:01:45 Jun opnsense: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.