Skip to content
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

[Question] dhcpcd on a virtual nic for alpine #411

Open
daggs1 opened this issue Nov 27, 2024 · 4 comments
Open

[Question] dhcpcd on a virtual nic for alpine #411

daggs1 opened this issue Nov 27, 2024 · 4 comments

Comments

@daggs1
Copy link

daggs1 commented Nov 27, 2024

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

@daggs1 daggs1 changed the title dhcpcd on a virtual nic for alpine [Question] dhcpcd on a virtual nic for alpine Dec 17, 2024
@daggs1
Copy link
Author

daggs1 commented Dec 17, 2024

@rsmarples any idea how to handle such issue?

@rsmarples
Copy link
Member

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.

@daggs1
Copy link
Author

daggs1 commented Jan 20, 2025

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?

@rsmarples
Copy link
Member

Well, lets start with the basics.
Which runlevel did you add dhcpcd to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants