Add 2 public subnets on same server.

Our web server has 2 Nics.
A1=Public with GW  
B= private with no GW.

Because our public range is out of IPs I need to add a second nic with new subnet A2 =Second public. This one has a different GW.
I cant have 2 GWs so I need static routes. But its not working.

My A and B still work fine but I cant ping A2 from A1 or vice versa.
I did a test from Another server 2 that only has B and A2 and I can ping both A1 and A2 on server 1.
So its definitively a routing GW issue on between A1 and A2 on server 1.

I think the ping comes on A2 but then goes out the default gw on A1 instead of routing back to A2 interface.

I even specified IF in the route to go back to IF 23 which is A2 but its not working.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Trenton KnewConnect With a Mentor Owner / Computer WhispererCommented:
pardon the idiot question, too, but I'm assuming that you're using the windows server to route the traffic between the two subnets, and that you have installed the routing and remote access server role?
Trenton KnewOwner / Computer WhispererCommented:
can you give us a `route print`?
baysysadminAuthor Commented:
we have one large public subnet 256 which is broken down into smaller 16 ip subnets.
A1 and A2 are 2 of those smaller public chunks.
The firewall is ASA it has all the smaller subnets configured as virtual interfaces each with their own vlan and GW.
The server has a vmware vnic with matching vlan. Ive confirmed the vmware stuff and asa is working fine.
Its just an issues on this server that has both subnets.

A1 is Public.144 /28 GW is .145
A2 is Public.96 /28 GW is .97 but not assigned on interface

Interface List
 23...00 50 56 91 1b ec ......Intel(R) PRO/1000 MT Network Connection #3      -A2
 11...00 50 56 91 00 1b ......Intel(R) PRO/1000 MT Network Connection #2      -B
 10...00 50 56 91 00 1a ......Intel(R) PRO/1000 MT Network Connection            -A1
  1...........................Software Loopback Interface 1
 13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 12...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
 26...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3

IPv4 Route Table
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
   Public.145   Public.153    266       PrivateB.1     PrivateB.103     11       PrivateB.1     PrivateB.103     11
       PrivateB.0         On-link      PrivateB.103    266
     PrivateB.103         On-link      PrivateB.103    266
     PrivateB.255         On-link      PrivateB.103    266
    Public.96         On-link    Public.100    266
    Public.96    Public.97   Public.100     11
   Public.100         On-link    Public.100    266
   Public.111         On-link    Public.100    266
   Public.144         On-link    Public.153    266
   Public.153         On-link    Public.153    266
   Public.159         On-link    Public.153    266         On-link    306         On-link    306         On-link    306       PrivateB.1     PrivateB.103     11         On-link    306         On-link      PrivateB.103    266         On-link    Public.153    266         On-link    Public.100    266         On-link    306         On-link      PrivateB.103    266         On-link    Public.153    266         On-link    Public.100    266
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric       PrivateB.1       1       PrivateB.1       1       PrivateB.1       1
   Public.145  Default
    Public.96    Public.97       1

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

baysysadminAuthor Commented:
No i havent.
I looked into that but wasnt sure if I needed it. I was hoping i could make it work with static routes.
Before you even answered it was looking like i could not make it work without it. I was hoping that there was a command that can tell windows to route the packets back the way they came from in specific cases, instead of using default GW each time.

Is there no way to tell it if a packet comes destined to x.96 subnet to go back out the same interface?

Ive used RRAS for vpn and other things but not for this scenario.
What would be my config like in this case?

Trenton KnewConnect With a Mentor Owner / Computer WhispererCommented:
well, you have two options...  Either the router or ASA needs to be aware of the second subnet on whatever interface that second nic is connected to, (probably vlans and trunks) or you need to install routing and remote access so the windows server will route traffic between the two subnets.  RRAS supports RIP, and a couple others... I'm a little rusty with my RRAS config skills though to help without actually walking through it myself.  Just let me know.  I would probably use the network devices though unless you have a specific need to route through the server.
Trenton KnewOwner / Computer WhispererCommented:
On the flip side, the workstations on A2 won't care if there's a gateway set on the server as long as they can reach it and they are on the same subnet.  But you can still use the upstream router to route traffic between the subnets.  I'm still not even sure why you needed the second NIC.  Maybe I don't fully understand the challenge.
baysysadminAuthor Commented:
The main reason Im adding second subnet is because they ran out of public IPs.
The client doesn't want to spent time and or have downtime associated with changing all the IPs to a bigger subnet.

I just installed RRAS on the test server and will play with it. None of the wizard templates related to my case, so i chose custom.
The view now is simple, Routing and remote access is ON. I see network interfaces and the only option i have is to create static routes.
How is creating static routes in RRAS different than doing it in CMD?

Not sure how I would accomplish this on the firewall side.

Using RRAS sucks as I would have to do this on 2 servers.
Trenton KnewOwner / Computer WhispererCommented:
here's the thing... even if you set up RRaS on the windows servers, it won't matter if they aren't defined on your workstations as the default gateway.  so If your configured GW on the clients is the router, you will need to create the route between the two subnets on that device anyway.
baysysadminAuthor Commented:
Ive decided to scrap this idea. I will cannibalize the ips from another server to make it last a bit longer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.