I have a pool of public IP addresses (95.xxx.xxx.196 – 254). I also have a server hosting KVM machines. It has an private ip address 10.0.0.1 which is NATed by the router to the 95.xxx.xxx.200 address.
VM hosted on it are routed the same way – router binds 10.0.0.xxx addresses to the 95.xxx.xxx,xxx and it works, but I want to assign them public IPs directly. They need to work somewhat like vps – you log into them by ssh and ip -a shows only one interface with public IP.
I tried to assign an external ip address to the vm with gateway set to the host internal IP but it didn’t work. Nobody could ping it, including the host, How to setup KVM, the host server and router for it to work?