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

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

@peterverraedt

Description

@peterverraedt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions