You are not logged in.

#1 2014-03-24 15:34:19

NeoKuffs
Member
Registered: 2014-03-24
Posts: 1

Arch linux does not bring up the network card at boot (wired)

When My machine boots, it fails to start the network, it just does not start. I [belive I] have narrowed it down to the simple fact that Arch Linux does not bring up the network card at boot.

journalctl -b -u netctl@my_network

-- Logs begin at Sun 2014-02-23 16:02:55 CET, end at Mon 2014-03-24 16:13:09 CET. --
Mar 24 16:12:27 defiance systemd[1]: Starting A basic dhcp ethernet connection...
Mar 24 16:12:27 defiance network[408]: Starting network profile 'my_network'...
Mar 24 16:12:31 defiance network[408]: chmod: cannot access ‘/run/dhcpcd-enp3s0.pid’: No such file or directory
Mar 24 16:12:31 defiance network[408]: Failed to bring the network up for profile 'my_network'
Mar 24 16:12:31 defiance systemd[1]: netctl@my_network.service: main process exited, code=exited, status=1/FAILURE
Mar 24 16:12:31 defiance systemd[1]: Failed to start A basic dhcp ethernet connection.
Mar 24 16:12:31 defiance systemd[1]: Unit netctl@my_network.service entered failed state.

ip a

                                                                                                                                                                                                                                                                                              
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default                                                                                                                                                                                                                                           
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00                                                                                                                                                                                                                                                                   
    inet 127.0.0.1/8 scope host lo                                                                                                                                                                                                                                                                                          
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                              
    inet6 ::1/128 scope host                                                                                                                                                                                                                                                                                                
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                              
2: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000                                                                                                                                                                                                                               
    link/ether 54:04:a6:da:99:7a brd ff:ff:ff:ff:ff:ff                                                                                                                                                                                                                                                                      

systemctl status dhcpcd.service

dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
   Active: active (running) since Mon 2014-03-24 16:12:28 CET; 6min ago
  Process: 410 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
 Main PID: 570 (dhcpcd)
   CGroup: /system.slice/dhcpcd.service
           └─570 /usr/bin/dhcpcd -q -b

Mar 24 16:12:28 defiance dhcpcd[410]: forked to background, child pid 570
Mar 24 16:12:28 defiance systemd[1]: Started dhcpcd on all interfaces.
Mar 24 16:12:28 defiance dhcpcd[570]: enp3s0: waiting for carrier
Mar 24 16:12:31 defiance dhcpcd[570]: enp3s0: carrier acquired
Mar 24 16:12:31 defiance dhcpcd[570]: DUID 00:01:00:01:1a:9c:ca:23:54:04:a6:da:99:7a
Mar 24 16:12:31 defiance dhcpcd[570]: enp3s0: IAID a6:da:99:7a
Mar 24 16:12:31 defiance dhcpcd[570]: enp3s0: soliciting an IPv6 router
Mar 24 16:12:31 defiance dhcpcd[570]: enp3s0: rebinding lease of 192.168.1.3
Mar 24 16:12:31 defiance dhcpcd[570]: control command: dhcpcd -4qL -t 30 enp3s0
Mar 24 16:12:31 defiance dhcpcd[570]: enp3s0: carrier lost

journalctl -u netctl@my_network
Outputs up to and including 19 march

Mar 19 13:01:32 defiance network[408]: Starting network profile 'my_network'...
Mar 19 13:01:35 defiance network[408]: Started network profile 'my_network'
Mar 19 13:01:35 defiance systemd[1]: Started A basic dhcp ethernet connection.
Mar 19 23:47:51 defiance systemd[1]: Stopping A basic dhcp ethernet connection...
Mar 19 23:47:51 defiance network[4736]: Stopping network profile 'my_network'...
Mar 19 23:47:51 defiance network[4736]: Stopped network profile 'my_network'
Mar 19 23:47:51 defiance systemd[1]: Stopped A basic dhcp ethernet connection.

Then it outputs

Mar 20 06:57:27 defiance network[409]: Starting network profile 'my_network'...
Mar 20 06:57:30 defiance network[409]: chmod: cannot access ‘/run/dhcpcd-enp3s0.pid’: No such file or directory
Mar 20 06:57:30 defiance network[409]: Failed to bring the network up for profile 'my_network'
Mar 20 06:57:30 defiance systemd[1]: netctl@my_network.service: main process exited, code=exited, status=1/FAILURE
Mar 20 06:57:30 defiance systemd[1]: Failed to start A basic dhcp ethernet connection.
Mar 20 06:57:30 defiance systemd[1]: Unit netctl@my_network.service entered failed state.
...
...
Mar 24 16:12:27 defiance systemd[1]: Starting A basic dhcp ethernet connection...
Mar 24 16:12:27 defiance network[408]: Starting network profile 'my_network'...
Mar 24 16:12:31 defiance network[408]: chmod: cannot access ‘/run/dhcpcd-enp3s0.pid’: No such file or directory
Mar 24 16:12:31 defiance network[408]: Failed to bring the network up for profile 'my_network'
Mar 24 16:12:31 defiance systemd[1]: netctl@my_network.service: main process exited, code=exited, status=1/FAILURE
Mar 24 16:12:31 defiance systemd[1]: Failed to start A basic dhcp ethernet connection.
Mar 24 16:12:31 defiance systemd[1]: Unit netctl@my_network.service entered failed state.

the my_network file (has not changed since I installed arch linux)

Interface=enp3s0
Connection=ethernet
IP=dhcp 
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=stateless

I then run$ ip link set dev enp3s0 up

and the network is up and running, I can read the news, enter this post and everything else .

It is a bit of a drag having to bring the network card up manually everytime, I even re did the install network again it worked ONCE, then back to not starting again.
The problem is that it does not bring up the card, and I do not see how to fix this. Everything that I find is for wireless, this this is for wired network.

I have been banging my head on this for days now, and I can't find a solution (maybe it passed me right by).

If there is some output missing, let me know and I will add it.

Last edited by NeoKuffs (2014-03-24 16:11:04)

Offline

#2 2014-03-24 15:41:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Arch linux does not bring up the network card at boot (wired)

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

Last edited by karol (2014-03-24 15:42:23)

Offline

#3 2014-03-24 17:15:52

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Arch linux does not bring up the network card at boot (wired)

According to the Beginners Guide If you want to use the dhcpd service
through systemd you don't need a network management service, just enabling dhcpd.service should do the trick.
Also using two services at the same time for this usually will not work. Either it is dhcpd or netctl.

Offline

Board footer

Powered by FluxBB