aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ippp
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp16
1 files changed, 12 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index 2f715796..4ddf67c9 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -345,10 +345,18 @@ function addprovider()
fi
fi
- ## Setup IPv6
- #if [ "${NETWORKING_IPV6}" = "yes" ]; then
- # /etc/sysconfig/network-scripts/ifup-ipv6 $DEVICE
- #fi
+ # Setup IPv6
+ if [ "${NETWORKING_IPV6}" = "yes" ]; then
+ if [ "$IPV6INIT" = "yes" -a ! -z "$IPV6ADDR" ]; then
+ # Native IPv6 use of device configured, check of encapsulation required
+ if [ "$ENCAP" = "syncppp" ]; then
+ echo $"Warning: ipppd (kernel 2.4.x and below) doesn't support IPv6 using encapsulation 'syncppp'"
+ elif [ "$ENCAP" = "rawip" ]; then
+ echo $"Warning: link doesn't support IPv6 using encapsulation 'rawip'"
+ fi
+ fi
+ /etc/sysconfig/network-scripts/ifup-ipv6 $DEVICE
+ fi
}
addprovider || exit 1