Skip to content

Commit

Permalink
Fix IPv6 route steering traffic
Browse files Browse the repository at this point in the history
Fixes #28327

This patch stops adding /64 route to the cilium_net iface, which brought all the traffic to local node. When using something like /120 per node and having pods within the same /64 as the node meant that no cross-node traffic from pods worked.

Signed-off-by: Ashley Reese <ashley@victorianfox.com>
  • Loading branch information
CallMeFoxie committed Oct 17, 2023
1 parent d7b50cc commit d405c9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/datapath/loader/netlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ func addHostDeviceAddr(hostDev netlink.Link, ipv4, ipv6 net.IP) error {
IP: ipv6,
Mask: net.CIDRMask(64, 128), // corresponds to /64
},
Flags: unix.IFA_F_NOPREFIXROUTE,
}

if err := netlink.AddrReplace(hostDev, &addr); err != nil {
Expand Down

0 comments on commit d405c9e

Please sign in to comment.