Skip to content

Categories:

Setting up Thomson SpeedTouch 546v6 in bridge

Why would I bridge my SpeedTouch modem you say? Personally it’s due to the annoying fact that the network gets unstable if I don’t do it. The device(s) (I’ve had multiple modems, different vendors) simply can’t hold the network stress on my network. Bridging my SpeedTouch modem lets it only having to deal with communicating towards the DSLAM and forwarding packets as a dummy device to my other router which is capable of dealing with routing traffic on my local network. For this purpose, I got a Linksys WRT54G router running with Tomato firmware which gives me a handful of nice features. Read more to see how I did it…

I found a good post on the ngtforum.net by the user Dyneslott which tells you which commands you have to enter at the SpeedTouch’s console to setup a bridge between your router and SpeedTouch modem.

Connect your computer to the SpeedTouch’s LAN switch. I recommend reseting your device before you start, as this resets any weird settings you might have enabled on the device and reverts its settings back to either ISP’s or SpeedTouch default settings for the modem. You do this with pushing and holding down the reset button while you power-on the device and wait until the device enters “kernel mode”. (indicated with normally 1 green and 1 red light (blinking if I remember correctly) after approximate 10-15 seconds after you powered on the device).

SpeedTouch 546, behind.

Do a simple

route (linux)
ipconfig /all (windows)

Fetch your device’s IP address by looking at the default gateway. (this should be your device as long as you are directly connected to your device. If you go thru another switch or something, make sure you don’t have any other DHCP servers running from other routers which might give you other networking details and points you to another device instead ;-) )

In my situation with Nextgentel, the default IP address is 10.0.0.1 for my SpeedTouch modem. SpeedTouch’s default IP address is normally 192.168.1.1.

Telnet into your SpeedTouch:

