Debian / Ubuntu Linux Setting a Default Gateway in Categories Debian / Ubuntu, Hardware, Linux, Networking, Ubuntu Linux last updated October 18, 2008Q. 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.