LoginSignup
0
1

More than 5 years have passed since last update.

petalinux / microzed > R. DHCPクライアントの起動解除 / デフォルトIP指定

Last updated at Posted at 2016-07-11
動作環境
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
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1