So, we're running a simulated network on a server in AWS and i'm trying to figure our how to enable routing to that simulated network both from inside AWS and from our remote offices.
Our VPC CIDR is 10.10.0.0/18 The Simulated network is 10.10.128.0/20 (just outside the range of the CIDR associated with the VPC Our server is sitting on 10.10.10.5
BGP is avertising the 10.10.0.0/18 route to our offices and I can access the server (not the simulation network) from within AWS and from remote office sites.
Within the routing table associated with the VPC, I can add a route to 10.10.128.0/20 via the network interface of the server. This works, and allows traffic from AWS servers to the Simulated network. However, remote sites cannot, as 10.10.128.0/20 is outside 10.10.0.0/18 that is advertised through BGP.
I cannot add 10.10.128.0/20 as a CIDR associated with the VPC, without removing the routing entry from the routing table. I've tried this, and 10.10.128.0/20 gets advertised to remote sites but there is nothing inside AWS to tell the traffic to go to the server interface, so anything to 10.10.128.0/20 addresss gets "effectivly" blackholed.
While the simulation network CIDR is added to the VPC, I cannot add a static route for the same CIDR to route via the Server Interface. While the simulation network CIDR is added to the routing table through through the intances eni, I cannot add the simulation network CIDR to the VPC.
I'm stumped where to go next...