Making a network bridge in Debian

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I am having real trouble creating a network bridge on my Debian system so I can run Qemu VM's under virsh.



I have the NIC connected via ethernet, and the IP reserved via the MAC address on the router to 192.168.1.2.



I am trying to create a bridge so the VM's can use that under DHCP (which I will then reserve on the router), unless making the IPs static is better?



My default network/interfaces file includes;



auto lo
iface lo inet loopback


To create my bridge, I tried to enter the following from the official Debian website:



# The loopback network interface
auto lo br0
iface lo inet loopback

# Set up interfaces manually, avoiding conflicts with, e.g., network manager
iface eth0 inet manual

# Bridge setup
iface br0 inet dhcp
bridge_ports eth0


Unfortunately this kills the network.



I have done a ton load of Googling on this one, spent hours trying to get it to work. Even passthru kills the host network but lets the guest connect.



Any help would be great before I give up with Qemu and use Virtualbox










share|improve this question

























    up vote
    1
    down vote

    favorite
    1












    I am having real trouble creating a network bridge on my Debian system so I can run Qemu VM's under virsh.



    I have the NIC connected via ethernet, and the IP reserved via the MAC address on the router to 192.168.1.2.



    I am trying to create a bridge so the VM's can use that under DHCP (which I will then reserve on the router), unless making the IPs static is better?



    My default network/interfaces file includes;



    auto lo
    iface lo inet loopback


    To create my bridge, I tried to enter the following from the official Debian website:



    # The loopback network interface
    auto lo br0
    iface lo inet loopback

    # Set up interfaces manually, avoiding conflicts with, e.g., network manager
    iface eth0 inet manual

    # Bridge setup
    iface br0 inet dhcp
    bridge_ports eth0


    Unfortunately this kills the network.



    I have done a ton load of Googling on this one, spent hours trying to get it to work. Even passthru kills the host network but lets the guest connect.



    Any help would be great before I give up with Qemu and use Virtualbox










    share|improve this question























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I am having real trouble creating a network bridge on my Debian system so I can run Qemu VM's under virsh.



      I have the NIC connected via ethernet, and the IP reserved via the MAC address on the router to 192.168.1.2.



      I am trying to create a bridge so the VM's can use that under DHCP (which I will then reserve on the router), unless making the IPs static is better?



      My default network/interfaces file includes;



      auto lo
      iface lo inet loopback


      To create my bridge, I tried to enter the following from the official Debian website:



      # The loopback network interface
      auto lo br0
      iface lo inet loopback

      # Set up interfaces manually, avoiding conflicts with, e.g., network manager
      iface eth0 inet manual

      # Bridge setup
      iface br0 inet dhcp
      bridge_ports eth0


      Unfortunately this kills the network.



      I have done a ton load of Googling on this one, spent hours trying to get it to work. Even passthru kills the host network but lets the guest connect.



      Any help would be great before I give up with Qemu and use Virtualbox










      share|improve this question













      I am having real trouble creating a network bridge on my Debian system so I can run Qemu VM's under virsh.



      I have the NIC connected via ethernet, and the IP reserved via the MAC address on the router to 192.168.1.2.



      I am trying to create a bridge so the VM's can use that under DHCP (which I will then reserve on the router), unless making the IPs static is better?



      My default network/interfaces file includes;



      auto lo
      iface lo inet loopback


      To create my bridge, I tried to enter the following from the official Debian website:



      # The loopback network interface
      auto lo br0
      iface lo inet loopback

      # Set up interfaces manually, avoiding conflicts with, e.g., network manager
      iface eth0 inet manual

      # Bridge setup
      iface br0 inet dhcp
      bridge_ports eth0


      Unfortunately this kills the network.



      I have done a ton load of Googling on this one, spent hours trying to get it to work. Even passthru kills the host network but lets the guest connect.



      Any help would be great before I give up with Qemu and use Virtualbox







      networking kvm qemu bridge






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 15 '16 at 8:29









      WPDEVE

      2114




      2114




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          You need to set an address for the bridge interface if you want the host itself to have a network connection too. I have something like this on one machine:



          auto br0
          iface br0 inet static
          bridge_ports eth0
          bridge_maxwait 4
          address 1.2.3.4
          netmask 255.255.255.0
          network 1.2.3.0
          broadcast 1.2.3.255
          gateway 1.2.3.1
          dns-nameservers 1.2.3.1
          dns-search some.domain


          See also: https://wiki.debian.org/NetworkConfiguration#Bridging






          share|improve this answer




















          • Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
            – WPDEVE
            Oct 17 '16 at 20:29

















          up vote
          0
          down vote













          Don't beat your head against the wall. Use virt-manager to setup your workstation and create your VMs. I've used KVM/QEMU for more than 10 years on 6 different distributions without ever having to manually configure anything.



          apt-get install virt-manager qemu-kvm





          share|improve this answer




















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f316569%2fmaking-a-network-bridge-in-debian%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            You need to set an address for the bridge interface if you want the host itself to have a network connection too. I have something like this on one machine:



            auto br0
            iface br0 inet static
            bridge_ports eth0
            bridge_maxwait 4
            address 1.2.3.4
            netmask 255.255.255.0
            network 1.2.3.0
            broadcast 1.2.3.255
            gateway 1.2.3.1
            dns-nameservers 1.2.3.1
            dns-search some.domain


            See also: https://wiki.debian.org/NetworkConfiguration#Bridging






            share|improve this answer




















            • Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
              – WPDEVE
              Oct 17 '16 at 20:29














            up vote
            2
            down vote













            You need to set an address for the bridge interface if you want the host itself to have a network connection too. I have something like this on one machine:



            auto br0
            iface br0 inet static
            bridge_ports eth0
            bridge_maxwait 4
            address 1.2.3.4
            netmask 255.255.255.0
            network 1.2.3.0
            broadcast 1.2.3.255
            gateway 1.2.3.1
            dns-nameservers 1.2.3.1
            dns-search some.domain


            See also: https://wiki.debian.org/NetworkConfiguration#Bridging






            share|improve this answer




















            • Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
              – WPDEVE
              Oct 17 '16 at 20:29












            up vote
            2
            down vote










            up vote
            2
            down vote









            You need to set an address for the bridge interface if you want the host itself to have a network connection too. I have something like this on one machine:



            auto br0
            iface br0 inet static
            bridge_ports eth0
            bridge_maxwait 4
            address 1.2.3.4
            netmask 255.255.255.0
            network 1.2.3.0
            broadcast 1.2.3.255
            gateway 1.2.3.1
            dns-nameservers 1.2.3.1
            dns-search some.domain


            See also: https://wiki.debian.org/NetworkConfiguration#Bridging






            share|improve this answer












            You need to set an address for the bridge interface if you want the host itself to have a network connection too. I have something like this on one machine:



            auto br0
            iface br0 inet static
            bridge_ports eth0
            bridge_maxwait 4
            address 1.2.3.4
            netmask 255.255.255.0
            network 1.2.3.0
            broadcast 1.2.3.255
            gateway 1.2.3.1
            dns-nameservers 1.2.3.1
            dns-search some.domain


            See also: https://wiki.debian.org/NetworkConfiguration#Bridging







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 15 '16 at 8:40









            ilkkachu

            54.2k782147




            54.2k782147











            • Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
              – WPDEVE
              Oct 17 '16 at 20:29
















            • Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
              – WPDEVE
              Oct 17 '16 at 20:29















            Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
            – WPDEVE
            Oct 17 '16 at 20:29




            Thanks, after a long time trying to suss it out. I was missing br0 form the loopback :(. Thanks for your help!
            – WPDEVE
            Oct 17 '16 at 20:29












            up vote
            0
            down vote













            Don't beat your head against the wall. Use virt-manager to setup your workstation and create your VMs. I've used KVM/QEMU for more than 10 years on 6 different distributions without ever having to manually configure anything.



            apt-get install virt-manager qemu-kvm





            share|improve this answer
























              up vote
              0
              down vote













              Don't beat your head against the wall. Use virt-manager to setup your workstation and create your VMs. I've used KVM/QEMU for more than 10 years on 6 different distributions without ever having to manually configure anything.



              apt-get install virt-manager qemu-kvm





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Don't beat your head against the wall. Use virt-manager to setup your workstation and create your VMs. I've used KVM/QEMU for more than 10 years on 6 different distributions without ever having to manually configure anything.



                apt-get install virt-manager qemu-kvm





                share|improve this answer












                Don't beat your head against the wall. Use virt-manager to setup your workstation and create your VMs. I've used KVM/QEMU for more than 10 years on 6 different distributions without ever having to manually configure anything.



                apt-get install virt-manager qemu-kvm






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 27 at 16:25









                Joseph Freivald

                11




                11



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2funix.stackexchange.com%2fquestions%2f316569%2fmaking-a-network-bridge-in-debian%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

                    Peggy Mitchell

                    The Forum (Inglewood, California)

                    Palaiologos