Static IP address for eth0


#1

I need to Raspberry Piaware 3.0.4 with a static IP address for eth0. If I do it in a known manner in the / etc / network / interfaces:

"auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.2.105
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.254

  1 metric "

so after a reboot interfaces rewrites as follows:

"# Automatically Generated by fa_config_generator

This file will be overwritten on reboot.

auto lo
iface lo inet loopback

iface eth0 inet dhcp
1 metric "

and Rapsberry has once again address for DHCP.

Can you help me ? I am sorry for my bad English.


#2

You need to configure this in /boot/piaware-config.txt for a Piaware 3. You can edit the file directly, or you can use piaware-config to update the settings e.g. “piaware-config wired-type static”.

You need to set:

wired-type static
wired-address 192.168.2.105
wired-netmask 255.255.255.0
wired-broadcast 192.168.2.255
wired-gateway 192.168.2.254

See flightaware.com/adsb/piaware/ad … figuration

After changing the settings, reboot the Pi.


#3

Success, thank you very much !