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
caibeierAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
alextoftConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.