# Demande d explication

**URL:** <https://www.debian-fr.org/t/demande-d-explication/86005>\
**Category:** Support Debian\
**Created:** [Janvier 16, 2022, 7:59 UTC](https://www.debian-fr.org/t/demande-d-explication/86005 "2022-01-16T19:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat66](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pat66/32/11445_2.png) [@Pat66](https://www.debian-fr.org/u/Pat66)\
**Post date:** [Janvier 16, 2022, 7:59 UTC](https://www.debian-fr.org/t/demande-d-explication/86005/1 "2022-01-16T19:59:33Z")

</div>

Bonsoir

j aborde la partie reseau sur Debian (sur linux en generale)  
et personnellement je suis un petit peu perdu. deja parce que le cour se base sur ubuntu qui implique netplan et ensuite le fait que sur ma debian 10 je dois recourir au fichier /etc/network/interfaces.

Je voudrai avoir des explications detaillees  
par exemple que dois je comprendre par

```nohighlight
allow-hotplug enp0s3
iface enp0s3 inet dhcp

```

ca peux faire rire certains mais je suis autodidacte .et pour moi c est du chinois.

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Janvier 16, 2022, 8:04 UTC](https://www.debian-fr.org/t/demande-d-explication/86005/2 "2022-01-16T20:04:18Z")

</div>

```
man interfaces
```

---

<div class="post-metadata">

**Author:** ![dindoun](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dindoun/32/4281_2.png) [@dindoun](https://www.debian-fr.org/u/dindoun)\
**Post date:** [Janvier 16, 2022, 10:06 UTC](https://www.debian-fr.org/t/demande-d-explication/86005/3 "2022-01-16T22:06:36Z")

</div>

> [@Pat66](#):
>
> ```plaintext
> allow-hotplug enp0s3
> 
> ```

enp0s3 est allumé quand le hardware est détecté

> [@Pat66](#):
>
> ```plaintext
> iface enp0s3 inet dhcp
> 
> ```

enp0s3 utilise dhcp

The following example configures two network interfaces: eth0 is brought up at boot, and uses DHCP for IPv4 and SLAAC for IPv6, whereas eth1 is brought  
up whenever the network hardware is detected, and is configured with static IPv4 and IPv6 addresses.

```plaintext
auto eth0
allow-hotplug eth1

iface eth0 inet dhcp

iface eth0 inet6 auto

iface eth1 inet static
    address 192.168.1.2/24
    gateway 192.168.1.1

iface eth1 inet6 static
    address fec0:0:0:1::2/64
    gateway fec0:0:0:1::1

```
