-
Notifications
You must be signed in to change notification settings - Fork 836
Open
Description
I want all pods to get ip addresses from the DHCP server on eth0's network, is the following config doing what I want?
config:
{
"cniVersion": "1.0.0",
"name": "cni",
"type": "bridge",
"bridge": "k8s",
"isDefaultGateway": true,
"ipam": {
"type": "dhcp",
"daemonSocketPath": "/run/cni/dhcp.sock",
"request": [{
"skipDefault": false
}],
"provide": [{
"option": "host-name",
"fromArg": "K8S_POD_NAME"
}]
}
}
# journalctl -u cni-dhcp.service
Nov 17 16:41:44 archlinux dhcp[22626]: 2025/11/17 16:41:44 0154fe202e309cd3f531994ffa98fcd8eadf0a5bba4590575227e66b639b7cc7/cni/eth0: acquiring lease
Nov 17 16:41:44 archlinux dhcp[22626]: 2025/11/17 16:41:44 Link "eth0" down. Attempting to set up
Nov 17 16:41:45 archlinux dhcp[22626]: 2025/11/17 16:41:45 d54132b958798e2a69474b6d3dd49c66471ab33e96ff4dd7dc14523512f287c2/cni/eth0: acquiring lease
Nov 17 16:41:45 archlinux dhcp[22626]: 2025/11/17 16:41:45 Link "eth0" down. Attempting to set up
Nov 17 16:41:45 archlinux dhcp[22626]: 2025/11/17 16:41:45 144dd687c720843fb4ec8041f94ce6063bea8fb559be5a2f228d6282c0b99901/cni/eth0: acquiring lease
Nov 17 16:41:45 archlinux dhcp[22626]: 2025/11/17 16:41:45 Link "eth0" down. Attempting to set up
Nov 17 16:42:54 archlinux dhcp[22626]: 2025/11/17 16:42:54 unable to receive an offer: got an error while the discovery request: no matching response packet received
Nov 17 16:42:54 archlinux dhcp[22626]: 2025/11/17 16:42:54 retrying in 1.910641 seconds
Nov 17 16:42:55 archlinux dhcp[22626]: 2025/11/17 16:42:55 unable to receive an offer: got an error while the discovery request: no matching response packet received
Nov 17 16:42:55 archlinux dhcp[22626]: 2025/11/17 16:42:55 retrying in 1.694917 seconds
Nov 17 16:42:55 archlinux dhcp[22626]: 2025/11/17 16:42:55 unable to receive an offer: got an error while the discovery request: no matching response packet received
Nov 17 16:42:55 archlinux dhcp[22626]: 2025/11/17 16:42:55 retrying in 2.390410 seconds
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels