Please help in verifying my static routing config are correct.
Basically, I have a SIP Trunk (LAN: 172.16.1.98) with an External IP of 20.211.3.12 which responds only to packets coming from eth0 (172.16.1.99). When I try to do a trace route on the External IP I can see that it is exiting eth1 (10.20.0.3) hence, no ping reply is being received. Basically, What I need to is route all traffic intended for 20.211.3.12 and 172.16.1.98 to use eth0.
And here is may Static routing config.
eth0:
dhcp4: no
addresses:
- 172.16.1.99/23
gateway4: 172.16.1.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
routes:
- to: 10.211.3.0/24
via: 172.16.1.1
- to: 10.211.3.12/32
via: 192.16.1.98
eth1:
dhcp4: no
addresses:
- 10.20.0.3/24
gateway4: 10.20.0.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
routes:
- to: 172.16.1.0/23
via: 10.20.0.1
- to: 10.211.3.0/24
via: 172.16.1.1
- to: 10.211.3.12/32
via: 172.16.1.99
My problem is that the trunk IP 20.211.3.12 is not PINGable on my Ubuntu Server despite the given configuration above and my SIP Trunk provider technical support is not responsive enough so that we can verify that the problem is on their end. Can anyone verify that my Static routing config is correct? TIA