How can I set up a static IP on my Arch Linux installation so I can easily SSH in?
I followed this thread, but I could not get the static IP I set to work! Here's my /etc/netctl/eth0
file:
Description='A simple ethernet connection using a static IP'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.1.5/24')
Can anyone see what my problem is and/or point/give me to a good tutorial on how to set this up?
DHCP isn't a huge problem, just a little slower, because I have to look up the IP via the router.
EDIT: Trying @syb0rg's solution:
I worked through the solution up to the netctl start eth0
part, and then it threw an error:
$ sudo netctl start eth0
Job for netctl@eth0.service failed. See 'systemctl status netctl@eth0.service' and 'journalctl -xn' for details.
$ systemctl status netctl@eth0.service
netctl@eth0.service - Networking for netctl profile eth0
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: failed (Result: exit-code) since Wed 1969-12-31 19:12:12 EST; 21s ago
Docs: man:netctl.profile(5)
Process: 316 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 316 (code=exited, status=1/FAILURE)
journalctl -xn
-- Logs begin at Wed 1969-12-31 19:00:32 EST, end at Wed 1969-12-31 19:10:43 EST
Dec 31 19:08:49 ArchPiServer systemd[294]: Stopped target Sound Card.
-- Subject: Unit UNIT has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aa
--
-- Unit UNIT has finished shutting down.
Dec 31 19:08:49 ArchPiServer systemd[294]: Starting Default.
-- Subject: Unit UNIT has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit UNIT has begun starting up.
Dec 31 19:08:49 ArchPiServer systemd[294]: Reached target Default.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit UNIT has finished starting up.
--
-- The start-up result is done.
Dec 31 19:08:49 ArchPiServer systemd[294]: Startup finished in 830ms.
-- Subject: System start-up is now complete
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- All system services necessary queued for starting at boot have been
-- successfully started. Note that this does not mean that the machine is
-- now idle as services might still be busy with completing start-up.
--
-- Kernel start-up required KERNEL_USEC microseconds.
--
-- Initial RAM disk start-up required INITRD_USEC microseconds.
--
-- Userspace start-up required 830163 microseconds.
Dec 31 19:10:43 ArchPiServer sudo[301]: pam_unix(sudo:account): account server-g
What gives?