routing eth0:1 directly to kvm VM

mojo asked:

Ive got a Dedicated Server with 2 Public IP Adresses and would like to route all eth0:1 traffic to a KVM Guest via iproute2 or even iptables. Outgoing Traffic should also be routed to eth0:1 – eth0 and eth0:1 are assigned in different Subnets.

Setup is/should be as following:
178.1.2.3 eth0:1 <-> 192.168.1.254 br1, gateway for tap1 <-> 192.168.1.1 KVM Guest

My answer:


This seems way too complex. Just bridge the VM and set the IP address in the guest.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.