# IP Routing table - RTNETLINK - sockets

**URL:** <https://www.ruby-forum.com/t/ip-routing-table-rtnetlink-sockets/82827>\
**Category:** Ruby\
**Created:** [January 21, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/ip-routing-table-rtnetlink-sockets/82827 "2007-01-21T16:30:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@bobk](https://www.ruby-forum.com/u/bobk)\
**Post date:** [January 21, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/ip-routing-table-rtnetlink-sockets/82827/1 "2007-01-21T16:30:37Z")

</div>

I wish to manipulate the routing table in Linux without having to make  
system calls out to ‘route’. I know that in C this can be done by using  
a socket and RTNETLINK. How can I accomplish this in Ruby?

This is for an embedded application, so I don’t want to drag in lots of  
libraries.
