Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

gateway template should replace bosh declared gateway, not just add. #3

Open
@poblin-orange

Description

@poblin-orange

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)

https://gist.github.com/poblin-orange/5ac277854a24b4a35966

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions