From b28c0e9c2346c4e4b399793ea797469c3f623b68 Mon Sep 17 00:00:00 2001 From: Stephen Wadeley Date: Oct 15 2015 21:24:34 +0000 Subject: Static routes should only be set in ifcfg files The use if /etc/sysconfig/network is depricated --- diff --git a/en-US/Configure_Networking.xml b/en-US/Configure_Networking.xml index f8421f6..b8bf9a8 100644 --- a/en-US/Configure_Networking.xml +++ b/en-US/Configure_Networking.xml @@ -1715,14 +1715,11 @@ default via 192.168.122.1 dev eth1 proto static metric 1024 The default gateway is determined by the network scripts which parse the /etc/sysconfig/network file first and then the network interface ifcfg files for interfaces that are up. The ifcfg files are parsed in numerically ascending order, and the last GATEWAY directive to be read is used to compose a default route in the routing table. - The default route can thus be indicated by means of the GATEWAY directive and can be specified either globally or in interface-specific configuration files. Specifying the gateway globally has certain advantages in static networking environments, especially if more than one network interface is present. It can make fault finding simpler if applied consistently. + The default route can thus be indicated by means of the GATEWAY directive, either globally or in interface-specific configuration files. However, in &MAJOROS; the use of the global /etc/sysconfig/network file is deprecated, and specifying the gateway should now only be done in per-interface configuration files. In dynamic network environments, where mobile hosts are managed by NetworkManager, gateway information is likely to be interface specific and is best left to be assigned by DHCP. In special cases where it is necessary to influence NetworkManager's selection of the exit interface to be used to reach a gateway, make use of the DEFROUTE=no command in the ifcfg files for those interfaces which do not lead to the default gateway. - - Global default gateway configuration is stored in the /etc/sysconfig/network file. This file specifies gateway and host information for all network interfaces. -