From 6844d059742757fce848332c859b860b16efa644 Mon Sep 17 00:00:00 2001 From: bb Date: Wed, 27 Jan 2021 08:50:13 +0100 Subject: [PATCH] chemin absolu + interface dhcp agence --- roles/post/files/interfaces.r-vp1 | 6 +++--- roles/post/files/interfaces.r-vp2 | 4 ++-- roles/post/files/interfaces.s-agence | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/roles/post/files/interfaces.r-vp1 b/roles/post/files/interfaces.r-vp1 index ce75e55..b2345c5 100644 --- a/roles/post/files/interfaces.r-vp1 +++ b/roles/post/files/interfaces.r-vp1 @@ -21,9 +21,9 @@ allow-hotplug enp0s9 iface enp0s9 inet static address 192.168.1.2 netmask 255.255.255.0 - post-up ip route add 172.16.128.0/24 via 192.168.1.2 - post-up ip route add 172.16.0.0/24 via 192.168.1.1 - post-up ip route add 192.168.200.0/24 via 192.168.1.1 + post-up /usr/sbin/ip route add 172.16.128.0/24 via 192.168.1.2 + post-up /usr/sbin/ip route add 172.16.0.0/24 via 192.168.1.1 + post-up /usr/sbin/ip route add 192.168.200.0/24 via 192.168.1.1 # up route add -net 172.16.128.0/24 gw 192.168.0.52 # up route add default gw 192.168.1.1 diff --git a/roles/post/files/interfaces.r-vp2 b/roles/post/files/interfaces.r-vp2 index 233bf5b..2790d47 100644 --- a/roles/post/files/interfaces.r-vp2 +++ b/roles/post/files/interfaces.r-vp2 @@ -21,8 +21,8 @@ allow-hotplug enp0s9 iface enp0s9 inet static address 192.168.0.52 netmask 255.255.255.0 - post-up ip route add 192.168.1.0/24 via 172.16.128.254/24 - post-up ip route add 172.16.0.0/24 via 172.16.128.254/24 + post-up /usr/sbin/ip route add 192.168.1.0/24 via 172.16.128.254/24 + post-up /usr/sbin/ip route add 172.16.0.0/24 via 172.16.128.254/24 # up route add -net 192.168.1.0/24 gw 192.168.0.52 # post-up /bin/bash /root/iptables-vpn diff --git a/roles/post/files/interfaces.s-agence b/roles/post/files/interfaces.s-agence index 98a4301..be903f4 100644 --- a/roles/post/files/interfaces.s-agence +++ b/roles/post/files/interfaces.s-agence @@ -9,3 +9,6 @@ iface lo inet loopback allow-hotplug enp0s3 iface enp0s3 inet dhcp +allow-hotplug enp0s8 +iface enp0s8 inet dhcp +