[CentOS] Virtualization Networking

Tue Oct 4 10:24:43 UTC 2016
Leon Fauster <leonfauster at googlemail.com>

Am 04.10.2016 um 08:46 schrieb Gordon Messmer <gordon.messmer at gmail.com>:
> On 10/03/2016 07:00 PM, TE Dukes wrote:
>> /etc/sysconfig/ifcfg-eth1
>> GATEWAY=192.168.1.1
> ...
>> /etc/sysconfig/ifcfg-lo
>> GATEWAY=192.168.1.1
> 
> Don't specify GATEWAY in interface files where it isn't used.  This should be set on eth0 only.
> 
>> # brctl show
>> 
>> bridge name	bridge id		STP enabled	interfaces
> 
> OK, so you don't have a bridge interface.  If you want to access guest VMs from the LAN, you need to set one up.  Refer to the documentation I sent earlier.  You'll create a bridge interface configuration, and the move the IP configuration from whichever ethX device you want to enslave to the bridge.  The ethX configuration file, then, won't have any IP configuration specified, instead it'll contain "BRIDGE=br0".



This can be accomplished by just this (generates ifcfg files etc):

# virsh iface-bridge eth0 br0

If eth0 is the LAN interface otherwise change this. The VM 
configuration must then use br0/bridge as interface/type.



--
LF