Adresse IP en static ----> failed to bring up eth0

Résolu
JacksonX32 Messages postés 6 Statut Membre -  
JacksonX32 Messages postés 6 Statut Membre -
Hello! j'ai besoin de passer mon IP en statique, je modifie le fichier interfaces, je restart eth0, mais il m'affiche un msg d'erreur, une solution ?
#Primary network interfaces
auto eth0
iface eth0 inet static
address 192.168.0.51
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 8.8.8.8

# The loopback network interface
auto lo
iface lo inet loopback


et quand je restart eth0 voila ce qui me renvoi :
[....] Running etc/init.d/networking restart is deprecated because it may not re[warnle some interfaces ... (warning).
[....] Reconfiguring network interfaces...RTNETLINK answers: File exists
Failed to bring up eth0.
done.
A voir également:

2 réponses

mamiemando Messages postés 34184 Statut Modérateur 7 888
 
Y a t'il d'autres interfaces sur ce PC dont une qui a déjà une route (gateway) par défaut ?

Bonne chance
1
JacksonX32 Messages postés 6 Statut Membre
 
Non, qu'une interface, mais j'ai résolu mon problème! le lendemain j'ai redémarrer la machine, je l'ai passé en dhcp, puis je l'ai repassé en static, et la magie, ça marche. je passe le sujet en résolu ;)
-1