VMware Modern Apps Community
AntonioPA
Contributor
Contributor

Default gateway / Using custom external gateway with Calico

Hi everybody

I'm using a custom topology with Calico CNI. I'm advertising 2 prefixes to a TKG node: 100.128.1.0/24 and 0.0.0.0/0

When I check the routing table in the node I find only the /24 is being instantiated:

root [ /home/vmware-system-user ]# ip route
default via 10.244.0.49 dev eth0 proto static
10.244.0.48/28 dev eth0 proto kernel scope link src 10.244.0.51
blackhole 100.124.212.64/26 proto bird
100.124.212.65 dev cali435dff71040 scope link
100.124.212.67 dev cali7b6503a80e0 scope link
100.128.1.0/24 via 10.244.0.61 dev eth0 proto bird

The default route comes configured from the following file:

root [ /home/vmware-system-user ]# cat /etc/systemd/network/10-gosc-eth0.network
[Match]
Name=eth0

[Network]
DHCP=no
Address=10.244.0.51/28
Gateway=10.244.0.49
DNS=10.105.134.20
DNS=10.105.134.21
[DHCP]
UseDNS=false

My questions are:

- I would expect to see a second 0.0.0.0/0 route with proto bird as source. Why is not in there?

- How I can eliminate the statically configured default route in /etc/systemd/network/10-gosc-eth0.network?

Many thanks in advance

    Ulises

Tags (2)
Reply
0 Kudos
0 Replies