Libvirt network bridging issuesKVM Network Bridge to assign Static IPBridging: Loosing WLAN network connection with 4addr on option - Why?Bridging two networks: access to bridge slow and unreliable14.04 no internet connection when I up the bridge interface (for LXC container)How to assign static IP to KVM VM after bridging?bridging two wireless interfacesDisable hidden bridging between network interfacesEnable network bridging on Ubuntu serverUnable to bridge network to qemu (libvirt) guestbridging KVM on Ubuntu 18.04Bridging, bonding and netplan

Does the posterior necessarily follow the same conditional dependence structure as the prior?

Can White Castle?

Can you apprehend something instead of someone?

Was there ever a name for the weapons of the Others?

Why does passing to a function a set::iterator instead of a const_iterator violate the One Definition Rule?

If I wouldn't want to read the story, is writing it still a good idea?

How come I was asked by a CBP officer why I was in the US?

Can ADFS connect to other SSO services?

STM Microcontroller burns every time

Is it correct that dependent origination will cease to exist if one doesn't have 12 nidanas?

Trainee keeps missing deadlines for independent learning

Did Karl Marx ever use any example that involved cotton and dollars to illustrate the way capital and surplus value were generated?

Employer wants to use my work email account after I quit

Does Marvel have an equivalent of the Green Lantern?

Cascading Repair Costs following Blown Head Gasket on a 2004 Subaru Outback

Are there any efficient algorithms to solve the longest path problem in networks with cycles?

What are the penalties for overstaying in USA?

Suggested order for Amazon Prime Doctor Who series

Does squid ink pasta bleed?

Where do I get advice and guidance from in my PhD if my supervisor is not an expert in the field I am working on?

Should I tell my insurance company I'm making payments on my new car?

Has there been any indication at all that further negotiation between the UK and EU is possible?

Conjugating present and past negative i-adjectives

How to add multiple ip address in destination ip in acl rule



Libvirt network bridging issues


KVM Network Bridge to assign Static IPBridging: Loosing WLAN network connection with 4addr on option - Why?Bridging two networks: access to bridge slow and unreliable14.04 no internet connection when I up the bridge interface (for LXC container)How to assign static IP to KVM VM after bridging?bridging two wireless interfacesDisable hidden bridging between network interfacesEnable network bridging on Ubuntu serverUnable to bridge network to qemu (libvirt) guestbridging KVM on Ubuntu 18.04Bridging, bonding and netplan






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I want to set up a bridge so that guest VMs on my headless server use the LAN DHCP and not dnsmasq. I followed these instructions: https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html#bridge-debian. Looking at the ifconfig results, it seems to give me exactly what I was looking for:



