Thursday, December 17, 2009

Tech stuff: adding a static route on a SpeedTouch ST716

iMark writes:
I have a network with a Thomson SpeedTouch router which is my default gateway. Next to this, I have another computer on the network which is a router for a secondary subnet (with virtual machines).

My problem: I want the SpeedTouch to automatically handle this route, however there is no option in the web interface (at least on my ISP's version) to add routes.

My solution: add a static route using the telnet interface. Just telnet to your router using the telnet command and use the rtadd option:

Connected to speedtouch.
Escape character is '^]'.
Username : root
Password : ********
------------------------------------------------------------------------

______ SpeedTouch 716
___/_____/\
/ /\ 6.2.29.2
_____/__ / \
_/ /\_____/___ \ Copyright (c) 1999-2007, THOMSON
// / \ /\ \
_______//_______/ \ / _\/______
/ / \ \ / / / /\
__/ / \ \ / / / / _\__
/ / / \_______\/ / / / / /\
/_/______/___________________/ /________/ /___/ \
\ \ \ ___________ \ \ \ \ \ /
\_\ \ / /\ \ \ \ \___\/
\ \/ / \ \ \ \ /
\_____/ / \ \ \________\/
/__________/ \ \ /
\ _____ \ /_____\/
\ / /\ \ /___\/
/____/ \ \ /
\ \ /___\/
\____\/

------------------------------------------------------------------------
_{root}=>ip
{root}[ip]=>rtadd
dst = 172.17.2.0
[dstmsk] = 255.255.255.0
[label] =
[gateway] = 172.16.48.2
[intf] = LocalNetwork
[srcintf] =
[metric] =
:ip rtadd dst=172.17.2.0/24 gateway=172.16.48.2 intf=LocalNetwork
{root}[ip]=>saveall

TIP: backspace in the CLI is Ctrl-H.
Now you are ready to test the new route from your workstation. Using ping on the commandline, you can see the route's effect through the redirect messages (at least on Linux):

root@obelix:~ # ping 172.17.2.91
PING 172.17.2.91 (172.17.2.91) 56(84) bytes of data.
64 bytes from 172.17.2.91: icmp_seq=1 ttl=63 time=1.24 ms
From 172.16.48.254: icmp_seq=1 Redirect Host(New nexthop: 172.16.48.2)

Happy networking!

2 comments:

remontismeta.ru said...

The chap is absolutely just, and there is no question.

www.cocinas.tv said...

Thank you for the post, really useful data.