add gateway from command line ifconfig route route add default gw 192.168.1.1 route add default gw 192.168.1.1