br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.210 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::4216:7eff:fe63:7516 prefixlen 64 scopeid 0x20<link>
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 8255 bytes 653898 (653.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 633 bytes 60185 (60.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.195 netmask 255.255.255.0 broadcast 192.168.1.255
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 42190 bytes 48646124 (48.6 MB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 9808 bytes 889965 (889.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2215 bytes 510180 (510.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2215 bytes 510180 (510.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:7a:ca:5e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


However, if I try to SSH into my server (192.168.1.195) from another machine (192.168.1.196), I can't connect. Pings from the server can't seem to reach other devices on my LAN, but pings from the server to 8.8.8.8 seem to work OK. My /etc/network/interfaces file looks like the below (the MAC is my server's NIC):



iface enp3s0 inet manual

auto br0
iface br0 inet static
# Use the MAC address identified above.
hwaddress ether 40:16:7e:63:75:16
address 192.168.1.210
netmask 255.255.255.0
gateway 192.168.1.1

bridge_ports enp3s0
# If you want to turn on Spanning Tree Protocol, ask your hosting
# provider first as it may conflict with their network.
bridge_stp on
# If STP is off, set to 0. If STP is on, set to 2 (or greater).
bridge_fd 0


I've spent the last two days googling, and re-imaged my server a couple of times as well when things got too broken, and I think I'm just losing the plot... My server is Ubuntu 18.04.2, completely stock other than the libvirt and ssh packages installed. How can I get the server to be reachable by my other network machines?










share|improve this question






















  • What happens if you try to ssh to the bridge address? 192.168.1.210 in your case. Once the enp3s0 port is bound to the bridge it shouldn't have/need its own address unless you're doing something like configuring sub-interfaces.

    – RobertRSeattle
    Apr 15 at 2:12











  • did you modify your vm definitions to use the bridge? See step 2, here.

    – Doug Smythies
    Apr 15 at 16:20











  • Thanks for the quick replies, guys! Yes, I can access 192.168.1.210 from my Windows machine using Putty. Sorry - I should have checked before posting. HOWEVER, I've lost access to filesharing (mapped network drive no longer works), and apps running on the server have problems getting to the internet. About ready to throw this thing out the window :)

    – Adam Mac
    Apr 16 at 0:21











  • I'm still trying to get to a point where my server sits on 192.168.1.195 and my VM guest is on the same subnet, say 192.168.1.210. And where both the server and the VM are visible to my Windows machine 192.168.1.196. Have run out of hair to pull out.

    – Adam Mac
    Apr 16 at 0:36

















2















I want to set up a bridge so that guest VMs on my headless server use the LAN DHCP and not dnsmasq. I followed these instructions: https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html#bridge-debian. Looking at the ifconfig results, it seems to give me exactly what I was looking for:



br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.210 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::4216:7eff:fe63:7516 prefixlen 64 scopeid 0x20<link>
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 8255 bytes 653898 (653.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 633 bytes 60185 (60.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.195 netmask 255.255.255.0 broadcast 192.168.1.255
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 42190 bytes 48646124 (48.6 MB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 9808 bytes 889965 (889.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2215 bytes 510180 (510.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2215 bytes 510180 (510.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:7a:ca:5e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


However, if I try to SSH into my server (192.168.1.195) from another machine (192.168.1.196), I can't connect. Pings from the server can't seem to reach other devices on my LAN, but pings from the server to 8.8.8.8 seem to work OK. My /etc/network/interfaces file looks like the below (the MAC is my server's NIC):



iface enp3s0 inet manual

auto br0
iface br0 inet static
# Use the MAC address identified above.
hwaddress ether 40:16:7e:63:75:16
address 192.168.1.210
netmask 255.255.255.0
gateway 192.168.1.1

bridge_ports enp3s0
# If you want to turn on Spanning Tree Protocol, ask your hosting
# provider first as it may conflict with their network.
bridge_stp on
# If STP is off, set to 0. If STP is on, set to 2 (or greater).
bridge_fd 0


I've spent the last two days googling, and re-imaged my server a couple of times as well when things got too broken, and I think I'm just losing the plot... My server is Ubuntu 18.04.2, completely stock other than the libvirt and ssh packages installed. How can I get the server to be reachable by my other network machines?










share|improve this question






















  • What happens if you try to ssh to the bridge address? 192.168.1.210 in your case. Once the enp3s0 port is bound to the bridge it shouldn't have/need its own address unless you're doing something like configuring sub-interfaces.

    – RobertRSeattle
    Apr 15 at 2:12











  • did you modify your vm definitions to use the bridge? See step 2, here.

    – Doug Smythies
    Apr 15 at 16:20











  • Thanks for the quick replies, guys! Yes, I can access 192.168.1.210 from my Windows machine using Putty. Sorry - I should have checked before posting. HOWEVER, I've lost access to filesharing (mapped network drive no longer works), and apps running on the server have problems getting to the internet. About ready to throw this thing out the window :)

    – Adam Mac
    Apr 16 at 0:21











  • I'm still trying to get to a point where my server sits on 192.168.1.195 and my VM guest is on the same subnet, say 192.168.1.210. And where both the server and the VM are visible to my Windows machine 192.168.1.196. Have run out of hair to pull out.

    – Adam Mac
    Apr 16 at 0:36













2












2








2


1






I want to set up a bridge so that guest VMs on my headless server use the LAN DHCP and not dnsmasq. I followed these instructions: https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html#bridge-debian. Looking at the ifconfig results, it seems to give me exactly what I was looking for:



br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.210 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::4216:7eff:fe63:7516 prefixlen 64 scopeid 0x20<link>
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 8255 bytes 653898 (653.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 633 bytes 60185 (60.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.195 netmask 255.255.255.0 broadcast 192.168.1.255
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 42190 bytes 48646124 (48.6 MB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 9808 bytes 889965 (889.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2215 bytes 510180 (510.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2215 bytes 510180 (510.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:7a:ca:5e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


However, if I try to SSH into my server (192.168.1.195) from another machine (192.168.1.196), I can't connect. Pings from the server can't seem to reach other devices on my LAN, but pings from the server to 8.8.8.8 seem to work OK. My /etc/network/interfaces file looks like the below (the MAC is my server's NIC):



iface enp3s0 inet manual

auto br0
iface br0 inet static
# Use the MAC address identified above.
hwaddress ether 40:16:7e:63:75:16
address 192.168.1.210
netmask 255.255.255.0
gateway 192.168.1.1

bridge_ports enp3s0
# If you want to turn on Spanning Tree Protocol, ask your hosting
# provider first as it may conflict with their network.
bridge_stp on
# If STP is off, set to 0. If STP is on, set to 2 (or greater).
bridge_fd 0


I've spent the last two days googling, and re-imaged my server a couple of times as well when things got too broken, and I think I'm just losing the plot... My server is Ubuntu 18.04.2, completely stock other than the libvirt and ssh packages installed. How can I get the server to be reachable by my other network machines?










share|improve this question














I want to set up a bridge so that guest VMs on my headless server use the LAN DHCP and not dnsmasq. I followed these instructions: https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html#bridge-debian. Looking at the ifconfig results, it seems to give me exactly what I was looking for:



br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.210 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::4216:7eff:fe63:7516 prefixlen 64 scopeid 0x20<link>
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 8255 bytes 653898 (653.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 633 bytes 60185 (60.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.195 netmask 255.255.255.0 broadcast 192.168.1.255
ether 40:16:7e:63:75:16 txqueuelen 1000 (Ethernet)
RX packets 42190 bytes 48646124 (48.6 MB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 9808 bytes 889965 (889.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2215 bytes 510180 (510.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2215 bytes 510180 (510.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:7a:ca:5e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


However, if I try to SSH into my server (192.168.1.195) from another machine (192.168.1.196), I can't connect. Pings from the server can't seem to reach other devices on my LAN, but pings from the server to 8.8.8.8 seem to work OK. My /etc/network/interfaces file looks like the below (the MAC is my server's NIC):



iface enp3s0 inet manual

auto br0
iface br0 inet static
# Use the MAC address identified above.
hwaddress ether 40:16:7e:63:75:16
address 192.168.1.210
netmask 255.255.255.0
gateway 192.168.1.1

bridge_ports enp3s0
# If you want to turn on Spanning Tree Protocol, ask your hosting
# provider first as it may conflict with their network.
bridge_stp on
# If STP is off, set to 0. If STP is on, set to 2 (or greater).
bridge_fd 0


I've spent the last two days googling, and re-imaged my server a couple of times as well when things got too broken, and I think I'm just losing the plot... My server is Ubuntu 18.04.2, completely stock other than the libvirt and ssh packages installed. How can I get the server to be reachable by my other network machines?







virtualization network-bridge






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 15 at 1:19









Adam MacAdam Mac

214 bronze badges




214 bronze badges












  • What happens if you try to ssh to the bridge address? 192.168.1.210 in your case. Once the enp3s0 port is bound to the bridge it shouldn't have/need its own address unless you're doing something like configuring sub-interfaces.

    – RobertRSeattle
    Apr 15 at 2:12











  • did you modify your vm definitions to use the bridge? See step 2, here.

    – Doug Smythies
    Apr 15 at 16:20











  • Thanks for the quick replies, guys! Yes, I can access 192.168.1.210 from my Windows machine using Putty. Sorry - I should have checked before posting. HOWEVER, I've lost access to filesharing (mapped network drive no longer works), and apps running on the server have problems getting to the internet. About ready to throw this thing out the window :)

    – Adam Mac
    Apr 16 at 0:21











  • I'm still trying to get to a point where my server sits on 192.168.1.195 and my VM guest is on the same subnet, say 192.168.1.210. And where both the server and the VM are visible to my Windows machine 192.168.1.196. Have run out of hair to pull out.

    – Adam Mac
    Apr 16 at 0:36

















  • What happens if you try to ssh to the bridge address? 192.168.1.210 in your case. Once the enp3s0 port is bound to the bridge it shouldn't have/need its own address unless you're doing something like configuring sub-interfaces.

    – RobertRSeattle
    Apr 15 at 2:12











  • did you modify your vm definitions to use the bridge? See step 2, here.

    – Doug Smythies
    Apr 15 at 16:20











  • Thanks for the quick replies, guys! Yes, I can access 192.168.1.210 from my Windows machine using Putty. Sorry - I should have checked before posting. HOWEVER, I've lost access to filesharing (mapped network drive no longer works), and apps running on the server have problems getting to the internet. About ready to throw this thing out the window :)

    – Adam Mac
    Apr 16 at 0:21











  • I'm still trying to get to a point where my server sits on 192.168.1.195 and my VM guest is on the same subnet, say 192.168.1.210. And where both the server and the VM are visible to my Windows machine 192.168.1.196. Have run out of hair to pull out.

    – Adam Mac
    Apr 16 at 0:36
















What happens if you try to ssh to the bridge address? 192.168.1.210 in your case. Once the enp3s0 port is bound to the bridge it shouldn't have/need its own address unless you're doing something like configuring sub-interfaces.

– RobertRSeattle
Apr 15 at 2:12





What happens if you try to ssh to the bridge address? 192.168.1.210 in your case. Once the enp3s0 port is bound to the bridge it shouldn't have/need its own address unless you're doing something like configuring sub-interfaces.

– RobertRSeattle
Apr 15 at 2:12













did you modify your vm definitions to use the bridge? See step 2, here.

– Doug Smythies
Apr 15 at 16:20





did you modify your vm definitions to use the bridge? See step 2, here.

– Doug Smythies
Apr 15 at 16:20













Thanks for the quick replies, guys! Yes, I can access 192.168.1.210 from my Windows machine using Putty. Sorry - I should have checked before posting. HOWEVER, I've lost access to filesharing (mapped network drive no longer works), and apps running on the server have problems getting to the internet. About ready to throw this thing out the window :)

– Adam Mac
Apr 16 at 0:21





Thanks for the quick replies, guys! Yes, I can access 192.168.1.210 from my Windows machine using Putty. Sorry - I should have checked before posting. HOWEVER, I've lost access to filesharing (mapped network drive no longer works), and apps running on the server have problems getting to the internet. About ready to throw this thing out the window :)

– Adam Mac
Apr 16 at 0:21













I'm still trying to get to a point where my server sits on 192.168.1.195 and my VM guest is on the same subnet, say 192.168.1.210. And where both the server and the VM are visible to my Windows machine 192.168.1.196. Have run out of hair to pull out.

– Adam Mac
Apr 16 at 0:36





I'm still trying to get to a point where my server sits on 192.168.1.195 and my VM guest is on the same subnet, say 192.168.1.210. And where both the server and the VM are visible to my Windows machine 192.168.1.196. Have run out of hair to pull out.

– Adam Mac
Apr 16 at 0:36










1 Answer
1






active

oldest

votes


















1














Sometimes it pays to just leave things alone for a day or two and not look at them. Then come back to it fresh. In the end, setting up a bridge seemed to be fairly straightforward, with the following two steps:



  1. Update /etc/sysctl.conf

Uncomment the line that says ".net.ipv4.ip_forward=1"



  1. Update /etc/network/interfaces

For me, this was the entirety of the file. If you have more interfaces, you may want to adjust accordingly. enp3s0 was the ID of my physical interface.



# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
iface enp3s0 inet manual

auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
bridge_ports enp3s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0


I used an IP address reservation in my router to make sure my VM always got the same IP address. Using DHCP made configuration overall a bit easier for me.



Thanks again to RobertRSeattle and Doug Smythies for putting up with me.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1133933%2flibvirt-network-bridging-issues%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Sometimes it pays to just leave things alone for a day or two and not look at them. Then come back to it fresh. In the end, setting up a bridge seemed to be fairly straightforward, with the following two steps:



    1. Update /etc/sysctl.conf

    Uncomment the line that says ".net.ipv4.ip_forward=1"



    1. Update /etc/network/interfaces

    For me, this was the entirety of the file. If you have more interfaces, you may want to adjust accordingly. enp3s0 was the ID of my physical interface.



    # ifupdown has been replaced by netplan(5) on this system. See
    # /etc/netplan for current configuration.
    # To re-enable ifupdown on this system, you can run:
    # sudo apt install ifupdown
    iface enp3s0 inet manual

    auto lo
    iface lo inet loopback

    auto br0
    iface br0 inet dhcp
    bridge_ports enp3s0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0


    I used an IP address reservation in my router to make sure my VM always got the same IP address. Using DHCP made configuration overall a bit easier for me.



    Thanks again to RobertRSeattle and Doug Smythies for putting up with me.






    share|improve this answer



























      1














      Sometimes it pays to just leave things alone for a day or two and not look at them. Then come back to it fresh. In the end, setting up a bridge seemed to be fairly straightforward, with the following two steps:



      1. Update /etc/sysctl.conf

      Uncomment the line that says ".net.ipv4.ip_forward=1"



      1. Update /etc/network/interfaces

      For me, this was the entirety of the file. If you have more interfaces, you may want to adjust accordingly. enp3s0 was the ID of my physical interface.



      # ifupdown has been replaced by netplan(5) on this system. See
      # /etc/netplan for current configuration.
      # To re-enable ifupdown on this system, you can run:
      # sudo apt install ifupdown
      iface enp3s0 inet manual

      auto lo
      iface lo inet loopback

      auto br0
      iface br0 inet dhcp
      bridge_ports enp3s0
      bridge_stp off
      bridge_fd 0
      bridge_maxwait 0


      I used an IP address reservation in my router to make sure my VM always got the same IP address. Using DHCP made configuration overall a bit easier for me.



      Thanks again to RobertRSeattle and Doug Smythies for putting up with me.






      share|improve this answer

























        1












        1








        1







        Sometimes it pays to just leave things alone for a day or two and not look at them. Then come back to it fresh. In the end, setting up a bridge seemed to be fairly straightforward, with the following two steps:



        1. Update /etc/sysctl.conf

        Uncomment the line that says ".net.ipv4.ip_forward=1"



        1. Update /etc/network/interfaces

        For me, this was the entirety of the file. If you have more interfaces, you may want to adjust accordingly. enp3s0 was the ID of my physical interface.



        # ifupdown has been replaced by netplan(5) on this system. See
        # /etc/netplan for current configuration.
        # To re-enable ifupdown on this system, you can run:
        # sudo apt install ifupdown
        iface enp3s0 inet manual

        auto lo
        iface lo inet loopback

        auto br0
        iface br0 inet dhcp
        bridge_ports enp3s0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0


        I used an IP address reservation in my router to make sure my VM always got the same IP address. Using DHCP made configuration overall a bit easier for me.



        Thanks again to RobertRSeattle and Doug Smythies for putting up with me.






        share|improve this answer













        Sometimes it pays to just leave things alone for a day or two and not look at them. Then come back to it fresh. In the end, setting up a bridge seemed to be fairly straightforward, with the following two steps:



        1. Update /etc/sysctl.conf

        Uncomment the line that says ".net.ipv4.ip_forward=1"



        1. Update /etc/network/interfaces

        For me, this was the entirety of the file. If you have more interfaces, you may want to adjust accordingly. enp3s0 was the ID of my physical interface.



        # ifupdown has been replaced by netplan(5) on this system. See
        # /etc/netplan for current configuration.
        # To re-enable ifupdown on this system, you can run:
        # sudo apt install ifupdown
        iface enp3s0 inet manual

        auto lo
        iface lo inet loopback

        auto br0
        iface br0 inet dhcp
        bridge_ports enp3s0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0


        I used an IP address reservation in my router to make sure my VM always got the same IP address. Using DHCP made configuration overall a bit easier for me.



        Thanks again to RobertRSeattle and Doug Smythies for putting up with me.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 16 at 16:47









        Adam MacAdam Mac

        214 bronze badges




        214 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1133933%2flibvirt-network-bridging-issues%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?