|
|
|
@ -118,22 +118,27 @@ EOT
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gen_iface6_conf() {
|
|
|
|
|
if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then
|
|
|
|
|
echo "IPADDR_0=$IP6/${IP6_PREFIX_LENGTH:-64}"
|
|
|
|
|
else
|
|
|
|
|
cat <<EOT
|
|
|
|
|
if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then
|
|
|
|
|
echo "IPADDR_0=$IP6/${IP6_PREFIX_LENGTH:-64}"
|
|
|
|
|
|
|
|
|
|
cat <<EOT >> /etc/sysconfig/network/ifsysctl-$DEV
|
|
|
|
|
net.ipv6.conf.\$SYSCTL_IF.autoconf = 0
|
|
|
|
|
net.ipv6.conf.\$SYSCTL_IF.accept_ra = 0
|
|
|
|
|
EOT
|
|
|
|
|
else
|
|
|
|
|
cat <<EOT
|
|
|
|
|
IPV6INIT=yes
|
|
|
|
|
IPV6ADDR=$IP6/${IP6_PREFIX_LENGTH:-64}
|
|
|
|
|
IPV6_AUTOCONF=no
|
|
|
|
|
EOT
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -n "$IP6_ULA" ]; then
|
|
|
|
|
if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then
|
|
|
|
|
echo "IPADDR_1=$IP6_ULA/64"
|
|
|
|
|
echo "IPADDR_1=$IP6_ULA/64"
|
|
|
|
|
else
|
|
|
|
|
echo "IPV6ADDR_SECONDARIES=$IP6_ULA/64"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -n "$GATEWAY6" ]; then
|
|
|
|
@ -202,6 +207,8 @@ gen_network_configuration()
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
rm -f /etc/sysconfig/network/ifroute-$DEV
|
|
|
|
|
rm -f /etc/sysconfig/network/ifsysctl-$DEV
|
|
|
|
|
|
|
|
|
|
cat <<EOT
|
|
|
|
|
DEVICE=$DEV
|
|
|
|
|
BOOTPROTO=static
|
|
|
|
|