• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to set default gateway

I have a lan at home with a Linksys
Wireless-G Broadband Router. To get to the Internet I have a Westell
DSL modem, wired with an ethernet cable to the Linksys router at
static IP address 192.168.1.1. Any computer on the local LAN can
activate the DSL router (i.e. get a DSL phone connection) by going to
192.168.1.1 with http, and can then get to the Internet by setting
a default gateway pointing to the DSL modem (e.g. route add default
gw 192.168.1.1). Most of my computers have a static IP address,
but the router is configured to handle DHCP requests from a range of
IP addresses. When on my Android I do Home > Settings > Wireless &
networks > Wi-Fi on, I can connect to my local LAN with the Android,
and it gets assigned an IP address, but to get it to the Internet I
need to tell it what DNS servers to use, and what the default gateway
is? How do I do that?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones