puppet-network
puppet-network copied to clipboard
No default gateway on Redhat 7 with multiple ip addresses
This basically reopens #176.
Expected Behavior
When using multiple ip addresses on Redhat/Centos 7 (initscripts-9.49.53-1.el7.x86_64 to be exact), the following should be configured:
(...)
IPADDR1="10.118.230.64"
IPADDR2="172.23.38.2"
NETMASK1="255.255.248.0"
NETMASK2="255.255.248.0"
GATEWAY="10.118.231.254"
(...)
Actual Behavior
GATEWAY1
is set instead of GATEWAY
. The network scripts use GATEWAY
to determine the default gateway. The only reference toGATEWAY1
is in the ifup-routes
script (see $'GATEWAY$routenum'
), but then the route-DEVICE
file should contain lines of the form ADDRESS1=(...)
and GATEWAY1=(...)
, not the ifcfg-DEVICE
file.
In #176 this was already discussed, but it seems that this slipped through.
Specifications
On Centos or Redhat 7 with last version of the module.