Find the interface you want using either command: netstat -iifconfigUpdate the interface with your config (in this example eth0): sudo ifconfig eth0 10.1.1.6 netmask 255.255.255.0Now set the default gateway using the following command (same interface as before): sudo