gateway template should replace bosh declared gateway, not just add. #3
Description
Hello,
im trying to use this bosh release to enable access to an internet gateway from a bosh deployment.
The context :
- single NIC eth0, bosh networks declares gateway 10.234.228.129
- add the gateway template to specify default gateway to my internet gateway 10.234.228.130
- add route template, so that intranet access (10.0.0.0 ..) are routed to the bosh declared gateway
- the release im using is docker-boshrelease.
After deployment, i see 2 defaults gateways declared. Seems strange ?
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.234.228.130 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 10.234.228.129 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 10.234.228.129 255.255.255.192 UG 0 0 0 eth0
10.234.228.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
It prevents the internet access. Removing the initial default gateway fixes the issue (see gist below)