N
N
Nicholas2016-12-17 18:04:58
System administration
Nicholas, 2016-12-17 18:04:58

How to properly create a network bridge in ubuntu?

Add to /etc/network/interfaces:
auto br1
iface br1 inet static
address 192.168.1.253
broadcast 192.169.1.255
netmask 255.255.255.0
bridge_ports enp2s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
Save and restart:
sudo /etc/init.d/networking restart
and I choose in virtualbox:
network bridge> br1
And in the guest machine we have the Internet! Everything seems to be buzzing, but Internet access is lost on the host machine!
What is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Erelecano Oioraen, 2016-12-17
@Erelecano

> sudo /etc/init.d/networking restart
Don't do this. That's not necessary at all. It's not 2006 in our yard.
Either service to restart if you have 14.04 and upstart, or systemctl if 16.04 and systemd.
And as a matter of fact, I don’t really understand why you rule something with your hands? Toy virtualization from Oracle requires manual settings? Use KVM and virt-manager, it will do everything by itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question