• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 6,7 : How to disable or delete virbr0 interface

by admin

If you check the ‘ifconfig -a’ after a fresh install of RHEL/CentOS 6,7 system, you would find the interfaces virbr0 name. Here is an example from freshly installed CentOS 7 system.

# ifconfig -a
....
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:d5:f2:0c  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

virbr0-nic: flags=4098[BROADCAST,MULTICAST]  mtu 1500
        ether 52:54:00:d5:f2:0c  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

What is virbr0 interface

The virbr0 bridge interface is created by libvirtd’s default network configuration. libvirtd is the service which provides a basis for the host to act as a hypervisor. So in case you are not using xen virtualization, you can either prevent libvirtd’s default network from being activated on boot, or you could prevent libvirtd itself from activating on boot. The former will prevent any VM guest attached to libvirtd’s default network from having network connectivity and the latter would prevent VMs from running at all. Which is fine if you are not using it.

Disable libvirtd default network

1. You can disable libvirtd’s default network temporarily using the virsh command. This will not persist across reboot.

# virsh net-destroy default

2. To permanently disable the libvirtd default network from being created at boot:

# virsh net-autostart default --disable

Remove libvirtd default network

To permanently remove the libvirtd default network:

# virsh net-undefine default

To permanently disable the libvirtd service from starting at boot on RHEL5 and RHEL6:

# chkconfig libvirtd off

To permanently disable the libvirtd service from starting at boot on RHEL7:

# systemctl disable libvirtd.service

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. understanding “yum history” command output
  2. rsync: command not found
  3. How to make alias command work in bash script or bashrc file
  4. CentOS / RHEL : How to find if a network port is open or not?
  5. Unable to Run X Applications Through SSH in Linux
  6. CentOS / RHEL 7 : How to enable or disable automatic updates (via packagekit)
  7. Linux OS Service ‘kudzu’
  8. Linux OS Service ‘acpid’
  9. dir: command not found
  10. How to use the ssh-keygen Command in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright