corrected ipv6 configuration and module
This commit is contained in:
@@ -43,6 +43,8 @@ NET4_IP_eth1="192.168.74.221/24"
|
||||
NET4_MODE_eth2="static"
|
||||
NET4_IP_eth2="10.0.254.221/16"
|
||||
|
||||
IPV6_IFACES="eth0 eth1"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::dd/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e7"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
# Fichier de configuration principal
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@@ -45,6 +46,8 @@ NET4_IP_eth1="192.168.74.220/24"
|
||||
NET4_MODE_eth2="static"
|
||||
NET4_IP_eth2="10.0.254.220/16"
|
||||
|
||||
IPV6_IFACES="eth0 eth1"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::dc/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e6"
|
||||
|
||||
@@ -45,6 +45,8 @@ NET4_IP_eth1="192.168.74.206/24"
|
||||
NET4_MODE_eth2="static"
|
||||
NET4_IP_eth2="10.0.254.206/16"
|
||||
|
||||
IPV6_IFACES="eth0 eth1"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::ce/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e7"
|
||||
|
||||
@@ -45,6 +45,8 @@ NET4_IP_eth1="192.168.74.205/24"
|
||||
NET4_MODE_eth2="static"
|
||||
NET4_IP_eth2="10.0.254.205/16"
|
||||
|
||||
IPV6_IFACES="eth0 eth1"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::cd/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e6"
|
||||
|
||||
@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
|
||||
NET4_MODE_eth1="static"
|
||||
NET4_IP_eth1="10.0.254.207/16"
|
||||
|
||||
IPV6_IFACES="eth0"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::cf/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e6"
|
||||
|
||||
@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
|
||||
NET4_MODE_eth1="static"
|
||||
NET4_IP_eth1="10.0.254.235/16"
|
||||
|
||||
IPV6_IFACES="eth0"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::eb/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e7"
|
||||
|
||||
@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
|
||||
NET4_MODE_eth1="static"
|
||||
NET4_IP_eth1="10.0.254./16"
|
||||
|
||||
IPV6_IFACES="eth0"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e6"
|
||||
|
||||
@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
|
||||
NET4_MODE_eth1="static"
|
||||
NET4_IP_eth1="10.0.254.208/16"
|
||||
|
||||
IPV6_IFACES="eth0"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::d0/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e7"
|
||||
|
||||
@@ -45,6 +45,8 @@ NET4_IP_eth1="192.168.74.215/24"
|
||||
NET4_MODE_eth2="static"
|
||||
NET4_IP_eth2="10.0.254.215/16"
|
||||
|
||||
IPV6_IFACES="eth0 eth1"
|
||||
|
||||
NET6_MODE_eth0="static"
|
||||
NET6_IP_eth0="2a03:7220:8081:b301::d7/64"
|
||||
NET6_GW_eth0="2a03:7220:8081:b301::e6"
|
||||
|
||||
@@ -122,7 +122,7 @@ precheck_conf_network()
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if [[ -z $IPV4_IFACES ]]; then
|
||||
if [[ -z $IPV6_IFACES ]]; then
|
||||
prnt W "No IPv6 interfaces to configure."
|
||||
else
|
||||
for iface in $IPV6_IFACES; do
|
||||
@@ -134,10 +134,10 @@ precheck_conf_network()
|
||||
if [[ -z $(eval echo \$NET6_IP_$iface) ]]; then
|
||||
prnt E "No IPv6 have been assigned to static interface $iface!"
|
||||
fi
|
||||
prnt I "Interface $iface will have $(eval echo \$NET6_IP_$iface) static IPv6 address."
|
||||
prnt I " * Interface $iface will have $(eval echo \$NET6_IP_$iface) static IPv6 address."
|
||||
;;
|
||||
"dhcp")
|
||||
prnt I "Interface $iface will use DHCPv6."
|
||||
prnt I " * Interface $iface will use DHCPv6."
|
||||
;;
|
||||
"manual")
|
||||
file_exists $(eval echo \$NET6_MANUAL_FILE_$iface)
|
||||
|
||||
Reference in New Issue
Block a user