Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 19/02/2014, à 01:52

xunil2003

Comment desactiver et réactiver un interface réseau via le shell

Bonjour,

J'ai deux cartes réseau, je voudrais désactiver l'interface eth0.
Quel est la commande à taper en ligne de commande pour désactivé et réactivé l'interface ?

Merci.


- AMD R9 5950x 64 Go Ram / Intel Pentium I7 960 - 12 Go Ram - 6 T0 - Kubuntu 12.04 x64 / Kubuntu 14.04 x64 / Kubuntu 16.04 x64 / Kubuntu 18.04 x64 /  Kubuntu 20.04 x64 / Mint
- DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4
- Raspberry PI 1 / Raspberry PI 2 / Raspberry PI 3 / Raspberry PI 4 : 4Gb
JE SUIS CHARLIE

Hors ligne

#2 Le 19/02/2014, à 02:01

spinoziste

Re : Comment desactiver et réactiver un interface réseau via le shell

Bonsoir .

En général il faut utiliser ifconfig [interface] up/down .
Dans ton cas par exemple :

sudo ifconfig eth0 down

Dernière modification par spinoziste (Le 19/02/2014, à 02:01)


Nous mourrons tous .

Hors ligne

#3 Le 19/02/2014, à 03:35

xunil2003

Re : Comment desactiver et réactiver un interface réseau via le shell

Bonsoir,

Désactiver un interface réseau  :

sudo ifconfig <interface> down

Activer un interface réseau  :

sudo ifconfig <interface> up

Merci.

Dernière modification par xunil2003 (Le 19/02/2014, à 13:31)


- AMD R9 5950x 64 Go Ram / Intel Pentium I7 960 - 12 Go Ram - 6 T0 - Kubuntu 12.04 x64 / Kubuntu 14.04 x64 / Kubuntu 16.04 x64 / Kubuntu 18.04 x64 /  Kubuntu 20.04 x64 / Mint
- DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4
- Raspberry PI 1 / Raspberry PI 2 / Raspberry PI 3 / Raspberry PI 4 : 4Gb
JE SUIS CHARLIE

Hors ligne