Proxmox disable IPv6 on a tap by default
This commit is contained in:
parent
d6a735b585
commit
41132aa328
|
@ -172,7 +172,7 @@ for ID_RANGE_V4 in ${ID_RANGES_V4}; do
|
|||
${COMMAND}
|
||||
|
||||
# Updating ARP
|
||||
COMMAND="ip neigh change ${VM_IPV4} lladdr ${MAC} dev tap${VM_ID}i0"
|
||||
COMMAND="ip neigh add ${VM_IPV4} lladdr ${MAC} dev tap${VM_ID}i0"
|
||||
echo "${COMMAND}"
|
||||
write_log INFO "${COMMAND}"
|
||||
${COMMAND}
|
||||
|
@ -199,6 +199,9 @@ for ID_RANGE_V6 in ${ID_RANGES_V6}; do
|
|||
VM_NH=$(ipv6calc --action prefixmac2ipv6 --in prefix+mac --out ipv6addr fe80:: ${MAC})
|
||||
fi
|
||||
|
||||
# Activation of IPv6 on the tap interface
|
||||
sysctl net.ipv6.conf.tap${VM_ID}i0.disable_ipv6=1
|
||||
|
||||
# Ajout de la route associée
|
||||
COMMAND="ip -6 route add ${VM_IPV6}/48 via ${VM_NH} dev tap${VM_ID}i0"
|
||||
echo "${COMMAND}"
|
||||
|
@ -206,7 +209,7 @@ for ID_RANGE_V6 in ${ID_RANGES_V6}; do
|
|||
${COMMAND}
|
||||
|
||||
# Updating NDP
|
||||
COMMAND="ip neigh change ${VM_NH} lladdr ${MAC} dev tap${VM_ID}i0"
|
||||
COMMAND="ip neigh add ${VM_NH} lladdr ${MAC} dev tap${VM_ID}i0"
|
||||
echo "${COMMAND}"
|
||||
write_log INFO "${COMMAND}"
|
||||
${COMMAND}
|
||||
|
|
Loading…
Reference in a new issue