[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 599
  • Last Modified:

Manually change routing table in linux

Hi, how do I manually change the content of routing table in Linux? (for example,  I want to change current default gateway to another gateway connected to my network)

Thanks for help
0
caibeier
Asked:
caibeier
1 Solution
 
alextoftCommented:
route add default gw 123.123.123.123

0
 
caibeierAuthor Commented:
Thanks for help.  what is the difference between command "route" and "ip route"? why didn't you use "ip route"? are they interchangable?

Thanks again
0
 
jar3817Commented:
Yes they're interchangable. the "ip" command is a replacement for some older utilities like router and ifconfig, but they all do the same thing. Check out the man page for route to see all the options.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now