On Debian Linux dist I need two IP address with different mac address. On each of them one server will run on port 80. So i need something like this:
ip: 192.168.2.1 mac: xx:xx:xx:10:xx:xx ip: 192.168.2.2 mac: xx:xx:xx:90:xx:xx
And then start two http servers each listen one ip address.
Already have eth0 setup to proper ip address and i tried to setup virtual network adapter via macvlan:
ip link add link eth0 name vlan0 type macvlan mode private ip address add 192.168.2.2 dev vlan0 ip link set dev vlan0 address xx:xx:xx:90:xx:xx ip link set dev vlan0 up
When i enter url 192.168.2.2 i get same page as 192.168.2.1. So basically everything on port 80 is routed to that server. I also tried all different modes of macvlan but result is always same.
What am i doing wrong? Is this even possible with macvlan or i need different approach?