Jump to content

Como le doy Ip Estatica a red hat


xchubyx

Recommended Posts

A lo macho:

 

nano /etc/sysconfig/network-scripts/ifcfg-interfaz

 

donde interfaz puede ser eth0, wlan0

 

Y alli, cambias los valores por:

 

BOOTPROTO=STATIC

ONBOOT=YES

IPADDR=NUEVAIP

NETMASK=MASCARASUBRED

BROADCAST=DIRECCIONDEBROADCAST

 

 

eso es todo, puedes configurar la gateway tambien:

 

 

route add default gw NUEVAGATEWAY

 

 

Lo anterior hace los cambios permanentes, si quieres simplemente hacerlos por la session:

 

ifconfig INTERFAZ IPNUEVA netmask MASCARADESUBRED

 

Eso es todo :)

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...