jpetazzo / pipework

Software-Defined Networking tools for LXC (LinuX Containers)
Apache License 2.0
4.21k stars 727 forks source link

Macvlan DHCP fails with 'Error: argument "1500' with both dhclient and dhcp #234

Closed sotiris-bos closed 4 years ago

sotiris-bos commented 4 years ago

Command: ./pipework eno1 ef4af12907f5 dhclient

Output:

Error: argument "1500

spoof
spoof
spoof
spoof" is wrong: Invalid "mtu" value

No interface gets added to the container. Same thing with dhcp instead of dhclient.

Centos 8, 4.18.0-80.11.2.el8_0.x86_64 Docker version 19.03.5, build 633a0ea

jpetazzo commented 4 years ago

Hi!

Sorry, I don't maintain pipework anymore. If you want to obtain an address over DHCP, I'd suggest to run the DHCP client in a container (for instance, started with docker run --net container:...) for consistency.