TL; DR do link .
-
Instale o pacote
bridge-utils.sudo apt-get install bridge-utils -
Adicione o seguinte texto ao final do arquivo
/etc/network/interfaces.# Bridge between eth1 and eth4 auto br0 # [Dynamic IP] iface br0 inet dhcp # [Static IP] For static configuration delete or comment out the above line and uncomment the following: # iface br0 inet static # address 192.168.1.10 # netmask 255.255.255.0 # gateway 192.168.1.1 # dns-nameservers 192.168.1.5 # dns-search example.com bridge_ports eth1 eth4 bridge_stp off bridge_fd 0 bridge_maxwait 0 -
Reinicie a rede.
sudo /etc/init.d/networking restart
Explicação:
-
auto br0: configura uma nova interface chamadabr0, que representa as redes com ponte. -
[IP dinâmico]
iface br0 inet dhcp: O IP dessa rede (a rede em ponte) é obtido usando DHCP. -
[IP estático]
iface br0 inet static: nesse caso, você deve cancelar o comentário dos seguintes comandos. -
bridge_ports: interfaces a serem interligadas.