Project

General

Profile

Actions

Bug #8910

closed

DHCP default gateway undefined

Added by Steve Wheeler about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
High
Category:
Gateways
Target version:
Start date:
09/18/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.4
Affected Architecture:
All

Description

If you have a DHCP dynamic gateway set as the default in 2.4.3 you may or may not have an entry for it in the <gateways> section of the config. It seems more common not to have that.
Without an entry there is no <defaultgw> tag (it is assumed?). When you upgrade to 2.4.4 the default IPv4 and IPv6 gateways, or gateway groups, are explicitly defined but without a default gateway set in the config it results in the default gateway set to 'Automatic' with no tags in the config.
If you only have the DHCP gateway on the system that will work but if you have multiple gateways any of them (it's unclear how that is decided) could become default potentially breaking upstream connectivity.

I hit this repeatably but was able to get past it by manually adding an entry for DHCP WAN:

        <gateway_item>
            <interface>wan</interface>
            <gateway>dynamic</gateway>
            <name>WAN_DHCP</name>
            <weight>1</weight>
            <ipprotocol>inet</ipprotocol>
            <descr><![CDATA[Interface WAN_DHCP Gateway]]></descr>
            <defaultgw></defaultgw>
        </gateway_item>

Actions

Also available in: Atom PDF