Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.