From d5382134f21c8b2ad8df0ac7e50e7bd460b7589e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 7 Jan 2003 21:18:38 +0000 Subject: IPv6 updates , --- sysconfig/network-scripts/ifup-sit | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup-sit') diff --git a/sysconfig/network-scripts/ifup-sit b/sysconfig/network-scripts/ifup-sit index ada8b086..2f629850 100755 --- a/sysconfig/network-scripts/ifup-sit +++ b/sysconfig/network-scripts/ifup-sit @@ -8,7 +8,7 @@ # # RHL integration assistance by Pekka Savola # -# Version 2002-11-01 +# Version 2002-12-04 # # Uses following information from /etc/sysconfig/network: # NETWORKING_IPV6=yes|no: controls IPv6 initialization (global setting) @@ -24,6 +24,7 @@ # IPV6TUNNELIPV4=: IPv4 address of remote tunnel endpoint # IPV6TUNNELIPV4LOCAL=: (optional) local IPv4 address of tunnel # IPV6ADDR=[/]: (optional) local IPv6 address of a numbered tunnel +# IPV6ADDR_SECONDARIES="[/] ..." (optional) additional local IPv6 addresses # @@ -85,6 +86,13 @@ if [ -n "$IPV6ADDR" ]; then ipv6_add_addr_on_device $DEVICE $IPV6ADDR fi +# Setup additional IPv6 addresses from list, if given +if [ -n "$IPV6ADDR_SECONDARIES" ]; then + for ipv6addr in $IPV6ADDR_SECONDARIES; do + ipv6_add_addr_on_device $DEVICE $ipv6addr + done +fi + # Setup default IPv6 route, check are done by function if [ -n "$IPV6_DEFAULTDEV" -o -n "$IPV6_DEFAULTGW" ]; then ipv6_set_default_route "$IPV6_DEFAULTGW" "$IPV6_DEFAULTDEV" "$DEVICE" @@ -96,3 +104,10 @@ if [ -f /etc/sysconfig/static-routes-ipv6 ]; then ipv6_add_route $ipv6route :: $DEVICE done fi + +# Setup additional static IPv6 routes (newer config style) +if [ -f "/etc/sysconfig/network-scripts/route6-$REALDEVICE" ]; then + cat "/etc/sysconfig/network-scripts/route6-$REALDEVICE" | sed 's/#.*//g' | grep -v '^[[:space:]]*$' | while read line; do + ipv6_exec_ip -6 route add $line + done +fi -- cgit v1.2.1