[CentOS-virt] KVM with bridge in one interface

Thu Jun 24 21:56:27 UTC 2010
Armando Montiel <armando.montiel at gmail.com>

Hi,

I have only one ethernet port in a remote server. (eth0)

I have a public address with x.x.x.164 netmask 255.255.255.240 gw x.x.x.161

and want to use in my guest OS the next available ip address (x.x.x.165 netmask 255.255.255.240 gw x.x.x.161)

Is this posible with brctl to achieve this?

I did a file called ifcfg-xenbr0 with:


DEVICE=xenbr0

TYPE=Bridge

BOOTPROTO=dhcp

ONBOOT=yes

then reboot, after that i use:

# brctl addif xenbr0 eth0

I was connected to my remote server but problems begin when I assigned the x.x.x.165 ip addres to the guest OS with

virt-manager to begin installation. I lost the remote connection. Maybe I miss something like this? :

iptables -I FORWARD -m physdev –physdev-is-bridged -j ACCEPT

to avoid loosing the connection ?

i'm still receiving ping from x.x.x.165 but x.x.x.164

:(