View Routing Table and Change your default Gateway

netstat -nr is the command which will provide you the contents of the routing table.

Output:

How to Change Your Default Gateway?

You will need to update your /etc/sysconfig/network file to reflect the change. This file is used to configure your default gateway

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

One thought on “View Routing Table and Change your default Gateway

  1. Good day! I could have sworn I’ve been to your blog before but after going through some of the posts I realized it’s new to me.
    Nonetheless, I’m certainly pleased I stumbled upon it and I’ll be book-marking it and checking back frequently!

Leave a Reply