1 ip a dos interfaces en un server linux

hola a todos, es posible tener una misma ip a dos interfaces en un equipo que tenga linux, es posible esto, si esto fuese posible una seria activa y la otra pasiva, si alguien me puede dar una mano se lo agradeceria

Forums: 

Es posible !!! 1. Crea el

Imagen de robecarlsiro

Es posible !!!

1. Crea el siguiente archivo /etc/bonding.conf:

alias bond0 bonding

2. Crear los archivos de la interfaz de unión de canales ifcfg-bond0 y ifcfg bond1-, en el archivo / etc / sysconfig / network-scripts /:

# Cat / etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE = bond0
IPADDR = 192.168.50.111
Netmask = 255.255.255.0
USERCTL = no
BOOTPROTO = ninguno
ONBOOT = yes
BONDING_OPTS = "mode = 0 miimon = 100"

Nota: hay diferentes modos para bond0 . Para el dispositivo bond0, es la política de balance-rr (mode = 0).

3. Configurar la interfaz de Ethernet en el archivo / etc/sysconfig/network-scripts/ifcfg-eth0. Tanto eth0 y eth1 debe ser similar al siguiente ejemplo:

DEVICE = eth
BOOTPROTO = none
HWADDR = 54:52:00:26:90: FC
ONBOOT = yes
MAESTRO = bond0
SLAVE = yes
USERCTL = no

4. Reinicia el servicio de red:

# Service network restart

5 . TEST

# Cat / proc/net/bonding/bond0

Hola configure el bonding de

Hola configure el bonding de otra manera, pero no me funciona, probe configurando la interfaz eth0 sin bond lenvante la interfaz y aun asi no le hago ping al router, que podria ser, lo que me parece raro es que ni configurandola como interfaz normal funciona, dejo la manera de como configure las interfaces con bond0.
aca configuro el bond0
#cd /etc/sysconfig/network-scripts/#vi ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
IPAADR=192.168.1.100
NETMASK=255.255.255.0
ONBOOT=yes

luego le digo a la eth0 y eth1 que hagan bond0
#vi ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
ONBOOT=yes
USERCTL=no

Igual para eth1, posterior a esto reinicio el servicio de red, como no me funciono la configure normal y tampoco, y no es el cable por que pongo mi lapto con el rango del router y le hago ping al gateway

Hola configure el bonding de

Hola configure el bonding de otra manera, pero no me funciona, probe configurando la interfaz eth0 sin bond lenvante la interfaz y aun asi no le hago ping al router, que podria ser, lo que me parece raro es que ni configurandola como interfaz normal funciona, dejo la manera de como configure las interfaces con bond0.
aca configuro el bond0
#cd /etc/sysconfig/network-scripts/#vi ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
IPAADR=192.168.1.100
NETMASK=255.255.255.0
ONBOOT=yes

luego le digo a la eth0 y eth1 que hagan bond0
#vi ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
ONBOOT=yes
USERCTL=no

Igual para eth1, posterior a esto reinicio el servicio de red, como no me funciono la configure normal y tampoco, y no es el cable por que pongo mi lapto con el rango del router y le hago ping al gateway

Páginas