-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bug? :: Unable to change interface for dhcp plugin in daemon mode #931
Comments
Unit configuration: [Unit]
Description=CNI dhcp Service
Requires=network-online.target
After=network-online.target
[Service]
User=root
Group=root
ExecStart=/opt/cni/bin/dhcp daemon --broadcast=true
ExecReload=/bin/kill --signal HUP $MAINPID
KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=2
StartLimitBurst=3
StartLimitInterval=10
[Install]
WantedBy=multi-user.target |
I've tried to rename network interface to eth0, but dhcp daemon still can't see this network.
|
What network interface did you rename? Is there a dhcp server on the other side of the macvlan interface? The dhcp plugin is a dhcp client on behalf of the containers which use it as their ipam. The purpose is to use this plugin vs every container having to add their own dhcp client (e.g. dhclient) to their container image. |
Hi, I've renamed ens8 interface to eth0. 6: ens8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8942 qdisc fq_codel state UP group default qlen 1000
link/ether fa:16:3e:7f:b5:9e brd ff:ff:ff:ff:ff:ff
inet 192.168.210.5/24 brd 192.168.210.255 scope global ens8
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe7f:b59e/64 scope link
valid_lft forever preferred_lft forever DHCP server in daemon mode running via Systemd unit. Should I specify CNI_IFNAME for dhcp unit on client node? |
Hi,
We are trying to configure macvlan network with dhcp in Nomad.
We have running dchp plugin in daemon mode as systemd service on the same host machine, where we are running our containers with such cni network.
For some reason dhcp daemon using non-existing eth0 interface when it is trying to transmit dhcp request.
CNI version: 1.1.1
How it can be changed to the same interface as master from network config?
Network config:
Available interfaces:
Logs from dhcp in daemon mode after trying to use this network
The text was updated successfully, but these errors were encountered: