Static IP setting issue for Ethernet in pocket beagle bone


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( 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 netmask

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
auto eth0
iface eth0 inet static
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”.