8.2. Adding a route with the new ip tools

In the previous section we spoke about listing the routing table and what the basics of that listing meant. Well, luckily the output is very similar to the syntax that you would use to implement that exact routing table on your own.

ip route add 207.149.43.62 dev eth0  scope link
ip route add 207.149.43.0/24 dev eth0 proto kernel scope link src 207.149.43.62
ip route add 127.0.0.0/8 dev lo  scope link
ip route add default via 207.149.43.1 dev eth0

As you can see the output and input are almost exact except for the adding of the ip route add in front of the line.

Note: We are aware that the documentation on Routing with 2.2 is sorely lacking. In fact, I think EVERYONE is aware of it. If you have any experience in this please contact us at poet@linuxports.com we would like to get information you have to help further document this.