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 192.168.1.1 dev eth1  proto static 
192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.100  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