How to change the ip address and DHCP range assigned for "virbr0" interface inside KVM in RHEL6?

Solution Verified - Updated -

Issue

  • Using KVM / virsh when running under RHEL a virbr0 is used for NAT traffic between the guest and the running OS on the RHEL server.

  • Is there a way to configure virbr0 to be on a particular network, rather than the default of the 192.168.122/24 network.

[root@localhost ~]# cat /etc/redhat-release; ifconfig virbr0
Red Hat Enterprise Linux Server release 6.5 (Santiago)
virbr0    Link encap:Ethernet  HWaddr 52:54:00:CA:D7:3E  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Environment

  • Red Hat Enterprise Linux (RHEL) 6.

  • KVM virtualization.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.