LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2019, 08:26 AM   #1
georgomatics
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
KVM Guest Networking


Hi
I'm running CentOS 7 with KVM with a static IP. On the CentOS machine I am running 2 guests with Ubuntu 14.04, with public static IPs. I can't upgrade Ubuntu for software reasons.
I set up 2 bridges and 2 routes on the CentOS to enable the 2 guests to connect to the internet and all works well.
However, I want the 2 guests to be able to talk to each other via their respective IP addresses and I can't get that to work. Please help!
I tried to connect both guests to the same bridge and that works for communicating between the guests, but then one of the guests loses Internet connectivity.
Thank you
Georg
 
Old 08-18-2019, 09:02 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Do you use libvirt or raw kvm? In the former case, create a network e.g. virsh net-create, then connect the guests to it. In the latter case, provide details about the guests' network connections and the routes you created.

If a guest loses internet connection when both guests are connected to the same bridge, something is wrong.
 
Old 08-18-2019, 10:33 AM   #3
georgomatics
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I used raw kvm on the centOS and virt-manager for the guests.
The CentOS (xx.xx.xx.69) has the following configurations:

# /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
TYPE="Bridge"
BOOTPROTO=static
IPADDR=xx.xx.xx.69
NETMASK=255.255.255.255
STP=off
DELAY=0
ZONE=public

# /etc/sysconfig/network-scripts/route-br0
ADDRESS0=xx.xx.xx.117
NETMASK0=255.255.255.255
#GATEWAY0=xx.xx.xx.69

# /etc/sysconfig/network-scripts/ifcfg-br1
DEVICE=br1
ONBOOT=yes
TYPE="Bridge"
BOOTPROTO=static
IPADDR=xx.xx.xx.69
NETMASK=255.255.255.255
STP=off
DELAY=0
ZONE=public

# /etc/sysconfig/network-scripts/route-br1
ADDRESS0=xx.xx.xx.111
NETMASK0=255.255.255.255
#GATEWAY0=xx.xx.xx.69

On the guests I use the virt-manager configuration:

xx.xx.xx.117 uses Bridge br0: Host device vnet0
xx.xx.xx.111 uses Bridge br1: Empty bridge

This is the other part I am puzzled with: Why is the br1 empty? It is set up exactly like br0.

Thank you very much for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
KVM with Ubuntu guest - guest crashes when some apps are 'full screened' TonyRogers Linux - Virtualization and Cloud 0 05-15-2011 12:18 PM
KVM Guest installed from console. How to get the guest's console? Toomas Linux - Virtualization and Cloud 3 05-04-2011 11:42 AM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration