Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] incorrect interface address | dhcpcd-openrc (Read 203 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] incorrect interface address | dhcpcd-openrc

Hello everyone. When connecting a Qemu virtual machine, I see an incorrect interface address
Code: [Select]
inet 10.0.2.16 
instead of
Code: [Select]
inet 10.0.2.15
.
How can I fix this? I'm using dhcpcd-openrc

Re: incorrect interface address | dhcpcd-openrc

Reply #1
I figured it out, I need to do it:

disable dhcp

for dhclient

Code: [Select]
$ sudo dhclient -v -r eth0

Code: [Select]
$ sudo ip link set eth0 down

Code: [Select]
$ sudo rm -rf  /var/lib/dhclient/*

for dhcpcd

Code: [Select]
$ sudo rc-service dhcpcd stop

Code: [Select]
$ sudo ip link set eth0 down

Code: [Select]
$ sudo rm -rf  /var/lib/dhcpcd/*

reboot the system