Update and rename Changement IP.md to Changement IP RHEL.md

This commit is contained in:
Demonic 2023-07-13 13:56:48 +02:00 committed by GitHub
parent e3f613d94c
commit 418f12b065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 15 deletions

View 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`

View File

@ -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`