Static IP setting issue for Ethernet in pocket beagle bone

Dear,

I am working with Pocket beagle bone debian 9.2 version, i have interfaced Wiznet W5500 Ethernet IC with SPI1 of PBB.
I would like to set IP as static(192.168.3.213) but the PBB is taking IP as Dynamic for every reboot.

For setting IP as static, I followed the below procedure.

  1. sudo ifconfig eth0 192.168.3.213 netmask 255.255.255.0

with the above command it happend to set IP but after reboot again PBB is taking IP as Dynamic.

  1. I have modified below file
    /etc/network/interfaces
auto eth0
iface eth0 inet static
    address 192.168.3.213
    netmask 255.255.255.0
After changing the file, i have rebooted the PBB but still it is not modified IP as Static.PBB is taking IP as Dynamic
Can any one help on the above.
Thanks in advance.

Think Conman

What exactly you want to tell with “Think conman”.