Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
04-linux:10-administration:80-network [2019/02/08 01:27] – [Gérer le Bluetooth] Roge | 04-linux:10-administration:80-network [2024/01/12 23:53] (Version actuelle) – [Network] Roge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Network ====== | ====== Network ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ===== Network ===== | ||
+ | |||
+ | <code bash> | ||
+ | lshw -C network | ||
+ | WARNING: you should run this program as super-user. | ||
+ | *-network | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | size: 10Mbit/s | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | *-network | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | bus info: pci@0000: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | WARNING: output may be incomplete or inaccurate, you should run this program as super-user. | ||
+ | </ | ||
+ | |||
+ | |||
+ | En plus court : '' | ||
+ | |||
+ | <code bash> | ||
+ | Network: | ||
+ | IF: enp3s0 state: down mac: 40: | ||
+ | | ||
+ | IF: wlp6s0 state: up mac: e8: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== nmtui ===== | ||
+ | |||
+ | nmtui permet de configurer le network manager en mode graphique. | ||
+ | |||
+ | ===== network-manager ===== | ||
+ | |||
+ | Redémarrage du network manager : | ||
+ | <code bash> | ||
+ | sudo service network-manager restart | ||
+ | </ | ||
+ | |||
+ | Configurer l' | ||
+ | |||
+ | <code bash> | ||
+ | sudo gedit / | ||
+ | # On doit avoir | ||
+ | |||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | </ | ||
+ | |||
+ | Redémarrer une interface réseau | ||
+ | |||
+ | <note tip>Ne semble fonctionner que si l' | ||
+ | <code bash> | ||
+ | sudo ifdown wlp6s0 && sudo ifup -v wlp6s0 | ||
+ | </ | ||
===== Commandes de base ===== | ===== Commandes de base ===== | ||
Ligne 57: | Ligne 137: | ||
+ | ===== DNS ===== | ||
+ | Vérification du DNS | ||
+ | <code bash> | ||
+ | nmcli device show wlp6s0 | grep IP4.DNS | ||
+ | IP4.DNS[1]: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Variante : | ||
+ | <code bash> | ||
+ | dig something.unknown | ||
+ | ;; SERVER: 192.168.0.254# | ||
+ | |||
+ | </ | ||
+ | |||
+ | Variante : | ||
+ | <code bash> | ||
+ | nslookup null | ||
+ | Server: | ||
+ | Address: | ||
+ | |||
+ | ** server can't find null: NXDOMAIN | ||
+ | |||
+ | </ | ||
===== Gérer le Wifi ===== | ===== Gérer le Wifi ===== | ||
Ligne 84: | Ligne 189: | ||
<code bash> | <code bash> | ||
+ | |||
+ | Activer la carte WiFi : | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | Liste des réseaux accessibles : | ||
+ | |||
+ | <code bash> | ||
+ | sudo iwlist wlp6s0 scan | grep -E ' | ||
+ | sudo iwlist wlp6s0 scan | grep ' | ||
+ | |||
+ | nmcli r wifi on | ||
+ | </ | ||
===== Gérer le Bluetooth ===== | ===== Gérer le Bluetooth ===== | ||
Ligne 113: | Ligne 231: | ||
<code bash> | <code bash> | ||
- | Installer **blueman** pour gérer | + | Pour désactiver en permanence |
- | <code bash> | + | |
+ | <code bash> | ||
+ | sudo vi / | ||
+ | |||
+ | rfkill block bluetooth | ||
+ | exit 0 | ||
+ | </ | ||
+ | |||
+ | Installer **blueman** (manager amélioré) pour gérer le Bluetooth: | ||
+ | <code bash> | ||