I have a box with Ubuntu Linux and I want to add new route to my box. Because I want to access external network from a different interface and network. How can I add new route to my Ubuntu, Debian, Fedora, Cent-OS Linux box? Because ip-tools is the same for all of this Linux distributions.
First we should display existing routing table. Our target network should not intersect existing routing information.
In the 1st part of the IP Routing series, we learned the fundamentals of Linux IP Routing. Route command is used to show/manipulate the IP routing table. It is primarily used to setup static routes to specific host or networks via an interface. In this article we will see how to manipulate the. Jun 17, 2013 - The following command routes 80.237.246.185 through gateway 192.168.0.1: ip route add 80.237.246.185 via 192.168.0.1. An equivalent.
Display Existing Routing Table
We can see that there is a default route which is listed in the first line. It also named as default . The default gateway IP address is 192.168.142.2
In order to add new route we will use ip route add command by providing related information. We will add new route to the 172.16.0.0/16 network.
› Why Do Noise Canceling Headphones Hurt My Ears?
› Do You Really Need Antivirus For Your Smart TV?
› How to Fix a Black Screen After Updating Windows 10
› How to Use the Linux cat and tac Commands
› How to See Which Apps Are Using Your Webcam on Windows 10