PDA

View Full Version : 1 VPS with 2 IP addresses. How to make them independent?



Douro
10-27-2017, 01:56 PM
I have this in /etc/network/interfaces:


auto ens3
iface ens3 inet static

address 46.xx.xxx.1x7
netmask 255.255.252.0
broadcast 46.38.xxx.255
gateway 46.xx.xxx.1

auto ens3:0
iface ens3:0 inet static

address 188.xx.xx.xx5
netmask 255.255.255.255

I have two public IP's, but I wish the traffic they made would not mix. I verify that all data leaves the VPS normally by one of two IP's. As for the input, the data to reach the interface ens3:0 passes through the interface ens3. I want the interfaces of my VPS to be independent. It will be possible?