Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
utilisateurs:tyzef:tutos:ethernet [30/12/2020 01:44] TyZef |
utilisateurs:tyzef:tutos:ethernet [24/07/2022 13:18] TyZef [Utilisation] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== connexion internet ====== | + | ====== connecter l'Ethernet ====== |
- | * Objet : du tuto FIXME | + | * Objet : se connecter au web a partir d'une "netinst" sans même les paquets recommandés |
- | * Niveau requis : FIXME {{tag>débutant avisé}} | + | * Niveau requis : débutant/avisé |
- | * Commentaires : //Contexte d'utilisation du sujet du tuto. // FIXME | + | * Commentaires : vient s'embriquer a : [[https://debian-facile.org/doc:install:install_minimale|Installation minimale de Debian avec serveur X]] |
- | * Débutant, à savoir : [[:doc:systeme:commandes:le_debianiste_qui_papillonne|Utiliser GNU/Linux en ligne de commande, tout commence là !.]] :-) | + | * Débutant, à savoir : [[:doc:systeme:commandes:le_debianiste_qui_papillonne|Utiliser GNU/Linux en ligne de commande, tout commence là !.]] |
- | ===== Introduction ===== | ||
- | |||
- | Configurer mon câble internet / ma connexion ethernet | ||
===== Installation ===== | ===== Installation ===== | ||
- | # je recherche le nom de mon interface | + | Tout d'abord installer le paquet [[https://debian-facile.org/doc:reseau:wpasupplicant|wpa-supplicant : configuration wifi]] |
- | ip a | + | (dans le cas ou vous desirez vous connecter via WiFi...) |
- | # ce qui me donne enp1s0 | + | il faut aussi détecter et installer sa carte : [[https://debian-facile.org/doc:materiel:wifi:detecter?s[]=wifi]] |
- | # je pénètre mon fichier de configuration | + | ===== Utilisation ===== |
- | nano /etc/network/interfaces | + | je recherche le nom de mon interface |
- | # j'y injecte | + | <code user>ip a</code> |
- | allow-hotplug enp1s0 | + | ce qui me donne ''enp2s0'' pour le cable ou ''wlp1s0'' pour le WiFi. |
- | iface enp1s0 inet dhcp | + | je pénètre mon fichier de configuration |
- | # je monte ma connexion | + | <code root>nano /etc/network/interfaces</code> |
- | ifup enp1s0 | + | j'y injecte |
- | + | <code root># This file describes the network interfaces available on your system | |
- | # je vérifie que je suis bien monté | + | |
- | + | ||
- | ping www.debian-facile.org | + | |
- | + | ||
- | ##################№######## | + | |
- | + | ||
- | + | ||
- | # This file describes the network interfaces available on your system | + | |
# and how to activate them. For more information, see interfaces(5). | # and how to activate them. For more information, see interfaces(5). | ||
+ | # | ||
source /etc/network/interfaces.d/* | source /etc/network/interfaces.d/* | ||
- | + | # | |
- | # The loopback network interface | + | # |
+ | ### The loopback network interface ### | ||
+ | # | ||
auto lo | auto lo | ||
iface lo inet loopback | iface lo inet loopback | ||
- | + | # | |
- | # The cable | + | # |
- | allow-hotplug enp1s0 | + | ### The ethernet interface ### |
- | iface enp1s0 inet dhcp | + | # |
- | + | #allow-hotplug enp2s0 | |
- | # The wifi | + | #iface enp2s0 inet dhcp |
- | + | # | |
- | allow-hotplug wlp2s0 | + | # |
- | + | ### The WiFi interface ### | |
- | iface wlp2s0 inet dhcp | + | # |
- | + | #allow-hotplug wlp1s0 | |
- | wpa-ssid GNU-Linux | + | #iface wlp1s0 inet dhcp |
- | + | #wpa-ssid GNU/Linux-Debian11 | |
- | wpa-psk >>>>>>>>>>>><<<<<<<<<<<< | + | #wpa-psk N1portKELmot2P@SS |
- | + | # | |
- | ===== Utilisation ===== | + | # |
- | + | ### The hotspot interface ### | |
- | # je surf !!! | + | # |
+ | #allow-hotplug wlp1s0 | ||
+ | #iface wlp1s0 inet dhcp | ||
+ | #wpa-ssid GNU/Linux | ||
+ | #wpa-psk N1portKELmot2P@SS | ||
+ | # | ||
+ | ### The USB tethering ### | ||
+ | # | ||
+ | # | ||
+ | #allow-hotplug usb0 | ||
+ | #iface usb0 inet dhcp | ||
+ | </code> | ||
+ | (je commente "#" ou décommente au besoin...)\\ | ||
+ | \\ | ||
+ | un ping qui va bien pour voir si je suis bien connecté:\\ | ||
+ | <code user>ping www.debian-facile.org</code> | ||
+ | je sors du ping en faisant ''CTRL+z'' |