動作環境
PetaLinux 2014.4
MicroZed
2014年の自分のメモより。
PetaLinuxではデフォルトでDHCPクライアントが起動するようになっている。
DHCPクライアントの起動を解除するには以下の変更をする。
build/linux/rootfs/targetroot/etc/network/interfaces ファイルの以下の行をコメントアウトする
auto eth0
iface eth0 inet dhcp
同じファイルにおいて起動時のデフォルトIPアドレスを指定できる
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.111
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.11 192