[CentOS-virt] How to connect a guest to a fixed routable address?
James B. Byrne
byrnejb at harte-lyne.ca
Wed May 26 21:37:12 UTC 2010
I am experimenting with kvm on a quad x86_64 running CentOS-5.5. I
have created my first virtual guest and it seems to run fine. Now I
wish to assign that particular guest to a fixed, public IP address.
There seems to be at least two ways to proceed and I am soliciting
comments on the preferred approach.
In the first instance I can use brctl to create a bridged 'shared
physical device' and presumably add that device to the network
configuration of the guest, assigning the IP connection details
In the second, I can continue to use the virtual networking system,
albeit with fixed private as opposed to DHCP assigned addresses. In
this case I gather that I must use ifconfig to add public IP
addresses to the eth0 interface of the host and use iptables to
route the public to the private address.
Firstly, are my inferences correct? Are there any other approaches
that I cannot discern? If these are the only two methods then which
is the preferred one? I get the sense that bridging works in a
manner that permits only one guest to access that physical device,
however the documentation is not explicit on the matter.
I have looked extensively for guidance but I suspect that a great
deal of what I have read is somewhat dated and likely to cause me
more trouble than help.
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
More information about the CentOS-virt