From a732995a7bb7ca071ca2594731b8ce211ecc63d1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 12 Mar 2002 17:49:58 +0000 Subject: revert LVS-related changes --- sysconfig.txt | 3 --- sysconfig/network-scripts/ifup | 18 ++++-------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/sysconfig.txt b/sysconfig.txt index 0b4b7aef..85109c7e 100644 --- a/sysconfig.txt +++ b/sysconfig.txt @@ -455,7 +455,6 @@ Files in /etc/sysconfig/network-scripts/ DEVICE= IPADDR= - SRCADDR= NETMASK= GATEWAY= ONBOOT=yes|no @@ -470,8 +469,6 @@ Files in /etc/sysconfig/network-scripts/ file if PEERDNS is not set to "no". FIREWALL_MODS=yes|no modify firewall to attempt to allow DNS through. Defaults to 'yes'. - SRCADDR= - use the specified source address for outgoing packets If BOOTPROTO is not "none", then the only other item that must be set is the DEVICE item; all the rest will be determined diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 47b6d385..cd2c2286 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -212,23 +212,13 @@ else else SCOPE= fi - - if [ -n "$SRCADDR" ]; then - SRC="src $SRCADDR" - else - SRC= - fi - + if ! LC_ALL=C ip addr ls ${REALDEVICE} | grep -q "${IPADDR}/${PREFIX}" ; then if ! ip addr add ${IPADDR}/${PREFIX} \ brd ${BROADCAST:-+} dev ${REALDEVICE} ${SCOPE} label ${DEVICE}; then echo $"Error adding address ${IPADDR} for ${DEVICE}." fi fi - - if [ -n "$SRCADDR" ]; then - sysctl -w "net.ipv4.conf.${REALDEVICE}.arp_filter=1" >/dev/null 2>&1 - fi # update ARP cache of neighboring computers arping -q -A -c 1 -I ${REALDEVICE} ${IPADDR} @@ -237,17 +227,17 @@ else # Add a route for the subnet. Replace any existing route. if [ "${ISALIAS}" = no ]; then - ip route replace ${NETWORK}/${PREFIX} ${SRC} dev ${REALDEVICE} + ip route replace ${NETWORK}/${PREFIX} dev ${REALDEVICE} fi # Set a default route. if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then # set up default gateway if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null`" = "NETWORK=${NETWORK}" ]; then - ip route add default via ${GATEWAY} ${SRC} + ip route add default via ${GATEWAY} DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then - ip route add default ${SRC} dev ${REALDEVICE} + ip route add default dev ${REALDEVICE} fi fi fi -- cgit v1.2.1