Différences entre les versions de « Exemple de paramétrages en IP fixe sous debian 11 »
Aller à la navigation
Aller à la recherche
Ligne 3 : | Ligne 3 : | ||
source /etc/network/interfaces.d/* | source /etc/network/interfaces.d/* | ||
\# The loopback network interface | |||
auto lo | auto lo | ||
Ligne 9 : | Ligne 9 : | ||
iface lo inet loopback | iface lo inet loopback | ||
# The primary network interface | \# The primary network interface | ||
#allow-hotplug enp0s3 | \#allow-hotplug enp0s3 | ||
#iface enp0s3 inet dhcp | \#iface enp0s3 inet dhcp | ||
# This is an autoconfigured IPv6 interface | \# This is an autoconfigured IPv6 interface | ||
#iface enp0s3 inet6 auto | \#iface enp0s3 inet6 auto | ||
auto enp0s3 | auto enp0s3 |
Version du 21 avril 2022 à 18:19
nano /etc/network/interfaces
source /etc/network/interfaces.d/*
\# The loopback network interface
auto lo
iface lo inet loopback
\# The primary network interface
\#allow-hotplug enp0s3
\#iface enp0s3 inet dhcp
\# This is an autoconfigured IPv6 interface
\#iface enp0s3 inet6 auto
auto enp0s3
iface enp0s3 inet static
address 192.168.2.3
netmask 255.255.255.0
gateway 192.168.2.253