nouveau fichier : sisr1/tp01-02/srv-dhcp/hosts

nouveau fichier : sisr1/tp01-02/srv-dhcp/interfaces
This commit is contained in:
Guillaume Emorine 2024-01-30 15:17:29 +01:00
parent 2e3e58e8e6
commit 1267ec225b
2 changed files with 26 additions and 0 deletions

8
sisr1/tp01-02/srv-dhcp/hosts Executable file
View File

@ -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

View File

@ -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