I am trying to get a static IP configured on my new Arch system running on the RPi2. I stop/disable DHCP on the Arch host:
$this->bbcode_second_pass_code('', 'systemctl stop dhcpcd.service && systemctl disable dhcpcd.service')
I then created a 'ethernet-static' profile under /etc/netctl as follows:
$this->bbcode_second_pass_code('', '[root@arch netctl]# pwd
/etc/netctl
[root@arch netctl]# cat ethernet-static
Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.1.23/24')
Gateway='192.168.1.1'
DNS=('192.168.1.1')')
I then enabled the profile as follows:
$this->bbcode_second_pass_code('', 'netctl enable ethernet-static')
When I reboot the system, I still have the random IP issued via DHCP. The system is not honoring my static IP configuration and I don't know why. Can anyone please assist me in locating the problem? I have verified that my interface is in fact eth0 and not named something else:
$this->bbcode_second_pass_code('', '[root@arch netctl]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether c9:13:eb:z3:12:c9 brd ff:ff:ff:ff:ff:ff')
When I review the logs, I see:
$this->bbcode_second_pass_code('', '[root@arch netctl]# netctl status ethernet-static
* netctl@ethernet\x2dstatic.service - A basic static ethernet connection
Loaded: loaded (/etc/systemd/system/netctl@ethernet\x2dstatic.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:09 UTC; 21min ago
Docs: man:netctl.profile(5)
Process: 192 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 192 (code=exited, status=1/FAILURE)
Jan 01 00:00:09 arch systemd[1]: Starting A basic static ethernet connection...
Jan 01 00:00:09 arch network[192]: Starting network profile 'ethernet-static'...
Jan 01 00:00:09 arch network[192]: The interface of network profile 'ethernet-static' is already up
Jan 01 00:00:09 arch systemd[1]: netctl@ethernet\x2dstatic.service: Main process exited, code=exited, status=1/FAILURE
Jan 01 00:00:09 arch systemd[1]: Failed to start A basic static ethernet connection.
Jan 01 00:00:09 arch systemd[1]: netctl@ethernet\x2dstatic.service: Unit entered failed state.
Jan 01 00:00:09 arch systemd[1]: netctl@ethernet\x2dstatic.service: Failed with result 'exit-code'.')
Anyone know how I can fix this mess and have a consistent IP upon reboot?