![]() ![]() ![]() In the above section, we saw how to add routes in Linux. If you want to add a route to the network 198.161.1.0 through gateway 192.168.206.1, you can execute the following command. You can list the current routing table as follows. ![]() In order to add a static route temporarily on your Linux machine, you can use either route or ip command. The first command is the old traditional route add and second is the IP route command.Įarlier we learned how to route add in Linux, in this tutorial, here I will show you how to add permanent static routes in Linux distributions such as Centos and Ubuntu. Basically two commands are used in Linux to add routes. Static routing is the process of manually entering the routes to the routing table to reach a particular destination.
0 Comments
Leave a Reply. |