archlinux-logo-dark-1200dpi.b42bd35d5916-450x150

Arch Linux defaults to DHCP on a new install. This guide will walk you through the steps need to configure a static IP interface for your Arch Linux install.

  1. Create the interface config file in “/etc/netctl/”. Either use the sample file in “/etc/netctl/examples/” as a base or create one from scratch. We’ll create a new file for this walkthrough.

#cd /etc/netctl<br /> #vi eth0

The lines below go into the file.

Description='eth0'<br />
Interface=eth0<br />
Connection=ethernet<br />
IP=static<br />
Address='192.168.1.201/24'<br />
Gateway='192.168.1.1'<br />
DNS='192.168.1.40'<br />
Broadcast='192.168.1.255'
  1. Enable the new interface.
    #netctl enable eth0

  2. Start the new interface or reboot.
    #netctl start eth0