Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Hi everyone :) In general, I'm still struggling with the virtual machine KVM. I did two alias to eth0 - eth0:0 and eth0:1 and put them on an external IPs (eth0:0 -, eth0:1 -​​. Now the problem is: redirect from IP and IPs to virtual internal addresses (virbr0 bridge) of VMs obtained for dhcp ... I do like this:

sudo route add gw netmask metric 1 dev eth0:0

/sbin/iptables -t nat -A PREROUTING -p tcp -d -j DNAT --to-destination

sudo /sbin/iptables -A FORWARD -i eth0:0 -d -j ACCEPT

but it still not work, neither ssh, nor other services... only ping on that external IP.

What I am doing wrong?

share|improve this question

1 Answer 1

libvirt is already NATing, this is how you get the 192.168.122 address. Go over for some better understanding of what's going on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.