mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 03:30:09 +01:00
The GATEWAY from /etc/sysconfig/network file is used as a default value when no GATEWAY is in ifcfg file. However, we have to ignore that GATEWAY for connections without static addresses. Otherwise such connections would be invalid and would disappear after restart/reaload. Some notes: Putting GATEWAY into /etc/sysconfig/network is not recommended, because it inherently belongs to the ifcfg file as it is a per-interface property. The recommended practice is to specify GATEWAY in individual ifcfg files and define DEFROUTE=no if the interface should not get the default route. But we continue to read GATEWAY from /etc/sysconfig/network for compatibility reasons. See also https://bugzilla.redhat.com/show_bug.cgi?id=896198#c25 https://bugzilla.redhat.com/show_bug.cgi?id=896198#c27 Fixes: |
||
|---|---|---|
| .. | ||
| plugins | ||
| nm-agent-manager.c | ||
| nm-agent-manager.h | ||
| nm-inotify-helper.c | ||
| nm-inotify-helper.h | ||
| nm-secret-agent.c | ||
| nm-secret-agent.h | ||
| nm-settings-connection.c | ||
| nm-settings-connection.h | ||
| nm-settings.c | ||
| nm-settings.h | ||
| nm-system-config-interface.c | ||
| nm-system-config-interface.h | ||