Configure bridged networking for KVM on Ubuntu 14.10

ADVERTISEMENT

Ubuntu Logo

Bridged networking is dedicated network card  to a virtual machine which provides communication path to outside network, this must be setup before creating virtual machine using Virtual Manager.

ADVERTISEMENT
Article will continue after the ad

This guide will help you to configure bridged networking on Ubuntu 14.10, you can either use command line or graphical mode.

Command line:

Edit interface file to create bridge “br1”, this should be executed on KVM host. My machine has two network cards eth0 and eth1, so i have created a bridge using both network  card.

sudo nano /etc/network/interfaces
 
##Bridge  Name ###
auto br1
### Bridge Information
iface br1 inet static
bridge_ports eth1 eth0
bridge_stp on
bridge_fd 0.0
### Bride IP ###
address 192.168.12.7
netmask 255.255.255.0
network 192.168.12.0
broadcast 192.168.12.255
gateway 192.168.12.1
dns-nameservers 8.8.8.8

Bring up the bidge.

sudo ifup br1

Graphical Mode:

Make sure you have graphical mode installed, click on dash and search for Virtual Machine Manager.

Ubuntu 14.10 - Bridged Networking Virt Manager
Ubuntu 14.10 – Bridged Networking Virt Manager

or

virt-manager

Edit –> Connection details –> Click on Plus sign.

Ubuntu 14.10 - Bridged Networking Connection Details
Ubuntu 14.10 – Bridged Networking Connection Details

Choose bridge as an interface type and then click on forward.

Ubuntu 14.10 Bridged Networking Interface type
Ubuntu 14.10 Bridged Networking Interface type

Set a Name, start mode as a on boot and choose to activate now.

Ubuntu 14.10 - Bridged Networking Configure Interface
Ubuntu 14.10 – Bridged Networking Configure Interface

You can configure ip address by clicking on Configure right to IP settings.  Once IP is configured, click on OK.

Ubuntu 14.10 - Bridged Networking Configure IP for bridge
Ubuntu 14.10 – Bridged Networking Configure IP for bridge

Clik on finish, Virtual Machine Manager will create a bridge called “br1”.

Ubuntu 14.10 - Bridged Networking
Ubuntu 14.10 – Bridged Networking

Verify ip address by using following command.

Ubuntu 14.10 - Bridged Networking  Verifying details
Ubuntu 14.10 – Bridged Networking Verifying details

Thats All.

ADVERTISEMENT

POSTS YOU MAY LIKE -:)

Share This Post

Shares