linux set ip address static code example
Example 1: static ip debian
#Add this to /etc/network/interfaces
iface eth0 inet static
address 192.xxx.xx.x
netmask 255.255.xxx.xxx
gateway 192.168.xx.xxx
Example 2: linux set ip static
ip address add 172.16.251.1/24 brd + dev wlan0:0