/etc/dhcpcd.conf に次を加えるArch Linux 側interface eth0/etc/rc.local
static ip_address=192.168.0.13/24
ifup eth0/etc/resolv.confnameserver 8.8.8.8SSH サーバー# systemctl start ssh ヘッドレスで ssh をスタートさせるには、/boot に、ssh という名前のファイルを置く。A security update for Raspbian PIXELIf you want to enable SSH, all you need to do is to put a file called ssh in the /boot/ directory. The contents of the file don’t matter: it can contain any text you like, or even nothing at all. When the Pi boots, it looks for this file; if it finds it, it enables SSH and then deletes the file.
/etc/netctl/profileDescription='A basic static ethernet connection'起動
Interface=enp3s0f2
Connection=ethernet
IP=static
Address=('192.168.0.10/24')
# netctl start profile もし、RTNETLINK answers: File exists というエラーが出たらEnable packet forwarding# ip addr flush dev enp3s0f2# sysctl net.ipv4.ip_forward=1Enable NAT
# iptables -t nat -A POSTROUTING -o wlp2s0 -j MASQUERADEルーティング (参考)
# iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
# iptables -A FORWARD -i enp3s0f2 -o wlp2s0 -j ACCEPT
$ netstat -r Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default pocketwifi.home 0.0.0.0 UG 0 0 0 wlp2s0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp3s0f2 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp2s0