-
Notifications
You must be signed in to change notification settings - Fork 27
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
Specifying MAC, MTU and other link attrs like IFLA_AF_SPEC #54
Comments
Yeah, it's not supported. The assumption is that a NOS that runs inside a pod is given enough privileges to change those settings (CAP_NET_ADMIN at least, full privileged at most). So normally, this is controlled by whatever software that runs in a pod. |
Thanks for the reply. Though the NOS running has the capability to change, it would be good to have this driven with the YAML. When the NOS tries to set the MTU, we get errors and the link remains down. Dec 1 02:46:22 dut-d : debug|1396|1461|00012|E: NetDeviceSetMTU ioctl(SIOCSIFMTU, "e1-34", 7000): Invalid argument (22) 63: e1-34@if63: <BROADCAST,MULTICAST> mtu 1450 qdisc noqueue state DOWN group default qlen 1000
|
Ah, right, I see. I remember reading about similar things (e.g. adjustable MTU) in the context of gRPC links (worked on by @kingshukdev). I don't think it's supported today, but it should be fairly easy to add. |
Thanks that will be great, Can you please add MTU support, i guess extending it here ? Line 136 in 037ded8
Do you know, how long it takes to deploy such a change normally ? |
I don't think I'll have the bandwidth to do this in the near future but I'm happy to consider PRs, if you're willing to do it |
Sure i can try out the changes and request a PR. |
@sar772004, Yes adding configurable MTU is not a big task. Just to understand your use case - what is the MAX MTU you want to see for a link ? Secondly in a topology you need all links to have same MTU or different links can have different MTU ? |
@kingshukdev I am trying to achieve the MTU of vxlan bind atleast 9232. By the way it seems the MTU currently is being picked from the underlying interface and its being tied to the primary address as defined here. We want to use a specific NIC for carrying the vxlan binds. and i m not finding a way to define the endpoint IP to be picked up from a specific interface on the computes. Any idea how i can point to a specific underlay interface for the VXLAN binds to use ? |
Can you please help me with an example to specify the MAC, MTU and other link Attributes of the veth link? I don;t see it currently supported, but just checking if there is some way to do this.
Based on some code browsing , This is what Koko is using internally, and may need to be extended
https://github.com/vishvananda/netlink/blob/main/link.go#L24
The text was updated successfully, but these errors were encountered: