corrected ipv6 configuration and module

This commit is contained in:
2022-01-07 18:10:02 +01:00
parent 89b838dac3
commit ba1bd289c9
10 changed files with 22 additions and 3 deletions

View File

@@ -43,6 +43,8 @@ NET4_IP_eth1="192.168.74.221/24"
NET4_MODE_eth2="static" NET4_MODE_eth2="static"
NET4_IP_eth2="10.0.254.221/16" NET4_IP_eth2="10.0.254.221/16"
IPV6_IFACES="eth0 eth1"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::dd/64" NET6_IP_eth0="2a03:7220:8081:b301::dd/64"
NET6_GW_eth0="2a03:7220:8081:b301::e7" NET6_GW_eth0="2a03:7220:8081:b301::e7"

View File

@@ -1,3 +1,4 @@
# Fichier de configuration principal # Fichier de configuration principal
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@@ -45,6 +46,8 @@ NET4_IP_eth1="192.168.74.220/24"
NET4_MODE_eth2="static" NET4_MODE_eth2="static"
NET4_IP_eth2="10.0.254.220/16" NET4_IP_eth2="10.0.254.220/16"
IPV6_IFACES="eth0 eth1"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::dc/64" NET6_IP_eth0="2a03:7220:8081:b301::dc/64"
NET6_GW_eth0="2a03:7220:8081:b301::e6" NET6_GW_eth0="2a03:7220:8081:b301::e6"

View File

@@ -45,6 +45,8 @@ NET4_IP_eth1="192.168.74.206/24"
NET4_MODE_eth2="static" NET4_MODE_eth2="static"
NET4_IP_eth2="10.0.254.206/16" NET4_IP_eth2="10.0.254.206/16"
IPV6_IFACES="eth0 eth1"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::ce/64" NET6_IP_eth0="2a03:7220:8081:b301::ce/64"
NET6_GW_eth0="2a03:7220:8081:b301::e7" NET6_GW_eth0="2a03:7220:8081:b301::e7"

View File

@@ -45,6 +45,8 @@ NET4_IP_eth1="192.168.74.205/24"
NET4_MODE_eth2="static" NET4_MODE_eth2="static"
NET4_IP_eth2="10.0.254.205/16" NET4_IP_eth2="10.0.254.205/16"
IPV6_IFACES="eth0 eth1"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::cd/64" NET6_IP_eth0="2a03:7220:8081:b301::cd/64"
NET6_GW_eth0="2a03:7220:8081:b301::e6" NET6_GW_eth0="2a03:7220:8081:b301::e6"

View File

@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
NET4_MODE_eth1="static" NET4_MODE_eth1="static"
NET4_IP_eth1="10.0.254.207/16" NET4_IP_eth1="10.0.254.207/16"
IPV6_IFACES="eth0"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::cf/64" NET6_IP_eth0="2a03:7220:8081:b301::cf/64"
NET6_GW_eth0="2a03:7220:8081:b301::e6" NET6_GW_eth0="2a03:7220:8081:b301::e6"

View File

@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
NET4_MODE_eth1="static" NET4_MODE_eth1="static"
NET4_IP_eth1="10.0.254.235/16" NET4_IP_eth1="10.0.254.235/16"
IPV6_IFACES="eth0"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::eb/64" NET6_IP_eth0="2a03:7220:8081:b301::eb/64"
NET6_GW_eth0="2a03:7220:8081:b301::e7" NET6_GW_eth0="2a03:7220:8081:b301::e7"

View File

@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
NET4_MODE_eth1="static" NET4_MODE_eth1="static"
NET4_IP_eth1="10.0.254./16" NET4_IP_eth1="10.0.254./16"
IPV6_IFACES="eth0"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::/64" NET6_IP_eth0="2a03:7220:8081:b301::/64"
NET6_GW_eth0="2a03:7220:8081:b301::e6" NET6_GW_eth0="2a03:7220:8081:b301::e6"

View File

@@ -42,6 +42,8 @@ NET4_NS_SEARCH_eth0=$REALM
NET4_MODE_eth1="static" NET4_MODE_eth1="static"
NET4_IP_eth1="10.0.254.208/16" NET4_IP_eth1="10.0.254.208/16"
IPV6_IFACES="eth0"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::d0/64" NET6_IP_eth0="2a03:7220:8081:b301::d0/64"
NET6_GW_eth0="2a03:7220:8081:b301::e7" NET6_GW_eth0="2a03:7220:8081:b301::e7"

View File

@@ -45,6 +45,8 @@ NET4_IP_eth1="192.168.74.215/24"
NET4_MODE_eth2="static" NET4_MODE_eth2="static"
NET4_IP_eth2="10.0.254.215/16" NET4_IP_eth2="10.0.254.215/16"
IPV6_IFACES="eth0 eth1"
NET6_MODE_eth0="static" NET6_MODE_eth0="static"
NET6_IP_eth0="2a03:7220:8081:b301::d7/64" NET6_IP_eth0="2a03:7220:8081:b301::d7/64"
NET6_GW_eth0="2a03:7220:8081:b301::e6" NET6_GW_eth0="2a03:7220:8081:b301::e6"

View File

@@ -122,7 +122,7 @@ precheck_conf_network()
fi fi
done done
fi fi
if [[ -z $IPV4_IFACES ]]; then if [[ -z $IPV6_IFACES ]]; then
prnt W "No IPv6 interfaces to configure." prnt W "No IPv6 interfaces to configure."
else else
for iface in $IPV6_IFACES; do for iface in $IPV6_IFACES; do
@@ -134,10 +134,10 @@ precheck_conf_network()
if [[ -z $(eval echo \$NET6_IP_$iface) ]]; then if [[ -z $(eval echo \$NET6_IP_$iface) ]]; then
prnt E "No IPv6 have been assigned to static interface $iface!" prnt E "No IPv6 have been assigned to static interface $iface!"
fi 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") "dhcp")
prnt I "Interface $iface will use DHCPv6." prnt I " * Interface $iface will use DHCPv6."
;; ;;
"manual") "manual")
file_exists $(eval echo \$NET6_MANUAL_FILE_$iface) file_exists $(eval echo \$NET6_MANUAL_FILE_$iface)