Debian / Ubuntu Linux Setting a Default Gateway last updated October 18, 2008 in Categories Debian / Ubuntu, Hardware, Linux, Networking, Ubuntu LinuxQ. How do I setup a default gateway on Debian or Ubuntu Linux? My router IP is 192.168.1.254 and I’d like to setup this as a default gateway for Debian Linux.