From 32a67116ad1b2f058d9724b5205a859f01dca7a3 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 29 Apr 2014 13:21:31 +0200 Subject: ifup-eth: some options for bridge can be applied after the bridge is up --- sysconfig/network-scripts/ifup-eth | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 24f212f0..17846964 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -286,6 +286,16 @@ if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; the ip route add 169.254.0.0/16 dev ${REALDEVICE} metric $((1000 + $(cat /sys/class/net/${REALDEVICE}/ifindex))) scope link fi +if [ "${TYPE}" = "Bridge" ]; then + for arg in $BRIDGING_OPTS ; do + key=${arg%%=*}; + value=${arg##*=}; + if [ "${key}" = "multicast_router" -o "${key}" = "hash_max" ]; then + echo $value > /sys/class/net/${DEVICE}/bridge/$key + fi + done +fi + # IPv6 initialisation? /etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG} if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhclient ]; then -- cgit v1.2.1