telnet 10.0.0.1
Username: Administrator
Password: <blank> (nothing)
(should be the default password on the device if you haven’t changed it.  Resetting the device should get you back to the default password if it doesn’t work.
NB: Regarding changing user password, keep this in mind:
I was advised by a tech that there’s a problem in the Wizard setup built into the new modems firmware. During the setup when you get to the Admin name / password area, for the administrator username and password put “Administrator” as the user name and leave the password blank. He said that no matter what password you put in it, it gets screwed up and saved as something different.” (source) .
My advise is to create a new user and simply change it’s password over the telnet interface and delete the default Administrator account.

After we’re in, we want to run these commands:

ppp relay flush
eth flush
atm flush
ppp flush
atm phonebook flush
saveall
  • Flushes/Removes any configuration about any PPP interface (used to “dial up” to your provider)
  • Flushes/Removes any ethernet (LAN-switch), atm (DSL/WAN), PPP (“dial up” configurations) on your device.
  • Saves the state to the config, so it survives a reboot of the modem.
atm phonebook add name=BrPPPoE_ph addr=1.33
In Norway, the default VPI/VCI is normally 1.33 etc. Nextgentel table is:
  • VPI=0, VCI=100, PPPoA VC MUX
  • VPI=1, VCI=32, PPPoA VC MUX
  • VPI=8, VCI=35, PPPoA VC MUX
  • VPI=1, VCI=33, PPPoE VC MUX
  • VPI=8, VCI=35, PPPoE VC MUX

In short VPI/VCI simply is routing information for your ISP on how to forward packages between their ATM switches. Read more about VPI/VCI on Wikipedia. If you don’t know your VPI/VCI settings, you could find this either by contacting your ISP,  maybe find it in this list or by setting up your router according to your ISP’s instructions and then fetch the details from the modem. (protip: atm phonebook list in SpeedTouch’s console).

  • Setting up a WAN/ATM’s configuration towards your DSLAM with the name “BrPPPoE_ph”.
  • You might be required to setup the ATM  configuration with more details, like which protocol encapsulation it  should use on the ATM interface etc. See  “help ifconfig” for all the  properties.
atm ifadd intf=BrPPPoE_atm
  • Adding an ATM interface with the name “BrPPPoE_atm”.

atm ifconfig intf=BrPPPoE_atm dest=BrPPPoE_ph ulp=mac

  • Configuring up the ATM interface to use the configuration you just setup under “BrPPPoE_ph” (atm phonebook configuration, contains the configuration for your VPI/VCI, etc)
atm ifattach intf=BrPPPoE_atm
  • Attaching/Enabling the interface “BrPPPoE_atm”
eth bridge ifadd intf=BrPPPoE_br
  • Adding an ETH(ernet) interface under the name “BrPPPoE_br”
eth bridge ifconfig intf=BrPPPoE_br dest=BrPPPoE_atm
  • Configuring Ethernet interface “BrPPPoE_br” to forward packages between itself and BrPPPoE_atm interface.
eth bridge ifattach intf=BrPPPoE_br
  • Attaching/Enabling the interface “BrPPPoE_br”  - Bridge should now be enabled.
saveall

 

  • Saves the configuration to the device, so it survives a cold reboot of the modem.


Here’s a quick copy/paste friendly version:

ppp relay flush
eth flush
atm flush
ppp flush
atm phonebook flush
saveall
atm phonebook add name=BrPPPoE_ph addr=1.33
atm ifadd intf=BrPPPoE_atm
atm ifconfig intf=BrPPPoE_atm dest=BrPPPoE_ph ulp=mac
atm ifattach intf=BrPPPoE_atm
eth bridge ifadd intf=BrPPPoE_br
eth bridge ifconfig intf=BrPPPoE_br dest=BrPPPoE_atm
eth bridge ifattach intf=BrPPPoE_br
saveall

SpeedTouch modem should now be up and running in bridge mode, connect your DSL-line into the DSL/WAN-port (red port in the image above in the article) . Connect port 1 on the LAN switch to your router(in my case, Linksys WRT54G)’s WAN port.

My network topology now looks like this (ugly picture, but hey, it hopefully explains how I wired it all together):

Pro tip for Tomato users (Linksys WRT54G) to access your SpeedTouch device in another subnet then your local network:

Administration -> Scripts -> Init:

sleep 10

ip addr add 10.0.0.2/30 dev $(nvram get wan_ifname) brd +
Administration -> Scripts -> Firewall:

/usr/sbin/iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 10.0.0.0/30 -j MASQUERADE

I’m now able to reach my modem which is set in bridge thru my WRTG54G router. In other words, I can now ping from 192.168.X.0/24 towards 10.0.01 ;-)

Posted in /dev/random.

Tagged with , , , , , , , , , , , , , .

  • Nico

    Nice HowTo!

    For the last section, it was not working for me and I found that vlan2 was needed insead of vlan1 …

    It would be better easier to use in init:
    sleep 10
    ip addr add 10.0.0.2/24 dev $(nvram get wan_ifname) brd +

    and in firewall:
    /usr/sbin/iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 10.0.0.2/24 -j MASQUERADE

    (cf. http://tomatousb.org/forum/t-352790)

  • http://norrs.no/ norrs

    Good information indeed, as “wan_ifname” will points to the correct vlan which the wan-port is assigned to.

    Ex.
    Use “nvram export –dump” to list all the configs. grep after vlan and you’ll see that wan_ifname points to the correct interface.

    EDIT: According to use 30 or 24 bits of the ip address as the subnet mask is up to you. Since my modem is accessible under 10.0.0.1 I don’t see any reason for why I would have more access-IP’s available under that subnet then 2.

    I’ll update my blog post :-)

  • Dannyboyni

    I have followed your guide but im not having any luck.

    I am from the UK and I am using

    VPI=0, VCI=38, PPPoA VC Based

    My IP address is dynamic.

    My speedtouch has the ip 192.168.1.254 and my tomato router has 10.0.0.1

    Could you please give me advice for my connection, many thanks.

  • halvors

    If i have an ATM connection to the ISP will this deliver a Ethernet connection (PPPoE) to the secund (end of bridge) router? :)

  • Nathan

    I have speedtouch 585. my ISP has VPI/VCI as 0 and 30. But my speedtouvh has onlyassigned vpi/vci. How to change the values