[Question] dhcpcd on a virtual nic for alpine
Greetings,
I have an alpine setup running openrc and dhcpcd. dhcpcd is started on the boot runlevel, on the default runlevel there is a service that boots vms. one of the vms creates a virtual nic which connects the host with that vm. if I run dhcpcd on that nic manually, I get ip, the problem is who to make it automatic. another issue I'm looking to solve is the ip renewal part, it seems that if I leave the system up for the night, the ip lease on that nic expires and I loose network connection between them.
any recommendations how to configure dhcpcd to auto dhcp when the device is created and maintain ip lease if expired?
Thanks
@rsmarples any idea how to handle such issue?
Sorry for not replying earlier, this slipped off my radar.
So if you add dhcpcd to the boot or default runlevel with it's stock configuation, it will operate on all interfaces, virtual or otherwise. If they are interface types dhcpcd can work with. When leases expire they should renew automatically - some configs are expected to fail renew but then rebind before expiry.
In other words I'm not sure how else to handle your issue. Please provide more detail.
Sorry for not replying earlier, this slipped off my radar.
So if you add dhcpcd to the boot or default runlevel with it's stock configuation, it will operate on all interfaces, virtual or otherwise. If they are interface types dhcpcd can work with. When leases expire they should renew automatically - some configs are expected to fail renew but then rebind before expiry.
In other words I'm not sure how else to handle your issue. Please provide more detail.
sure, which info do you need?
Well, lets start with the basics. Which runlevel did you add dhcpcd to?