From 0bdad5443e3400884fa9d5e351499f6592b1e0f6 Mon Sep 17 00:00:00 2001 From: hmalti Date: Thu, 9 May 2019 19:25:19 +0200 Subject: [PATCH] Ajout affichage configuration réseau container --- create_container.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create_container.sh b/create_container.sh index 271614e..3eeb907 100644 --- a/create_container.sh +++ b/create_container.sh @@ -129,7 +129,6 @@ for a in $ADDRS_IPV4; do done for (( i=0 ; i < ${#ARRAY_IPV4[*]} ; i++ )); do - nsenter -t $PID -n ip a #Attribution de la i-ème adresse ip à l'interface i nsenter -t $PID -n ip a add ${ARRAY_IPV4[i]} dev eth$i #On redemarre l'interface i dans le container @@ -143,6 +142,9 @@ for (( i=0 ; i < ${#ARRAY_BRIDGES[*]} ; i++ )); do ip link set ${ARRAY_INTERFACES[i]} master ${ARRAY_BRIDGES[i]} done +echo "Configuration réseau au sein du conteneur" +nsenter -t $PID -n ip a + #Chaine de caractère contenant toutes les interfaces du container, séparées par "," STRING_INTERFACE="" -- libgit2 0.21.2