Hello,
I have a server with two NICs and two ip addresses on separate VLANs and separate subnets that don't overlap. Each NIC has a separate interface on the Juniper SRX240H2.
eth0 is setup on 172.16.2.0/24 with ip address 172.16.2.2 and gateway 172.16.2.1 and connected to ge-0/0/14 on vlan2
eth1 is setup on 172.16.3.0/24 with ip address 172.16.3.2 and gateway 172.16.3.1 and connected to ge-0/0/15 on vlan4
i only have a default route setup for eth1 which is 172.16.3.1 and associated with my Juniper MAC address - (made up) dc:38:e1:27:44:44.
when i look at the arp entries eth0 is incomplete because it can't have the same mac address association with a different IP on the same server. I can ping 172.16.2.1 but the server doesnt know how to send it back to the juniper interface on ge-0/0/14 on vlan2. I can ping 172.16.3.1 fine and all traffic goes out there by default because the gateway is defined in my server routing table and the ARP entry exists. I have tried source based routing with iproute2 on the server, but the only trouble I have is pinging ge-0/0/14 or 172.16.2.1.
How do I make my server send traffic out eth0 when it is sent to the eth0 address and send traffic out eth1 when it is sent to eth1 if the MAC address is the same on ge-0/0/14 and ge-0/0/15? Is there a way to make a fake MAC address for ge-0/0/14?
Please let me know if you need more configuration information. The server is a debian box.