
He creado, en el servidor Fedora, una conexión de equipo usando networkManager
nmcli con add type team con-name team0 ifname team0 config /usr/share/doc/teamd/example_configs/random.conf
nmcli con add type team-slave ifname enp1s0 master team0
nmcli con add type team-slave ifname enp7s0 master team0
nmcli connection modify team0 ethernet.mac-address 01:02:03:04:05:06
nmcli connection up team0
nmcli connection delete ethernet-enp1s0
nmcli connection delete ethernet-enp7s0
El comando es simple, creé la conexión del equipo0, agregué dos tarjetas de red (enp1s0 y enp7s0), luego obligué al equipo0 a usar la dirección mac 01:02:03:04:05:06 (es falsa... solo por razones de seguridad). ) para obtener el mismo nombre de host e IP de dhcp. Funciona bien, pero al reiniciar...
nmcli conn show
Cable connection 1 3bce3e28-47a0-365b-8290-eda5ff3f7c7b ethernet nm-team
team0 6f97a64b-f341-4cbe-b001-d8bb3faa8768 team --
team-slave-enp1s0 cc6f2e64-8f38-4a83-b1c3-226e22943751 ethernet --
team-slave-enp7s0 ecdefac9-779b-4c86-838b-46e69132c94b ethernet --
Al intentar activar team0 me da este error
nmcli conn up team0
nm-team failed to create resources: Failed to create team master interface 'nm-team' for 'team0': wrong-type
Respuesta1
Solución encontrada, esta línea.
nmcli connection modify team0 ethernet.mac-address 01:02:03:04:05:06
Confunda un poco el sistema y cambie el nombre de enp1s0 (físico) a equipo0 (virtual). Eliminar esta línea y rehacer la otra funciona bien incluso al reiniciar, para obtener la misma IP de dhcp uso esta forma de configuración
host myhost {
hardware ethernet 00:00:00:00:00:00;
fixed-address 192.168.0.12;
ddns-hostname "myhost";
ddns-ttl 31536000;
}
host myhost-2 {
hardware ethernet 00:00:00:00:00:00;
fixed-address 192.168.0.12;
ddns-hostname "myhost";
ddns-ttl 31536000;
}