From 1267ec225b6480b9573eb8b2c8ebb38d129e5427 Mon Sep 17 00:00:00 2001 From: Guillaume Emorine Date: Tue, 30 Jan 2024 15:17:29 +0100 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20sisr1/tp01-02/srv?= =?UTF-8?q?-dhcp/hosts=20=09nouveau=20fichier=C2=A0:=20sisr1/tp01-02/srv-d?= =?UTF-8?q?hcp/interfaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sisr1/tp01-02/srv-dhcp/hosts | 8 ++++++++ sisr1/tp01-02/srv-dhcp/interfaces | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 sisr1/tp01-02/srv-dhcp/hosts create mode 100755 sisr1/tp01-02/srv-dhcp/interfaces diff --git a/sisr1/tp01-02/srv-dhcp/hosts b/sisr1/tp01-02/srv-dhcp/hosts new file mode 100755 index 0000000..00fba25 --- /dev/null +++ b/sisr1/tp01-02/srv-dhcp/hosts @@ -0,0 +1,8 @@ +127.0.0.1 localhost +127.0.0.1 dhcp-ge.sio.lan dhcp-ge +192.168.0.24 bookworm-jp.sio.lan bookworm-jp +192.168.0.40 bookworm-jb.sio.lan bookworm-jb +# The following lines are desirable for IPv6 capable hosts +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters diff --git a/sisr1/tp01-02/srv-dhcp/interfaces b/sisr1/tp01-02/srv-dhcp/interfaces new file mode 100755 index 0000000..89b033d --- /dev/null +++ b/sisr1/tp01-02/srv-dhcp/interfaces @@ -0,0 +1,18 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug enp0s8 +iface enp0s8 inet static + address 192.168.2.1/24 +#enp0s3 static +auto enp0s3 +iface enp0s3 inet static + address 192.168.0.120/24 + gateway 192.168.0.1