i managed to do it,
first we need to go to “/etc/default/networking” and change the parameter “CONFIGURE_INTERFACES” to “no”
CONFIGURE_INTERFACES=no
then the configuration in “/etc/network/interfaces” works.
auto eth0
iface eth0 inet static
address 192.168.1.180
netmask 255.255.255.0
gateway 192.168.1.1