LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-29-2016, 06:12 PM   #1
GarKing
LQ Newbie
 
Registered: Jun 2008
Distribution: SUSE, Centos, Manjaro, Elementary
Posts: 2

Rep: Reputation: 0
KVM host unable to access internet - VMs have access


Hi all.

I use a CentOS 7 KVM host on my home network.
It has two VMs which provide proxy/gateway/AV/webfilter/file/print etc. internally.
The host has two NICs - one connected to the WAN and one to the LAN. Both are setup to bridge for the KVM setup.
Both VMs are accessible internally and externally without issue and can also connect to the internet.

The issue I'm having is that I'm unable to access the internet to apply updates to the KVM host - assume it's route related but trial and error hasn't fixed for me.

Config is as below... any suggestions welcomed.

Gar

[root@gw-host ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 425 0 0 br1
192.168.1.0 0.0.0.0 255.255.255.0 U 425 0 0 br0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

[root@gw-host ~]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.b8ac6f206428 no enp0s25
vnet0
vnet2
br1 8000.001018c519dc no enp1s0f0
vnet1
vnet3
virbr0 8000.525400278b60 yes virbr0-nic

[root@gw-host ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s25
DEVICE=enp0s25
TYPE=Ethernet
BOOTPROTO=none
HWADDR=B8:AC:6F:20:64:28
NAME=enp0s25
ONBOOT=yes
BRIDGE=br0

[root@gw-host ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp1s0f0
TYPE=Ethernet
HWADDR=00:10:18:C5:19C
BOOTPROTO=NONE
NAME=enp1s0f0
DEVICE=enp1s0f0
ONBOOT=yes
BRIDGE=br1

[root@gw-host ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
IPADDR=192.168.1.101
NETMASK=255.255.255.0
ONBOOT=yes
DELAY=0

[root@gw-host ~]# cat /etc/sysconfig/network-scripts/ifcfg-br1
DEVICE=br1
TYPE=Bridge
IPADDR=10.0.0.2
NETMASK=255.255.255.0
ONBOOT=yes
DELAY=0
 
Old 04-29-2016, 10:44 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
I would start with setting a GATEWAY= line in both bridge ifcfg scripts.
 
  


Reply

Tags
kvm, network bridge



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Debian KVM host has no internet access Tadaen Linux - Networking 1 06-14-2014 10:15 PM
KVM guest unable to ping and access internet from the Physical host machine manuce Linux - Newbie 1 05-28-2013 02:48 AM
Physical host of KVM VMs with bonded interface - bridging necessary? slimjim Linux - Virtualization and Cloud 1 06-13-2012 03:08 PM
KVM guest cannot access host thehemi Linux - Virtualization and Cloud 8 03-28-2012 04:36 AM
Any way to access old VMs after reinstalling KVM? shadowbox12 Linux - Virtualization and Cloud 3 03-19-2010 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:57 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