net: Incorrect handling of IP numbered addressing over ethernet link encapsulation #11338
Comments
Relevant piece of code: http://golang.org/src/net/interface_linux.go#L175 As far as I can tell this function should always use IFA_LOCAL whenever it's available regardless of PointToPoint flag.
|
Thanks for the report. Which version of Linux are you running? |
|
Out of curiosity, what's the purpose of that configuration to eth0? Are you running sort of segmented routing stuff? |
The node is a VM running inside Google Cloud Compute Engine. The interface is essentially point-to-point interface (even though not marked as such) where 10.240.0.1 acts as a gateway to the outside world. Not sure if setting the peer IP really changes anything, though. |
Hm, the bot stops to mention changes. |
CL https://golang.org/cl/11352 mentions this issue. |
We have an ethernet interface configured as follows:
For this interface net.Interface.Addrs() returns 10.240.0.1 instead of 10.240.98.86
The text was updated successfully, but these errors were encountered: