# iproute2 for Python?

**URL:** <https://community.unix.com/t/iproute2-for-python/290216>\
**Category:** Programming\
**Created:** [June 21, 2011, 9:36pm UTC](https://community.unix.com/t/iproute2-for-python/290216 "2011-06-21T21:36:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjinno](https://community.unix.com/letter_avatar/jjinno/32/6_22734026db12803ebb3e059622ac3534.png) [@jjinno](https://community.unix.com/u/jjinno)\
**Post date:** [June 21, 2011, 9:36pm UTC](https://community.unix.com/t/iproute2-for-python/290216/1 "2011-06-21T21:36:51Z")

</div>

I have seen a lot of [IPv4/IPv6 address manipulation libraries](http://code.google.com/p/ipaddr-py/) but I have yet to see a library allowing you to manipulate the interfaces/addresses/routes.

Anybody else have any experience finding an iproute2 equivalent for Python?

My basic requirements are the ability to add/remove addresses, modify labels, add/remove routes, and modify MTU. The rest (as if what I asked for is cake) is just a bonus.

---

<div class="post-metadata">

**Author:** ![DGPickett](https://community.unix.com/letter_avatar/dgpickett/32/6_22734026db12803ebb3e059622ac3534.png) [@DGPickett](https://community.unix.com/u/DGPickett)\
**Post date:** [June 22, 2011, 9:09am UTC](https://community.unix.com/t/iproute2-for-python/290216/2 "2011-06-22T09:09:30Z")

</div>

It is open source, can python call dynamic libs like PERL or must it exec commands? [Index of /dev/iproute2/download](http://devresources.linuxfoundation.org/dev/iproute2/download/)
