informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatique:linux:commandes_linux [2019/09/06 12:00] – [chkconfig] pteu | informatique:linux:commandes_linux [2019/10/09 17:38] – [ip] pteu | ||
---|---|---|---|
Line 1147: | Line 1147: | ||
Couteau suisse réseau, il permet de configurer les paramètres ip d'une interface réseau. | Couteau suisse réseau, il permet de configurer les paramètres ip d'une interface réseau. | ||
<code bash> | <code bash> | ||
+ | # afficher les interfaces | ||
ip addr show | ip addr show | ||
1: lo: < | 1: lo: < | ||
Line 1158: | Line 1159: | ||
3: eth1: < | 3: eth1: < | ||
| | ||
+ | |||
+ | # afficher la table de routage | ||
+ | ip route | ||
+ | default via 10.10.22.249 dev ens3 onlink | ||
+ | 10.10.22.0/ | ||
+ | |||
+ | # affecter ou supprimer une adresse IP à une interface | ||
+ | ip addr add 10.0.0.1 255.255.255.0 dev eth0 | ||
+ | ip addr del 10.0.0.1 255.255.255.0 dev eth0 | ||
+ | |||
+ | # afficher les voisins | ||
+ | ip neigh | ||
</ | </ | ||
informatique/linux/commandes_linux.txt · Last modified: 2024/04/05 06:58 by pteu