<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Your requirements are pretty simple. I assume you do not use DHCP
and all IP addresses are static. This should work:<br>
<br>
You need to create a bridge interface `br0` on your host:<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: 'Courier New',
Courier, mono; font-size: 11.818181991577148px; font-style:
italic; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 13.196022033691406px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(249, 249,
249); display: inline !important; float: none;">yum install
bridge-utils</span><br>
<br>
<span style="color: rgb(0, 0, 0); font-family: 'Courier New',
Courier, mono; font-size: 11.818181991577148px; font-style:
italic; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 13.196022033691406px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(249, 249,
249); display: inline !important; float: none;">vi
/etc/sysconfig/network-scripts/ifcfg-br0<br>
<br>
</span><br>
<pre style="padding: 6px; margin: 0px; background-color: rgb(239, 239, 239); border: 1px inset; width: 500px; height: 250px; overflow: auto; font-size: 16.363636016845703px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.27272605895996px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">DEVICE="br0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.0.90
PREFIX=24
GATEWAY=192.168.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System br0"</pre>
<br>
Modify the gateway if your Internet gateway is NOT at 192.168.0.1<br>
<br>
Modify /etc/sysconfig/network-scripts/ifcfg-eth0 as follows (comment
out BOOTPROTO, IPADDR, PREFIX, GATEWAY, DNS1, and DNS2 and add
BRIDGE=br0):<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: 'Courier New',
Courier, mono; font-size: 11.818181991577148px; font-style:
italic; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 13.196022033691406px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(249, 249,
249); display: inline !important; float: none;">vi
/etc/sysconfig/network-scripts/ifcfg-eth0<br>
<br>
</span><br>
<pre style="padding: 6px; margin: 0px; background-color: rgb(239, 239, 239); border: 1px inset; width: 500px; height: 250px; overflow: auto; font-size: 16.363636016845703px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.27272605895996px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">DEVICE="eth0"
#BOOTPROTO=none
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE="Ethernet"
UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
HWADDR=xx:xx:xx:xx:xx:xx
#IPADDR=192.168.0.90
#PREFIX=24
#GATEWAY=192.168.0.1
#DNS1=8.8.8.8
#DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
BRIDGE=br0</pre>
<br>
At this point you can restart networking:<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: 'Courier New',
Courier, mono; font-size: 11.818181991577148px; font-style:
italic; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 13.196022033691406px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(249, 249,
249); display: inline !important; float: none;">/etc/init.d/network
restart</span><br>
<br>
Your host machine should be able to communicate to the outside world
(Internet) via your gateway.<br>
This is pretty much it because If your VM's worked before and you
did not update the OS inside your VMs then you should not need to
modify your VMs networking settings.<br>
<br>
Zoltan<br>
<br>
<div class="moz-cite-prefix">On 9/23/2013 3:58 PM, Schut, Koos J J
(Koos) wrote:<br>
</div>
<blockquote
cite="mid:0DD39299693A8A439F4EF17E7A6BF7AE127F8463@AZ-FFEXMB03.global.avaya.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I upgraded from CentOS 5.9 to CentOS 6.4.<o:p></o:p></p>
<p class="MsoNormal">I try to reuse my virtual machines and am
only partially successful: I can run them, I just cannot get
the network OK and need some help with that.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What I had in the past was pretty simple:
both the host and the VM’s used eth0 and each had an IP in the
same subnet and could communicate freely. With the new install
it seems somewhat more complex and I think I need to configure
a bridge and use that. Unfortunately, info I find through
google is overwhelming and confusing. All examples either
configure something else, or the outcome is not what
expected.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So: how to go about setting things up to
have say:<o:p></o:p></p>
<p class="MsoNormal">My physical machine is on 192.168.0.90<o:p></o:p></p>
<p class="MsoNormal">My Virtual machines are on 192.168.0.100
and 101. <o:p></o:p></p>
<p class="MsoNormal">These are to be fixed addresses.<o:p></o:p></p>
<p class="MsoNormal">The 2 VM’s have to communicate with each
other and with the physical machine.
<o:p></o:p></p>
<p class="MsoNormal">The VM’s do not necessarily need to
communicate with the rest of the world.<o:p></o:p></p>
<p class="MsoNormal">The physical machine needs to communicate
with the rest of the world.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I use:<o:p></o:p></p>
<p class="MsoNormal">- CentOS-6.4_64<o:p></o:p></p>
<p class="MsoNormal">- Virtual Machine Manager 0.9.0<o:p></o:p></p>
<p class="MsoNormal">- xen 4.2.3<o:p></o:p></p>
<p class="MsoNormal">- libvirt 0.10.2.7-5<o:p></o:p></p>
<p class="MsoNormal">- VM’s show Hypervisor = xen (fullvirt)<o:p></o:p></p>
<p class="MsoNormal">- Emulator = qemu-dm<o:p></o:p></p>
<p class="MsoNormal">- NIC points to Shared device name virbr0<o:p></o:p></p>
<p class="MsoNormal">- on the host, virbr0 has IQ 192.168.122.1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have been fighting this for 2 weeks, now.
I tried to follow several advises which resulted in either the
VM’s not connecting to anything, or my host losing its
connection to the rest of the world, or both. So either I
still do something not-right, or I follow the wrong gidelines.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can someone give me a push in the right
direction, please?<o:p></o:p></p>
<p class="MsoNormal">Koos<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
CentOS-virt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos-virt">http://lists.centos.org/mailman/listinfo/centos-virt</a>
</pre>
</blockquote>
<br>
</body>
</html>