Date: Monday, October 03, 2016 22:00:07 -0400 From: TE Dukes tdukes@palmettoshopper.com
From: Gordon Messmer Sent: Monday, October 3, 2016 4:25 PM
On 10/03/2016 04:54 AM, TE Dukes wrote:
I can get the guest to access the internet but have tried every was possible to be able to access the guest from the LAN or even the host. Nothing I have tried works.
The only thing all documentation leaves out is how to set up the guest networking during the install.
"All documentation" doesn't leave out this information. The links I sent earlier clearly and specifically document the process for setting up a network bridge, which you need to do if you want to access your VM from the LAN.
If you need help, you need to provide more information than "I can't get this to work" and "I've tried everything." Those don't tell us anything about the state of your system. Useful information would include: your configuration files (/etc/sysconfig/network-scripts/ifcfg-*), the output of "ip link show" and "ip addr show", the output of "brctl show", and maybe the output of "virsh iface-list".
I posted some files previously but that was like 20 or so installs ago. I don't know the files you need.
For this installation:
/etc/sysconfig/ifcfg-eth0
NAME="eth0" BOOTPROTO=none GATEWAY=192.168.1.1 NM_CONTROLLED=no HWADDR=44:37:E6:53:1E:E2 MACADDR="" IPV6INIT=no DEVICE=eth0 NETMASK=255.255.255.0 MTU="" BROADCAST=192.168.1.255 IPADDR=192.168.1.110 NETWORK=192.168.1.0 ONBOOT=yes TYPE=Ethernet
/etc/sysconfig/ifcfg-eth1
GATEWAY=192.168.1.1 NAME="" BOOTPROTO=none NM_CONTROLLED=no MACADDR="" IPV6INIT=no DEVICE=eth1 NETMASK=255.255.255.0 MTU="" BROADCAST=255.255.255.255 IPADDR=192.168.0.111 NETWORK=192.168.0.0 ONBOOT=yes
/etc/sysconfig/ifcfg-lo
GATEWAY=192.168.1.1 NAME=loopback BOOTPROTO=none MACADDR="" IPV6INIT=no DEVICE=lo NETMASK=255.0.0.0 MTU="" BROADCAST=127.255.255.255 IPADDR=127.0.0.1 NETWORK=127.0.0.0 ONBOOT=yes
Some of the things in your ifcfg files look odd to me. Rather than enumerating them, here are my files from a centos-6 host system.
This is a 2-NIC machine where the "host" uses eth1 and the guest(s) use eth0.
One specific point -- lo is the localhost, so I don't think it should have a gateway entry, as you are showing.
ifcfg-br0 :::::::::::::: DEVICE="br0" BOOTPROTO="static" BROADCAST="192.168.1.255" DNS1="192.168.1.36" GATEWAY="192.168.1.1" NETMASK="255.255.255.0" IPV6INIT="no" IPV6_AUTOCONF="no" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Bridge" DELAY="0" :::::::::::::: ifcfg-eth0 :::::::::::::: DEVICE="eth0" BOOTPROTO="static" BROADCAST="192.168.1.255" DNS1="192.168.1.36" GATEWAY="192.168.1.1" HWADDR="78:2B:CB:38:73:BD" NETMASK="255.255.255.0" NM_CONTROLLED="no" BRIDGE="br0" ONBOOT="yes" :::::::::::::: ifcfg-eth1 :::::::::::::: DEVICE="eth1" BOOTPROTO="static" BROADCAST="192.168.1.255" DNS1="192.168.1.36" GATEWAY="192.168.1.1" HWADDR="78:2B:CB:38:73:BE" IPADDR="192.168.1.52" NETMASK="255.255.255.0" NM_CONTROLLED="yes" ONBOOT="yes" :::::::::::::: ifcfg-lo :::::::::::::: DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 ONBOOT=yes NAME=loopback
----