How to remove a vnet0 interface?












2















In troubleshooting a no connectivity issue on a newly rolled out kvm host machine, I'm noticing a second bridge interface that isn't needed and may have been created previously: vnet0



[user@box]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.14187769b69a no em1
vnet0
virbr0 8000.5254003ada63 yes virbr0-nic

[user@box]# ip route
default via 111.111.111.2 dev br0
169.254.0.0/16 dev br0 scope link metric 1006
111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.44
192.168.122.0/24 dev virbr0 proto kernel scope link src src 192.168.122.1


Here is the ifcfg-br0 and em1 files respectively:



[user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 
TYPE=Bridge
BOOTPROTO=static
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=br0
PREFIX=23
DEVICE=br0
ONBOOT=yes
IPADDR=111.111.111.44
GATEWAY=111.111.111.2
DNS1=4.4.4.4

[user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
TYPE=Ethernet
NM_CONTROLLED=no
NAME=em1
DEVICE=em1
ONBOOT=yes
BRIDGE=br0


A sister EL7 system with fully functioning network bridge looks like this:



[user@box]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.141877699b no em1
virbr0 8000.5254004bc0f4 yes virbr0-nic

[user@box]# ip route
default via 111.111.111.2 dev br0
111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.222
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

[user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
TYPE=Bridge
BOOTPROTO=static
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=br0
PREFIX=23
DEVICE=br0
ONBOOT=yes
IPADDR=111.111.111.222
GATEWAY=111.111.111.2
DNS1=4.4.4.4

[user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
TYPE=Ethernet
NM_CONTROLLED=no
NAME=em1
DEVICE=em1
ONBOOT=yes
BRIDGE=br0


I tried using virsh net-destroy vnet0, but am seeing failed to get network vnet0



How do I remove the rougue vnet0 interface from the first example?










share|improve this question
















bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    2















    In troubleshooting a no connectivity issue on a newly rolled out kvm host machine, I'm noticing a second bridge interface that isn't needed and may have been created previously: vnet0



    [user@box]# brctl show
    bridge name bridge id STP enabled interfaces
    br0 8000.14187769b69a no em1
    vnet0
    virbr0 8000.5254003ada63 yes virbr0-nic

    [user@box]# ip route
    default via 111.111.111.2 dev br0
    169.254.0.0/16 dev br0 scope link metric 1006
    111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.44
    192.168.122.0/24 dev virbr0 proto kernel scope link src src 192.168.122.1


    Here is the ifcfg-br0 and em1 files respectively:



    [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 
    TYPE=Bridge
    BOOTPROTO=static
    IPV4_FAILURE_FATAL=no
    IPV6INIT=no
    NAME=br0
    PREFIX=23
    DEVICE=br0
    ONBOOT=yes
    IPADDR=111.111.111.44
    GATEWAY=111.111.111.2
    DNS1=4.4.4.4

    [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
    TYPE=Ethernet
    NM_CONTROLLED=no
    NAME=em1
    DEVICE=em1
    ONBOOT=yes
    BRIDGE=br0


    A sister EL7 system with fully functioning network bridge looks like this:



    [user@box]# brctl show
    bridge name bridge id STP enabled interfaces
    br0 8000.141877699b no em1
    virbr0 8000.5254004bc0f4 yes virbr0-nic

    [user@box]# ip route
    default via 111.111.111.2 dev br0
    111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.222
    192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

    [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
    TYPE=Bridge
    BOOTPROTO=static
    IPV4_FAILURE_FATAL=no
    IPV6INIT=no
    NAME=br0
    PREFIX=23
    DEVICE=br0
    ONBOOT=yes
    IPADDR=111.111.111.222
    GATEWAY=111.111.111.2
    DNS1=4.4.4.4

    [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
    TYPE=Ethernet
    NM_CONTROLLED=no
    NAME=em1
    DEVICE=em1
    ONBOOT=yes
    BRIDGE=br0


    I tried using virsh net-destroy vnet0, but am seeing failed to get network vnet0



    How do I remove the rougue vnet0 interface from the first example?










    share|improve this question
















    bumped to the homepage by Community 11 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      2












      2








      2








      In troubleshooting a no connectivity issue on a newly rolled out kvm host machine, I'm noticing a second bridge interface that isn't needed and may have been created previously: vnet0



      [user@box]# brctl show
      bridge name bridge id STP enabled interfaces
      br0 8000.14187769b69a no em1
      vnet0
      virbr0 8000.5254003ada63 yes virbr0-nic

      [user@box]# ip route
      default via 111.111.111.2 dev br0
      169.254.0.0/16 dev br0 scope link metric 1006
      111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.44
      192.168.122.0/24 dev virbr0 proto kernel scope link src src 192.168.122.1


      Here is the ifcfg-br0 and em1 files respectively:



      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 
      TYPE=Bridge
      BOOTPROTO=static
      IPV4_FAILURE_FATAL=no
      IPV6INIT=no
      NAME=br0
      PREFIX=23
      DEVICE=br0
      ONBOOT=yes
      IPADDR=111.111.111.44
      GATEWAY=111.111.111.2
      DNS1=4.4.4.4

      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
      TYPE=Ethernet
      NM_CONTROLLED=no
      NAME=em1
      DEVICE=em1
      ONBOOT=yes
      BRIDGE=br0


      A sister EL7 system with fully functioning network bridge looks like this:



      [user@box]# brctl show
      bridge name bridge id STP enabled interfaces
      br0 8000.141877699b no em1
      virbr0 8000.5254004bc0f4 yes virbr0-nic

      [user@box]# ip route
      default via 111.111.111.2 dev br0
      111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.222
      192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
      TYPE=Bridge
      BOOTPROTO=static
      IPV4_FAILURE_FATAL=no
      IPV6INIT=no
      NAME=br0
      PREFIX=23
      DEVICE=br0
      ONBOOT=yes
      IPADDR=111.111.111.222
      GATEWAY=111.111.111.2
      DNS1=4.4.4.4

      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
      TYPE=Ethernet
      NM_CONTROLLED=no
      NAME=em1
      DEVICE=em1
      ONBOOT=yes
      BRIDGE=br0


      I tried using virsh net-destroy vnet0, but am seeing failed to get network vnet0



      How do I remove the rougue vnet0 interface from the first example?










      share|improve this question
















      In troubleshooting a no connectivity issue on a newly rolled out kvm host machine, I'm noticing a second bridge interface that isn't needed and may have been created previously: vnet0



      [user@box]# brctl show
      bridge name bridge id STP enabled interfaces
      br0 8000.14187769b69a no em1
      vnet0
      virbr0 8000.5254003ada63 yes virbr0-nic

      [user@box]# ip route
      default via 111.111.111.2 dev br0
      169.254.0.0/16 dev br0 scope link metric 1006
      111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.44
      192.168.122.0/24 dev virbr0 proto kernel scope link src src 192.168.122.1


      Here is the ifcfg-br0 and em1 files respectively:



      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 
      TYPE=Bridge
      BOOTPROTO=static
      IPV4_FAILURE_FATAL=no
      IPV6INIT=no
      NAME=br0
      PREFIX=23
      DEVICE=br0
      ONBOOT=yes
      IPADDR=111.111.111.44
      GATEWAY=111.111.111.2
      DNS1=4.4.4.4

      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
      TYPE=Ethernet
      NM_CONTROLLED=no
      NAME=em1
      DEVICE=em1
      ONBOOT=yes
      BRIDGE=br0


      A sister EL7 system with fully functioning network bridge looks like this:



      [user@box]# brctl show
      bridge name bridge id STP enabled interfaces
      br0 8000.141877699b no em1
      virbr0 8000.5254004bc0f4 yes virbr0-nic

      [user@box]# ip route
      default via 111.111.111.2 dev br0
      111.111.111.0/23 dev br0 proto kernel scope link src 111.111.111.222
      192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
      TYPE=Bridge
      BOOTPROTO=static
      IPV4_FAILURE_FATAL=no
      IPV6INIT=no
      NAME=br0
      PREFIX=23
      DEVICE=br0
      ONBOOT=yes
      IPADDR=111.111.111.222
      GATEWAY=111.111.111.2
      DNS1=4.4.4.4

      [user@box ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
      TYPE=Ethernet
      NM_CONTROLLED=no
      NAME=em1
      DEVICE=em1
      ONBOOT=yes
      BRIDGE=br0


      I tried using virsh net-destroy vnet0, but am seeing failed to get network vnet0



      How do I remove the rougue vnet0 interface from the first example?







      centos networking network-interface bridge






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 3 '17 at 21:35







      a coder

















      asked May 3 '17 at 21:20









      a codera coder

      1,04472848




      1,04472848





      bumped to the homepage by Community 11 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 11 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          To disable virbr0, try:




          virsh net-destroy default



          virsh net-undefine default



          service libvirtd restart



          ifconfig







          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',
            autoActivateHeartbeat: false,
            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%2f362915%2fhow-to-remove-a-vnet0-interface%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









            0














            To disable virbr0, try:




            virsh net-destroy default



            virsh net-undefine default



            service libvirtd restart



            ifconfig







            share|improve this answer




























              0














              To disable virbr0, try:




              virsh net-destroy default



              virsh net-undefine default



              service libvirtd restart



              ifconfig







              share|improve this answer


























                0












                0








                0







                To disable virbr0, try:




                virsh net-destroy default



                virsh net-undefine default



                service libvirtd restart



                ifconfig







                share|improve this answer













                To disable virbr0, try:




                virsh net-destroy default



                virsh net-undefine default



                service libvirtd restart



                ifconfig








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 3 '18 at 21:27









                Yolateng0Yolateng0

                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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f362915%2fhow-to-remove-a-vnet0-interface%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

                    Loup dans la culture

                    How to solve the problem of ntp “Unable to contact time server” from KDE?

                    ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux