Unix: Getting from here to there (routing basics)

You need to understanding routing tables if you're going to do any kind of network troubleshooting. Let's take a look at what Linux commands can tell you about how your system is making connections.

By  

Using a command such as this one, you would redirect connections to a system you don't want to permit to your loopback interface.

# route add 66.55.44.33 gw 127.0.0.1 lo

To reverse this, you would do this:

# route delete 66.55.44.33

You could also do block connections to a particular system or subnet using a command such as these:

# route add -host 66.55.44.33 reject
# route add -net 66.55.44.0/24 reject

Wrap Up

Managing routing configuration on Linux systems is relatively easy, but a good handle on what the basic commands can tell you and do for you is essential.

Read more of Sandra Henry-Stocker's Unix as a Second Language blog and follow the latest

href="http://www.itworld.com/news">IT news

at ITworld, Twitter and Facebook.

Photo Credit: 

flickr / Ramkarthikblogger

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Ask a Question