Configurando la red en un Servidor Ubuntu 9.04 64Bits

Configurando la tarjeta de red

Primero de todo entramos en la máquina con nuestro usuario y contraseña, una vez dentro nos pasaremos a SuperAdministradores para facilitar el trabajo.

sudo su

Ahora vamos a configurar la tarjeta de red, con una ip fija, para eso vamos a editar el fichero /etc/network/interfaces

vim /etc/network/interfaces

Modificamos el fichero, en mi caso utilizare la IP 192.168.0.191

# This file describes the network interfaces avai# and how to activate them.
 
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.191
netmask 255.255.255.0
gateway 192.168.0.248

Reiniciamos la configuración de la red

/etc/init.d/networking restart

Vamos a mirar el fichero Hosts, para cambiar el nombre del dominio.

vim /etc/hosts

Dentro veremos algo así

127.0.0.1 localhost.localdomain localhost
192.168.0.191 srvubuntu.virtualizacionesx.com srvubuntu

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Ok ya tenemos nuestro Server en red.

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.