linux set ip code example
Example 1: new ip linux
Get new ip from DHCP (If not working, check your connection to router)
//Release ip
sudo dhclient -r [Interface name](optional)
//Renew ip
sudo dhclient [Interface name](optional)
Example 2: linux set ip static
ip address add 172.16.251.1/24 brd + dev wlan0:0