Network : Différence entre versions
De Wiki NCad
(→= Routes statiques) |
(→IPv4) |
||
Ligne 14 : | Ligne 14 : | ||
dns-nameservers 8.8.8.8 8.8.4.4 | dns-nameservers 8.8.8.8 8.8.4.4 | ||
dns-search sys.net.glx</span> | dns-search sys.net.glx</span> | ||
+ | |||
+ | * Appliquer la configuration : | ||
+ | |||
+ | {{ Box Console | objet=/etc/init.d/networking restart }} | ||
== IP Secondaire == | == IP Secondaire == | ||
Ligne 34 : | Ligne 38 : | ||
network 10.1.0.0 | network 10.1.0.0 | ||
broadcast 10.1.0.255</span> | broadcast 10.1.0.255</span> | ||
+ | |||
+ | * Appliquer la configuration : | ||
+ | |||
+ | {{ Box Console | objet=/etc/init.d/networking restart }} | ||
== Routes statiques == | == Routes statiques == | ||
+ | |||
+ | = IPv6 = | ||
+ | |||
+ | == IP Statique == | ||
+ | |||
+ | <span style="color:blue">iface ens18 inet6 static | ||
+ | address 2001:41d0:c178:a181:10::1 | ||
+ | netmask 64 | ||
+ | gateway fe80::5cd5:9fdf:fe46:85a1 | ||
+ | dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844</span> | ||
+ | |||
+ | * Appliquer la configuration : | ||
+ | |||
+ | {{ Box Console | objet=/etc/init.d/networking restart }} | ||
+ | |||
+ | == IP Secondaire == | ||
+ | |||
+ | <span style="color:blue">auto ens18:1 | ||
+ | iface ens18:1 inet6 static | ||
+ | address 2001:41d0:c178:a181:10:1::1 | ||
+ | netmask 64</span> | ||
+ | |||
+ | * Appliquer la configuration : | ||
+ | |||
+ | {{ Box Console | objet=/etc/init.d/networking restart }} |
Version du 22 février 2020 à 14:15
Sommaire
IPv4
IP Statique
- Éditer et configurer le fichier /etc/network/interfaces et y ajouter / adapter :
auto ens18
iface ens18 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.254
dns-nameservers 8.8.8.8 8.8.4.4
dns-search sys.net.glx
- Appliquer la configuration :
|
IP Secondaire
- Éditer et configurer le fichier /etc/network/interfaces et y ajouter / adapter :
auto ens18 ens18:1 iface ens18 inet static address 10.0.0.1 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.254 dns-nameservers 8.8.8.8 8.8.4.4 dns-search sys.net.glx</span> iface ens18:1 address 10.1.0.1 netmask 255.255.255.0 network 10.1.0.0 broadcast 10.1.0.255
- Appliquer la configuration :
|
Routes statiques
IPv6
IP Statique
iface ens18 inet6 static
address 2001:41d0:c178:a181:10::1
netmask 64
gateway fe80::5cd5:9fdf:fe46:85a1
dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844
- Appliquer la configuration :
|
IP Secondaire
auto ens18:1
iface ens18:1 inet6 static
address 2001:41d0:c178:a181:10:1::1
netmask 64
- Appliquer la configuration :
|