From 90125744b49031bffb3bf7a7f190873f7c4cfdbd Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 18 Jun 2014 12:18:58 +1000 Subject: [PATCH] Define gateway for default route in $NETWORKS It now goes into one of the ifcfg-eth* files instead of /etc/sysconfig/network. NetworkManager in RHEL 7.0 seems to have a horrible bug. If GATEWAY is defined in /etc/sysconfig/network and if it brings up the "wrong" interface first then it adds a host route to the gateway on the "wrong" network. This means that outbound traffic is OK. However, for incoming traffic, ARP responses go out the "wrong" interface and are either filtered on the node or are ignored by the host machine. Signed-off-by: Martin Schwenke --- autocluster | 11 +++++++++++ base/all/etc/sysconfig/network | 1 - config.d/00base.defconf | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/autocluster b/autocluster index cb719cb..9146728 100755 --- a/autocluster +++ b/autocluster @@ -785,6 +785,16 @@ setup_network() local netname dev ip mask mac opts while read netname dev ip mask mac opts; do echo " $dev" + + local o gw + gw="" + for o in $opts ; do + case "$o" in + gw\=*) + gw="${o#gw=}" + esac + done + cat <" "description of IP networks" has_public_addresses_DEFAULT () -- 2.34.1