I'm trying to get a VM up and running and am currently stuck on the creating a bridge part.
I was able to create a bridge on ubuntu server 17.10 and had the internet working. I decided to give 16.04 a try and used my interfaces configuration from 17.10. (of course, the IP address was adjusted for the new machine).
Both of the things below were copy/pasted after SSHing into the server.
Here is my ifconfig of the new machine:
And here is the interfaces file:
When I have enp0s25 set to dhcp, and completely remove everything related to br0, I can ping google without a problem. If I use the above configuration, I lose connection.
I was able to create a bridge on ubuntu server 17.10 and had the internet working. I decided to give 16.04 a try and used my interfaces configuration from 17.10. (of course, the IP address was adjusted for the new machine).
Both of the things below were copy/pasted after SSHing into the server.
Here is my ifconfig of the new machine:
Code:
enp0s25 Link encap:Ethernet HWaddr 00:1c:c0:fb:34:8f
inet addr:192.168.2.67 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c0ff:fefb:348f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11569 (11.5 KB) TX bytes:7609 (7.6 KB)
Interrupt:20 Memory:f3300000-f3320000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:176 errors:0 dropped:0 overruns:0 frame:0
TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:13296 (13.2 KB) TX bytes:13296 (13.2 KB)
virbr0-nic Link encap:Ethernet HWaddr 52:54:00:d5:2f:41
inet6 addr: fe80::5054:ff:fed5:2f41/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code:
auto enp0s25
iface enp0s25 inet manual
auto br0
iface br0 inet static
address 192.168.2.67
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
bridge_ports enp0s25
bridge_stp off
bridge_fd 0
bridge_maxwait 0