Me echan una mano gracias

  • Autor Autor milenio
  • Fecha de inicio Fecha de inicio
milenio

milenio

Zeta
compañeros alguien me hecha una mano a cambiar la ip del vps por otra adicinal que e comprado aqui me an mandado tutorial pero no se como hacerlo funcionar gracias si alguien me ayuda a decirme los pasos se lo agradeceria mucho

url: OVH : NuevoAliasIp

Sistemas DEBIAN y UBUNTU

Partimos de la configuración de base:


ns1234:~# /sbin/ifconfig
eth0 Lien encap:Ethernet HWaddr 00:E0:4C:C3:AD😀9
inet adr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4930202 errors:0 dropped:11 overruns:0 frame:61
TX packets:5300596 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:624322837 (595.4 MiB) TX bytes:926284302 (883.3 MiB)
Interruption:11 Adresse de base:0xe000

lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:281255 errors:0 dropped:0 overruns:0 frame:0
TX packets:281255 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:95895754 (91.4 MiB) TX bytes:95895754 (91.4 MiB)

nsXXXX:~#



Deseamos añadir la IP DIRECCION.IP.FAIL.OVER a nuestra interfaz de red eth0

Editamos el fichero /etc/network/interfaces haciendo una copia de seguridad previa, de la manera siguiente :


nsXXXX:~# cp /etc/network/interfaces /etc/network/interfaces.save
nsXXXX:~# nano /etc/network/interfaces




Modificar en Debian 5 y anteriores:


# The loopback interface
# Interfaces that comes with Debian Potato does not like to see
# "auto" option before "iface" for the first device specified.
iface lo inet loopback
auto lo

# Device eth0 configured by System Configurator

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
broadcast xxx.xxx.xxx.255
network xxx.xxx.xxx.0
gateway xxx.xxx.xxx.254


auto eth0:0
iface eth0:0 inet static
address DIRECCION.IP.FAIL.OVER
netmask 255.255.255.255




Modificar en Debian 6 :


# The loopback interface
# Interfaces that comes with Debian Potato does not like to see
# "auto" option before "iface" for the first device specified.
iface lo inet loopback
auto lo

# Device eth0 configured by System Configurator

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
broadcast xxx.xxx.xxx.255
network xxx.xxx.xxx.0
gateway xxx.xxx.xxx.254

post-up /sbin/ifconfig eth0:X DIRECCION.IP.FAIL.OVER netmask 255.255.255.255 broadcast DIRECCION.IP.FAIL.OVER
post-down /sbin/ifconfig eth0:X down




A continuación activamos la nueva interfaz que hemos definido:


nsXXXX:~# /etc/init.d/networking restart




Verificamos la configuración :


nsXXXX:~# /sbin/ifconfig
eth0 Lien encap:Ethernet HWaddr 00:E0:4C:C3:AD😀9
inet adr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4931032 errors:0 dropped:11 overruns:0 frame:61
TX packets:5301462 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:624387843 (595.4 MiB) TX bytes:926395528 (883.4 MiB)
Interruption:11 Adresse de base:0xe000

eth0:0 Lien encap:Ethernet HWaddr 00:E0:4C:C3:AD😀9
inet adr😀IRECCION.IP.FAIL.OVER Bcast😀IRECCION.IP.FAIL.OVER Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interruption:11 Adresse de base:0xe000

lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:281263 errors:0 dropped:0 overruns:0 frame:0
TX packets:281263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:95897173 (91.4 MiB) TX bytes:95897173 (91.4 MiB)

nsXXXX :~#



Adapte la dirección que se indica en el ejemplo a la dirección IP que le ha sido atribuída


Al final, obtiene dos direcciones IP en una misma tarjeta de red :eth0
IP xxx.xxx.xxx.xxx en la interfaz eth0 (la dirección de origen)
IP DIRECCION.IP.FAIL.OVER en la interfaz eth0:0 (la dirección Fail-over)

Nota : La máscara de la nueva IP Fail over es : 255.255.255.255
 
Ahí has puesto la solución cual es el problema.

Sigue la instrucción de Modificar en Debian 5 y anteriores, luego reinicias el networking y listo.
 
tengo ubuntu puesto pero no se los pasos tengo que hacer devian 5 esos que tengo que poner .

abro esto Editamos el fichero /etc/network/interfaces

luego esto

nsXXXX:~# cp /etc/network/interfaces /etc/network/interfaces.save
nsXXXX:~# nano /etc/network/interfaces

luego esto

# The loopback interface
# Interfaces that comes with Debian Potato does not like to see
# "auto" option before "iface" for the first device specified.
iface lo inet loopback
auto lo

# Device eth0 configured by System Configurator

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
broadcast xxx.xxx.xxx.255
network xxx.xxx.xxx.0
gateway xxx.xxx.xxx.254


auto eth0:0
iface eth0:0 inet static
address DIRECCION.IP.FAIL.OVER
netmask 255.255.255.255

y al final
nsXXXX:~# /etc/init.d/networking restart

yasta eso es mi duda
 
Pues eso tienes que hacer únicamente cambia DIRECCION.IP.FAIL.OVER por la IP que te dieron.
 

Temas similares

Atrás
Arriba