-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong VtepMAC after flannel.1 first up #1795
Comments
I change the code flannel/pkg/backend/vxlan/device.go Lines 124 to 134 in c17e715
to: func (dev *vxlanDevice) Configure(ipa ip.IP4Net, flannelnet ip.IP4Net) error {
if err := ip.EnsureV4AddressOnLink(ipa, flannelnet, dev.link); err != nil {
return fmt.Errorf("failed to ensure address of interface %s: %s", dev.link.Attrs().Name, err)
}
log.Infof("before up info:%v", dev.link)
if err := netlink.LinkSetUp(dev.link); err != nil {
return fmt.Errorf("failed to set interface %s to UP state: %s", dev.link.Attrs().Name, err)
}
nLink, err := netlink.LinkByName(dev.link.LinkAttrs.Name)
if err == nil {
if vxlan, ok := nLink.(*netlink.Vxlan); ok {
log.Infof("after up search vxlan name info:%v", vxlan)
}
}
return nil
} and I delete
seem netlink does't use the mac address
|
seemd
|
Is this a default policy on centos? |
no, I used this file to fix some os which create with clone had same mac address |
I think that when you do the LinkUp the mac address is randomized. |
Your Environment
v0.22.1
mode:vxlan
v1.27.4
CentOS Linux release 7.9.2009 (Core)
after node restart
164
info:kubernetest annotations:
arp table on other nodes, should be
ee:8d:cf:69:b3:7c
ee:8d:cf:69:b3:7c
is not equale6:7c:02:8e:e8:7e
if I restart the flannel contaienr which running on the node
164
, all things will be re-sync and works fine:The text was updated successfully, but these errors were encountered: