You are not logged in.

#1 2019-06-07 01:56:16

geekhacakheel
Member
From: Australia
Registered: 2019-06-07
Posts: 5

[SOLVED] dhcp not assigning Ip to interfaces

Dear Group

lsb_release -a
LSB Version:    1.4
Distributor ID: Arch

uname -r
5.1.7-arch1-1-ARCH

I am running this as a VM on virtualbox with 3 network interfaces:
1. Nat
2. Bridged to the wifi
3. Host-Only


I have other Linux vms that work perfect. But the Arch distro isnt assinging IPs to the enp0s9

I am having to manually do a dhclient enp0s9 to get an IP for that.

dhcpcd is running and is enabled. disabling and re-enabling didnt help

Also surprising is when i disable dhcpcd and reboot, it somehow runs again. no idea why so?

Please advise.

Thanks in Advance.

Last edited by geekhacakheel (2019-06-08 13:40:49)

Offline

#2 2019-06-07 02:00:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] dhcp not assigning Ip to interfaces

systemctl --list-unit-files --state=enabled

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-06-07 02:32:06

geekhacakheel
Member
From: Australia
Registered: 2019-06-07
Posts: 5

Re: [SOLVED] dhcp not assigning Ip to interfaces

Thanks Jason

[12:28:48:root@kaalitopi:~] systemctl list-unit-files --state=enabled
UNIT FILE                    STATE
autovt@.service              enabled
bactl.service                enabled
dbus-org.wicd.daemon.service enabled
display-manager.service      enabled
getty@.service               enabled
lxdm.service                 enabled
sshd.service                 enabled
vboxservice.service          enabled
wicd.service                 enabled
remote-fs.target             enabled

10 unit files listed.

Last edited by geekhacakheel (2019-06-07 03:22:57)

Offline

#4 2019-06-07 02:38:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] dhcp not assigning Ip to interfaces

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


So, you have wicd running, which would conflict with any dh{cpcd,client} commands or services you ran. See: https://wiki.archlinux.org/index.php/Wi … ot_running


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-06-07 03:24:56

geekhacakheel
Member
From: Australia
Registered: 2019-06-07
Posts: 5

Re: [SOLVED] dhcp not assigning Ip to interfaces

Thank you. Will have a look. If i could disable wicd, that would be the easiest fix. Let me read up

Offline

#6 2019-06-07 09:30:34

geekhacakheel
Member
From: Australia
Registered: 2019-06-07
Posts: 5

Re: [SOLVED] dhcp not assigning Ip to interfaces

It seems wicd has a limit of only 1 interface and cant manage multiple interfaces.

So I disabled and stopped wicd:

systemctl disable wicd.service
systemctl stop wicd.service

Then created 3 netctl profiles

[19:24:31:root@kaalitopi:/etc/netctl] cat profile_enp0s3
Description='A basic dhcp ethernet connection'
Interface=enp0s3
Connection=ethernet
IP=dhcp
#DHCPClient=dhcpcd
#DHCPReleaseOnStop=no
## for DHCPv6
#IP6=dhcp
#DHCP6Client=dhclient
## for IPv6 autoconfiguration
#IP6=stateless



[19:24:39:root@kaalitopi:/etc/netctl] ls -l profile_enp0s*
-rw------- 1 root root 224 Jun  7 19:16 profile_enp0s3
-rw------- 1 root root 224 Jun  7 19:17 profile_enp0s8
-rw------- 1 root root 224 Jun  7 19:17 profile_enp0s9
[19:24:51:root@kaalitopi:/etc/netctl]

followed by enabling the netctl profiles

netctl enable profile_enp0s3
netctl enable profile_enp0s8
netctl enable profile_enp0s9

and a system reboot


Thanks for pointing me in the correct direction. I got to learn a fair bit. Ofcourse it took few hrs of research and reading!

Offline

#7 2019-06-07 09:45:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,688
Website

Re: [SOLVED] dhcp not assigning Ip to interfaces

Please remember to mark your thread as solved by editing the first post and amending the topic title.

https://wiki.archlinux.org/index.php/Co … ow_to_post


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2019-06-08 13:41:13

geekhacakheel
Member
From: Australia
Registered: 2019-06-07
Posts: 5

Re: [SOLVED] dhcp not assigning Ip to interfaces

Thank you WorMzy. Done.

Offline

Board footer

Powered by FluxBB