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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. Linux OS Service ‘network’
  2. CentOS / RHEL 7 : How to Create and Remove the LVM Mirrors Using lvconvert
  3. How to Change Time Interval to Fall Back to Secondary DNS Server in CentOS/RHEL
  4. CentOS / RHEL : Move a Physical Volume from an existing Volume Group to another Volume Group
  5. CentOS / RHEL 7 : How to rename the volume group for root and swap
  6. Nohup Command Examples – Runs a Command that Keeps Running after You Log Out
  7. How to disable or enable an HBA without reboot under CentOS/RHEL
  8. Understanding TCP Wrappers (/etc/hosts.allow & /etc/hosts.deny) in Linux
  9. Installing CentOS / RHEL 7 (step by step with screen shots)
  10. Audit Log And Messages File Not Rotating on CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the default character set in MySQL and how to propagate it in a master-master replication scenario
  • “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary