Hi.
I have a Cisco router with one ADSL interface and two Ethernet interfaces.
The hosts are conected to the Ethernet0 interface, and the DMZ is Ethernet1.
I have two public IP addresses, so I'm going to use subinterfaces for the WAN interface. To understand better this message we can guess that these two IPs are: 80.80.80.80. and 80.80.80.81. These are not my IPs, it's just to understand better my explanation.
Until now, I just have one public address (on ATM0.1), and I have PAT enabled. But now, I have another public IP, I mean, I only have one ADSL line but two public IPs.
So, subinterface ATM0.1 is 80.80.80.80 and ATM0.2 will be 80.80.80.82.
I would like all traffic for the hosts go through ATM0.1 and all traffic for DMZ would go through ATM0.2. So, if anyone would go to my web server, they should type http://80.80.80.82.
But I have this command:
"ip route 0.0.0.0 0.0.0.0 ATM0.1"
So, if anyone opens a web browser and goes to http://80.80.80.82, the tcp packet will reach my web server, but when my web server answers, the answer would leave the router on the ATM0.1 subinterface instead of ATM0.2, and I need to separate LAN and DMZ traffic to internet.
What can I do in order to get what I want?
Thanks,
M.G.