Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

No default gateway on Redhat 7 with multiple ip addresses #327

Open
peterverraedt opened this issue Nov 10, 2020 · 0 comments
Open

No default gateway on Redhat 7 with multiple ip addresses #327

peterverraedt opened this issue Nov 10, 2020 · 0 comments

Comments

@peterverraedt
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant