|
|
|
@ -118,15 +118,20 @@ 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
|
|
|
|
@ -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
|
|
|
|
|