instance not able to route to custom router
Hi,
I setup 2 instances in a VPC, one which is a client (192.168.16.3), one which is a router (192.168.16.2).
Client ip routes are given below:
default via 172.236.190.1 dev eth0 proto static
172.236.190.0/24 dev eth0 proto kernel scope link src 172.236.190.55
192.168.0.0/20 via 192.168.16.2 dev eth1 proto static
192.168.16.0/20 dev eth1 proto kernel scope link src 192.168.16.3
Other client settings
- net.ipv4.fib_multipath_hash_policy = 1
The router & client are able to ping each other. However, when I try to ping from the client to any address in the 192.168.0.0/20 CIDR, it fails. Traceroute & tracepath also fails. Router can ping 192.168.0.0/20 CIDR. Instances from the 192.168.0.0/20 CIDR are able to ping the router & <ins>the client</ins>.
I have also provided below the traceroute & tracepath outputs from client to router:
mtr -c1 -bzr 192.168.16.2
Start: 2025-01-23T19:48:46+0000
HOST: localhost Loss% Snt Last Avg Best Wrst StDev
1. AS??? 192.0.0.8 0.0% 1 0.2 0.2 0.2 0.2 0.0
2. AS??? 192.0.0.8 0.0% 1 0.3 0.3 0.3 0.3 0.0
3. AS??? 192.168.16.2 0.0% 1 0.5 0.5 0.5 0.5 0.0
tracepath 192.168.16.2
1?: [LOCALHOST] pmtu 1500
1: 192.0.0.8 0.140ms
1: 192.0.0.8 0.122ms
2: 192.0.0.8 0.236ms
3: 192.168.16.2 0.509ms reached
Resume: pmtu 1500 hops 3 back 3
#
To summarise, there is some issue in routing from the client to the router.
Please advise how to proceed. Do me know if you need any more information from my side.
Thanks,
Ajit