Update and rename Changement IP.md to Changement IP RHEL.md
This commit is contained in:
parent
e3f613d94c
commit
418f12b065
17
1 - LINUX/Changement IP RHEL.md
Normal file
17
1 - LINUX/Changement IP RHEL.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Changement IP RHEL
|
||||||
|
|
||||||
|
En root
|
||||||
|
|
||||||
|
Lister les interfaces réseaux et récupérer le nom de l'interface souhaitée
|
||||||
|
|
||||||
|
`ifconfig`
|
||||||
|
|
||||||
|
Modifier le fichier de configuration
|
||||||
|
|
||||||
|
`nano /etc/sysconfig/network-scripts/ifcfg-<name>`
|
||||||
|
|
||||||
|
Enregistrer avec CTRL+X
|
||||||
|
|
||||||
|
Vérifier le bon addressage IP
|
||||||
|
|
||||||
|
`ifconfig`
|
@ -1,15 +0,0 @@
|
|||||||
# Changement IP
|
|
||||||
|
|
||||||
En root
|
|
||||||
|
|
||||||
Lister les interfaces réseaux
|
|
||||||
|
|
||||||
`ifconfig`
|
|
||||||
|
|
||||||
Noter l'interface voulue et exécuter la commande
|
|
||||||
|
|
||||||
`ifconfig eth0 <ip-address> netmask 255.255.255.0 [broadcast <broadcast-address>]`
|
|
||||||
|
|
||||||
Vérifier le bon addressage IP
|
|
||||||
|
|
||||||
`ifconfig`
|
|
Loading…
Reference in New Issue
Block a user