ST780 WAN through LAN

I managed to get hands on a SpeedTouch 780 ADSL2+ modem that has 4 LAN ports, USB, DSL, 2 ATA and PSTN port. I was very intrigued by this device mostly for its ATA ports, because I wanted to use it for my telephone setup.

Unfortunately, I do not have ADSL connectivity at my home, only Wimax, which is connected through a Power over Ethernet device and a LAN cable. Therefore I was trying to find out, if ST780 can connect to internet through one of it’s LAN ports.

Turns out that it can, only one LAN port (only possible on ports 2 through 4) has to be reconfigured to WAN port, which has to be done over CLI (telnet interface). Following configuration is taken from here and parsed to be copy-paste into CLI (typing it was a bit pain, because my terminal did not support backspace nor delete).

For firmware 6.1 and up.

First, to start CLI, you need telnet. Depending on your OS, this can be different, but basically start your favorite terminal (Konsole, cmd.exe, etc) and type:

telnet 192.168.1.254

Then paste the following to clean up all interfaces:

 :ppp relay flush
 :ppp flush
 :eth flush
 :atm flush
 :atm phonebook flush

Now we delete current configuration for port 4:

 :eth bridge ifdelete intf=ethport4

And then create a WAN ethernet interface:

 :eth ifadd intf=eth_wan
 :eth ifconfig intf=eth_wan dest=ethif4
 :eth ifattach intf=eth_wan

Follow this up with IP interface:

 :ip ifadd intf=ip_wan_eth dest=eth_wan

If you need MAC cloning (e.g your cable modem is locked to your computer’s MAC), enter this line too (of course, change it to your computer’s MAC address):

:ip ifconfig intf=ip_wan_eth hwaddr=00:11:42:0c:65:1d

And bring up the interface:

 :ip ifconfig intf=ip_wan_eth status=up
 :ip ifattach intf=ip_wan_eth

We also enable NAT on that interface:

 :nat ifconfig intf=ip_wan_eth translation=enabled

Next we configure DCHP client on that port:

 :dhcp client ifadd intf=ip_wan_eth
 :dhcp client ifconfig intf=ip_wan_eth metric=5 dnsmetric=5
 :dhcp client rqoptions add intf=ip_wan_eth option=dhcp-lease-time
 :dhcp client rqoptions add intf=ip_wan_eth option=dhcp-renewal-time
 :dhcp client rqoptions add intf=ip_wan_eth option=dhcp-rebinding-time
 :dhcp client rqoptions add intf=ip_wan_eth option=subnet-mask
 :dhcp client rqoptions add intf=ip_wan_eth option=classless-static-routes
 :dhcp client rqoptions add intf=ip_wan_eth option=default-routers
 :dhcp client rqoptions add intf=ip_wan_eth option=classfull-static-routes
 :dhcp client rqoptions add intf=ip_wan_eth option=domain-name-servers
 :dhcp client ifattach intf=ip_wan_eth

Finally, save everything

:saveall

For backup purposes, you might desire copying the user.ini from the device:

ftp 192.168.1.254

fill in username and password, and get the user.ini:

cd dl
get user.ini

Now you should reset your router for it to acquire new IP address (thanks Abbas)

9 thoughts on “ST780 WAN through LAN

  1. Hi,

    I followed the steps and couldn’t have the expected result, would you kindly help to troubleshoot please?

    Here are the the steps:

    Another question, which mac addr do I have to put? modem’s one?

    Thanks,
    =============

    Username : Administrator
    Password :
    ————————————————————————

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

    ————————————————————————

    {Administrator}=>:ppp relay flush
    {Administrator}=>:ppp flush
    {Administrator}=>:eth flush
    {Administrator}=>:atm flush
    {Administrator}=>:atm phonebook flush
    {Administrator}=>:eth bridge ifdelete intf=ethport4
    {Administrator}=>:eth ifadd intf=eth_wan
    {Administrator}=>:eth ifconfig intf=eth_wan dest=ethif4
    {Administrator}=>:eth ifattach intf=eth_wan
    {Administrator}=>:ip ifadd intf=ip_wan_eth dest=eth_wan
    {Administrator}=>:ip ifconfig intf=ip_wan_eth status=up
    {Administrator}=>:ip ifconfig intf=ip_wan_eth hwaddr=00:14:7f:eb:d5:82
    {Administrator}=>
    {Administrator}=>
    {Administrator}=>:ip ifattach intf=ip_wan_eth
    {Administrator}=>:nat ifconfig intf=ip_wan_eth translation=enabled
    {Administrator}=>:dhcp client ifadd intf=ip_wan_eth
    {Administrator}=>:dhcp client ifconfig intf=ip_wan_eth metric=5 dnsmetric=5
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-lease-t
    ime
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-renewal
    -time
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=dhcp-rebindi
    ng-time
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=subnet-mask
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=classless-st
    atic-routes
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=default-rout
    ers
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=classfull-st
    atic-routes
    {Administrator}=>:dhcp client rqoptions add intf=ip_wan_eth option=domain-name-
    servers
    {Administrator}=>:dhcp client ifattach intf=ip_wan_eth
    {Administrator}=>
    {Administrator}=>
    {Administrator}=>
    {Administrator}=>:saveall
    {Administrator}=>

    ======================

    Result after that:

    C:>
    C:>ping yahoo.com

    Pinging yahoo.com [198.18.1.22] with 32 bytes of data:

    Reply from 192.168.1.254: Destination host unreachable.
    Reply from 192.168.1.254: Destination host unreachable.

    Ping statistics for 198.18.1.22:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    Control-C
    ^C
    C:>

    Like

    • First – the MAC address line is only needed if your ISP locks your connection to your MAC address (which some do) and is irrelevant otherwise. In such a case this MAC must that computer’s MAC that you can successfully connect with (and probably you should change your computer’s MAC afterwards so that no conflicts arise).
      If you put in your modem’s MAC, then you probably created some mess on that port (both ends with the same MAC etc).

      Best bet is to reset your configuration to factory settings and start over. If all is done, then you can verify that you get DHCP lease from upserver with dhcp client iflist command. And possibly renew the lease with dhcp client ifrenew ip_wan_eth

      In any case the ST780 manual can be helpful. Googling for Thomson ST780 CLI brought up this pdf.

      PS. I went over the post and tried to explain better what is going on. Hope this helps too.

      Like

    • I can’t really vouch for it as I abandoned my VoIP setup (mobile phone is enough for me), but I’d guess that VoIP lives on top of what ever connectivity is configured in the router and thus should work (as it is configured to send voice to VoIP servers by name, not by specific network interfaces).

      But you could always back up your current config and give it a try. And keep us posted of your results.

      Like

  2. Hi,

    Just wanted to thank you for posting this. I used this setup for over a year with no problems, since I upgraded to VDSL and I could no longer use the ST780 as a VoIP+modem combo, I wanted to use it as VOIP only.

    Sometimes when my internet connection disconnects the ST780 doesn’t realise it and doesn’t reconnect the VoIP, I have to reboot it. That is my only problem with the setup.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s