What is default gateway -linux

In this article let’s discuss about What is default gateway -linux. Let’s go through the following methods without any delay.

Method 1:

sk@sk:~$ ip route show
default via dev eth1  proto static dev eth1  proto kernel  scope link  src  metric 1

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

ip route add default gw {IP-ADDRESS} {INTERFACE-NAME}

Hope the above solution works.

Realted Posts : How to install jupyter notebook ubuntu