How to set the default static route gateway in router ?

Posted on 2009-07-04
Last Modified: 2012-08-14
How to set the default static route gateway in router ?
Can we set like 'ip default-gateway <ip address> in router? Thanks!
Question by:beer9
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 24777213
What kind of router?

Assisted Solution

jfer0x01 earned 100 total points
ID: 24777280

if it's cisco


ip default-gateway x.x.x.x

where the x.x.x.x ip is the next jump to either your ISP or the next device you need to reach



Author Comment

ID: 24777384
yes it is cisco router, I am thinking we can also set the default route like this

ip route x.x.x.x

where the x.x.x.x ip is the next jump to either your ISP or the next device you need to reach

Which one is better ?
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!


Accepted Solution

BinarySvant earned 150 total points
ID: 24777754
The preferred way to do this is the following:

Example: ISP address is

Connect to the router via console or telnet

router> enable
router# config t
router-conf# ip route
Obviously replace with your ISP's address.


Expert Comment

ID: 24781958
This (ip route x.x.x.x) is better.

Author Closing Comment

ID: 31599782
Thank you! :-)

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Changing the default VLAN on a Cisco switch? 9 69
Application timeout 4 46
SonicPoint N2 will not provision on SonicWall NSA220 4 20
NFS v4 7 23
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Internet Business Fax to Email Made Easy - With  eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question