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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...