# routing

**URL:** <https://forums.digi.com/t/routing/5663>\
**Category:** NET+OS\
**Created:** [November 27, 2006, 9:00am UTC](https://forums.digi.com/t/routing/5663 "2006-11-27T09:00:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchobanski](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@tchobanski](https://forums.digi.com/u/tchobanski)\
**Post date:** [November 27, 2006, 9:00am UTC](https://forums.digi.com/t/routing/5663/1 "2006-11-27T09:00:54Z")

</div>

Hi,

can anyone say my, how to get, add/set and delete a route in NetOS 6.3

I try the following:  
to get the route  
ip\_route\_tbl \*route\_table ;  
ip\_get\_routing\_table(route\_table);

to set the route  
ip\_add\_static\_route(devname, daddress, subnet, gateway, cost, mode);

but this not work really.  
has anyone an example or so?

Ciao  
Rosko

---

<div class="post-metadata">

**Author:** ![Adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Adrian](https://forums.digi.com/u/Adrian)\
**Post date:** [November 28, 2006, 7:27pm UTC](https://forums.digi.com/t/routing/5663/2 "2006-11-28T19:27:48Z")

</div>

p\_add\_static\_route(devname, daddress, subnet, gateway, cost, mode);

should work. This is what I am using to define a gateway.  
device should be “eth0”
