Na minha área de trabalho do Ubuntu 16.04, estou tentando configurar uma ponte chamada nic br0
no meu /etc/network/interfaces
como abaixo
auto enp2s0
iface enp2s0 inet manual
auto br1
iface br1 inet dhcp
pre-up ip link add veth0 type veth peer name veth1
pre-up ifconfig veth0 up
pre-up ifconfig veth1 up
bridge_ports enp2s0 veth0
bridge_maxwait 5
bridge_stp off
bridge_hw a8:20:66:06:71:50
Durante a inicialização, ele mostra falha de rede e eu uso systemctl status networking.service
que recebi a mensagem:
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: failed (Result: exit-code) since Mon 2016-11-28 02:21:12 CST; 56s ago
Docs: man:interfaces(5)
Process: 889 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 884 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ]
Main PID: 889 (code=exited, status=1/FAILURE)
Nov 28 02:21:09 iMac systemd[1]: Starting Raise network interfaces...
Nov 28 02:21:11 iMac ifup[889]: /sbin/ifup: waiting for lock on /run/network/ifstate.enp2s0
Nov 28 02:21:12 iMac ifup[889]: device br0 already exists; can't create bridge with the same name
Nov 28 02:21:12 iMac ifup[889]: run-parts: /etc/network/if-pre-up.d/bridge exited with return code 1
Nov 28 02:21:12 iMac ifup[889]: Failed to bring up br0.
Nov 28 02:21:12 iMac systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 28 02:21:12 iMac systemd[1]: Failed to start Raise network interfaces.
Nov 28 02:21:12 iMac systemd[1]: networking.service: Unit entered failed state.
Nov 28 02:21:12 iMac systemd[1]: networking.service: Failed with result 'exit-code'.
Estou tão confuso porque diz br0 already exists
.
Se eu substituí br0
por br1
em /etc/network/interfaces
, tudo funciona bem.
Na minha outra área de trabalho dentro da mesma LAN (conectada ao mesmo roteador wifi),
Eu já nomeei uma ponte como br0
, isso faz com que eu não possa nomear minha bridge br0
nesta área de trabalho?
Tags networking linux bridge