Thursday, January 5, 2017

networking - Two different Gateways in one subnet, Client only has a standard gateway

following situation:




  • Subnet A: 192.168.0.0/24



  • Subnet B: 10.1.1.0/24


  • Standard GW (Router) in Subnet A: 192.168.0.254


  • GW leading to subnet 10.1.1.0/24: 192.168.0.100




I want to send traffic from a device in subnet A to a device in subnet B. But the router which is forwarding traffic to subnet B is not my default gw. My actual default GW has a static route to subnet B with gw 192.168.0.100 configured. So I have two gateways in one subnet.



What is best practice for this situation?





  1. Do I send traffic to my default gw, which sends the traffic back out the port where the traffic was received, to forward data to my other router? Are the any potential security features on routers which prevent this from happening?


  2. Do I have to add a static route to all my hosts in subnet A to lead traffic to subnet B via my secondary router directly - so without contacting my default gw first?




I hope my question is clear. Thanks in advance. My Network

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...