dhcpcd-discuss

Re: dhcpcd is running but no ip allocated

daggs

Fri Sep 18 09:58:27 2020

Greetings Roy,

> Yoiks!
>
> Firstly I would ditch hotplug. dhcpcd has this covered already - infact it has
> it covered twice because I can see you are using udev as will and dhcpcd listens
> to udev hotplug.
I understand but why it wasn't started in the first time?


> There is an error in your hotplug command - the -m option does not take an argument.
> control command: dhcpcd -t 0 -m 6 veth
> This means zero timeout in master mode with the interfaces 6 and veth.
help suggest otherwise:
# dhcpcd --help | grep "\-m"
                [-l, --leasetime seconds] [-m, --metric metric]

version is:
dhcpcd 8.1.9
Copyright (c) 2006-2019 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH

what is the expected cmd? dhcpcd -t 0 -m veth?

>
> Secondly, I don't see any tap interfaces in your logs?
here:
# cat /sys/class/net/veth/tun_flags
0x5002

# ifconfig veth
veth: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.3  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::fc54:ff:fea7:796b  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::2ecd:ba9e:b666:96a0  prefixlen 64  scopeid 0x20<link>
        inet6 fdab:9802:eb52::790  prefixlen 128  scopeid 0x0<global>
        inet6 fdab:9802:eb52:0:41d9:d311:10fd:e343  prefixlen 64  scopeid 0x0<global>
        ether fe:54:00:a7:79:6b  txqueuelen 1000  (Ethernet)
        RX packets 2850  bytes 469394 (458.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 770  bytes 132451 (129.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

>
> If you're using net.tap0 to create the tap0 interface that's fine, just don't
> set any network directives such as dhcp etc.
> Just use init.d/dhcpcd as well.

the tap device is created by libvirt, I just changed the name from vnet0 to veth
the script name is /etc/init.d/net.veth

>
> You may wish to consider using init.d/network over net.tap0 as it was designed
> just to create the interface link rather than manage the whole food chain.
>
> Roy

I'm not sure gentoo supports this feature out of the box.

Thanks,

Dagg

Follow-Ups:
Re: dhcpcd is running but no ip allocatedRoy Marples
References:
dhcpcd is running but no ip allocateddaggs
Re: dhcpcd is running but no ip allocatedRoy Marples
Re: dhcpcd is running but no ip allocateddaggs
Re: dhcpcd is running but no ip allocatedRoy Marples
Archive administrator: postmaster@marples.name