You are not logged in.

#1 2013-06-14 23:16:18

kfrance
Member
From: Provo Utah
Registered: 2008-06-28
Posts: 14

[SOLVED] netctl not bringing up my network at boot

I recently converted from netcfg to netctl and but my network is not coming up ever at boot time. Once the machine is booted I can bring it up manually using

netcfg start ethernet-static

It is obviously an static IP address and I copied the netctl sample script and then modified it. Here is my ethernet-static profile.


Description='A basic static ethernet connection'
Interface=enp2s0
Connection=ethernet
IP=static
Address=('192.168.0.5/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.0.1'
DNS=('192.168.0.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'

The output of journalctl -d | grep net is the following

un 14 08:40:03 kfrance-home kernel: Initializing cgroup subsys net_cls
Jun 14 08:40:03 kfrance-home kernel: audit: initializing netlink socket (disabled)
Jun 14 08:40:03 kfrance-home kernel: drop_monitor: Initializing network drop monitor service
Jun 14 08:40:03 kfrance-home systemd[1]: Expecting device sys-subsystem-net-devices-enp2s0.device...
Jun 14 08:40:03 kfrance-home kernel: r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
Jun 14 08:40:03 kfrance-home kernel: microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
Jun 14 08:40:03 kfrance-home systemd-udevd[171]: renamed network interface eth0 to enp3s0
Jun 14 08:40:03 kfrance-home systemd-udevd[168]: renamed network interface eth0 to enp2s0
Jun 14 08:40:07 kfrance-home network[253]: Starting network profile 'ethernet-static'...
Jun 14 08:40:12 kfrance-home network[253]: No connection on interface 'enp2s0'
Jun 14 08:40:12 kfrance-home network[253]: Failed to bring the network up for profile 'ethernet-static'
Jun 14 08:40:12 kfrance-home systemd[1]: netctl@ethernet\x2dstatic.service: main process exited, code=exited, status=1/FAILURE
Jun 14 08:40:12 kfrance-home systemd[1]: Failed to start A basic static ethernet connection.
Jun 14 08:40:12 kfrance-home systemd[1]: Unit netctl@ethernet\x2dstatic.service entered failed state.
Jun 14 08:47:53 kfrance-home sudo[1300]: kfrance : TTY=pts/1 ; PWD=/home/emily ; USER=root ; COMMAND=/usr/bin/netctl start ethernet-static
Jun 14 08:47:53 kfrance-home systemd[1]: Starting A basic static ethernet connection...
Jun 14 08:47:53 kfrance-home network[1307]: Starting network profile 'ethernet-static'...
Jun 14 08:47:57 kfrance-home network[1307]: Started network profile 'ethernet-static'
Jun 14 08:47:57 kfrance-home systemd[1]: Started A basic static ethernet connection.

Nothing from netcfg, or any other network service, is leading to a conflict for configuring the network.

systemctl list-units  | grep net
netctl@e...2dstatic.service loaded active exited    A basic static ethernet connection
network.target              loaded active active    Network

I do have two ethernet ports but from what I can tell the naming of the two ports is consistent.

netctl status shows that my ethernet-static profile is the only profile and is active.

I know I could connect without using netctl but want to get this working. Any ideas?

Last edited by kfrance (2013-06-15 04:12:06)

Offline

#2 2013-06-15 04:11:13

kfrance
Member
From: Provo Utah
Registered: 2008-06-28
Posts: 14

Re: [SOLVED] netctl not bringing up my network at boot

I fixed the problem. I changed the device name of the ethernet device I wanted to use using an udev-rule, according to the notes on the Network Configuration wiki page, to make sure that it wasn't a naming conflict and that solved it.

Offline

Board footer

Powered by FluxBB