[CentOS-virt] KVM: bridge configuration for static IP address
rewing at howfortune.com
Fri Dec 11 09:23:49 UTC 2009
I need to allocate public IP address to two guest os.
I have only 2 network card Interface on server. say eth0 and eth1.
I set eth1 a public IP address. so it should in
# vi /etc/sysconfig/ifcfg-eth1
Question 1: do I have to add GATEWAY=22.214.171.124 to above setting?
now continue to set eth0,seems I would use it as bridge ,so ifcfg-eth0 would be:
# vi ifcfg-eth0
There's no IP address in this ifcfg-eth0. so
Question 2: do I need to add the rest 2 IP addresses in br0? or I should keep br0 with no IP address and set IP in guest OS directly?
Could anybody tell me how to set br0 to let host os and 2 guest os all have their own dedicated IP address?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentOS-virt