You are not logged in.

#1 2015-05-16 12:46:01

solidsnake
Member
Registered: 2015-05-16
Posts: 3

network connection after first reboot

Hi all

So I tried to install Arch from the terminal and I got through most of it as far as I can see since the installer didn't report any errors for me.

However, I run a wired connection and when installing I tried to ping various sites and all of them responded as they should.

So I install base and base-devel and generate fstab and such and after the first reboot I can't seem to connect anymore when I try to install packages. Has anyone come across this ?
I ran systemctl enable dhcpcd@eth0.service but nothing happened after that.

Offline

#2 2015-05-16 13:03:12

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: network connection after first reboot

solidsnake wrote:

the installer didn't report any errors for me.

Which installer would that be?

Has anyone come across this ?

Yes, you're not the first one to skip this step.

I ran systemctl enable dhcpcd@eth0.service but nothing happened after that.

The enable command does not start the service. If you had done it before rebooting as the guide says, that would have been enough. Read the wiki or the systemctl man page.

Offline

#3 2015-05-16 13:07:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: network connection after first reboot

Also, is your interface actually called eth0?  If you didn't specfically set that up, it is likely named something else.

mod note: moved to newbie corner.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-05-16 13:58:01

gaim123
Member
From: Poland
Registered: 2015-04-27
Posts: 34

Re: network connection after first reboot

solidsnake wrote:

Hi all

...after the first reboot I can't seem to connect anymore when I try to install packages. Has anyone come across this ?
I ran systemctl enable dhcpcd@eth0.service but nothing happened after that.

Ok, try this after reboot:
First only:

# dhcpcd

Next:

# systemctl enable dhcpcd.service

and:

# systemctl start dhcpcd.service

Offline

#5 2015-05-16 13:58:43

solidsnake
Member
Registered: 2015-05-16
Posts: 3

Re: network connection after first reboot

It's the cd I downloaded it via torrent from the Arch website.

I must have missed that in the guide about doing that before rebooting, the weird thing is, I could ping sites so it seemed to work. Ahwell I'll give it a shot, just after I check my interface name thanks for the help !

Offline

#6 2015-05-16 14:14:29

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: network connection after first reboot

You could ping when you booted from the installation medium where dhpcd.service was enabled (this is mentioned in the step I linked to before), but now you're booting into your new installation.

gaim123 wrote:

First only:

# dhcpcd

Next:

# systemctl start dhcpcd.service

No need to start it twice.

Offline

#7 2015-05-16 14:56:22

solidsnake
Member
Registered: 2015-05-16
Posts: 3

Re: network connection after first reboot

I'm trying it in vbox right now, it works once you type dhcpcd after reboot and I'm currently downloading xfce, so tomorrow I'll move on to the real thing

Offline

#8 2015-05-16 15:14:45

gaim123
Member
From: Poland
Registered: 2015-04-27
Posts: 34

Re: network connection after first reboot

https://wiki.archlinux.org/index.php/Dhcpcd#Running

dhcpcd.service starts the daemon for ALL network interfaces...

Offline

#9 2015-05-16 15:30:13

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: network connection after first reboot

gaim123 wrote:

First only:

# dhcpcd

Next:

# systemctl start dhcpcd.service

Sorry to be so pedantic, but dhcpcd.service has a number of run-time hooks (/usr/lib/dhcpcd/dhcpcd-run-hooks) that will not start if `dhcpcd` alone is called from the command line -- the `systemctl start` command is the one that should be used.

Offline

Board footer

Powered by FluxBB