PPPoA ISP connection ->Speedtouch 546 modem ->WRT54GL

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
nldirkz1
DD-WRT Novice


Joined: 11 Feb 2009
Posts: 4

PostPosted: Wed Feb 11, 2009 21:13    Post subject: PPPoA ISP connection ->Speedtouch 546 modem ->WRT54GL Reply with quote
I have been trying to figure out how to transfer my external IP address obtained from my ISP to the WRT54GL router, so I can try the next step and setup a VPN connection. I am struggeling (already) with part one and getting lost in the "world of networking" browsing the forum and wiki Sad

I live in the Netherlands and I have to connect via PPPOA. I can put by ST546 in halfbridge mode (called DHCP SPOOF in the speedtouch). This I understand and works. The ST basically becomes a modem only. When I do this my ST modem gets an IP 10.0.0.138/24 and my computer gets assigned IP 80.101.219.51 by the DHCP server of the ST because in the settings of the ST I can see
DHCP First Address: 80.101.219.51
DHCP Last Address: 80.101.219.51

At this point I can get on the internet just like I could in the normal routed connection where my ST is configured as a modem&router.

When I connect the WRT54GL I have no internet any more and can only login to the WRT54GL configuration pages. Not anymore in the ST modem (but I saw a nice wiki about that howto solve it).

I have a wired setup so I am running a cable from the ST lan port 1 to lan port 1 of the WRT54GL (or should it be the WAN/internet port of the WRT54GL?). I have not made any configuration alterations in the WRT54GL and not yet upgraded the orginal linksys firmware to dd-wrt firmware. The DHCP server of the linksys is running and I have not touched the internet connection settings of the linksys since I figure the Speedtouch is doing that.

I missing obviously something (which with my basic understanding would not be strange) any help is appriciated.
Sponsor
dave.tchang
DD-WRT User


Joined: 05 Jan 2009
Posts: 53

PostPosted: Wed Feb 11, 2009 21:51    Post subject: Re: PPPoA ISP connection ->Speedtouch 546 modem ->WRT5 Reply with quote
nldirkz1 wrote:
I have been trying to figure out how to transfer my external IP address obtained from my ISP to the WRT54GL router, so I can try the next step and setup a VPN connection. I am struggeling (already) with part one and getting lost in the "world of networking" browsing the forum and wiki Sad

I live in the Netherlands and I have to connect via PPPOA. I can put by ST546 in halfbridge mode (called DHCP SPOOF in the speedtouch). This I understand and works. The ST basically becomes a modem only. When I do this my ST modem gets an IP 10.0.0.138/24 and my computer gets assigned IP 80.101.219.51 by the DHCP server of the ST because in the settings of the ST I can see
DHCP First Address: 80.101.219.51
DHCP Last Address: 80.101.219.51

At this point I can get on the internet just like I could in the normal routed connection where my ST is configured as a modem&router.

When I connect the WRT54GL I have no internet any more and can only login to the WRT54GL configuration pages. Not anymore in the ST modem (but I saw a nice wiki about that howto solve it).

I have a wired setup so I am running a cable from the ST lan port 1 to lan port 1 of the WRT54GL (or should it be the WAN/internet port of the WRT54GL?). I have not made any configuration alterations in the WRT54GL and not yet upgraded the orginal linksys firmware to dd-wrt firmware. The DHCP server of the linksys is running and I have not touched the internet connection settings of the linksys since I figure the Speedtouch is doing that.

I missing obviously something (which with my basic understanding would not be strange) any help is appriciated.


Hi nldirkz1,

I have a simular setup using a Linksys WRT54G (v1.1) router and a Linksys AM200 ADSL/2 modem. The AM200 modem also has router functions on board. I have DD-WRT firmware (v24-11218_VINT_std) on the WRT54G. I'm connected to my ISP via PPPoA encapsulation.

I found 2 solutions at the following link:

http://jelnet.free.fr/forum/viewtopic.php?t=303&start=0&postdays=0&postorder=asc&highlight=

I am currently using solution number 2. Maybe you can set your configuration up in a simular way. The only disadvantage of this setup is that NAT is being done twice (once on the AM200 modem and a second time on the WRT54G router). With this setup the firewall on the WRT54G is being used, as I find this one more efficient and secure than the one on the AM200 modem.

Hope this helps you on your way! Let us know how you get on.

Regards from Belgium
Dave.
nldirkz1
DD-WRT Novice


Joined: 11 Feb 2009
Posts: 4

PostPosted: Thu Feb 12, 2009 19:57    Post subject: Reply with quote
Dave, thanks, its working this is what I did.
From what I understand for the Linksys to function the WAN IP address (your external IP address obtained from your ISP) plus default gateway (internal IP from Speedtouch) need to be on the same subnet mask. (do not ask me why or what it technically means)

step 1.
you need to find your external IP address. I found it by using http://www.watismijnip.nl/. Write it down.

Step 2:
put your ST in half bridge mode, called DHCP SPOOF. This is done via the configuration program you can download from the the ST website.

Step 3:
once the configuration wizard is finished (your internet should function again) you can, log back into the ST (http://10.0.0.138/) and add an additional IP using the webinterface clicking on <home network> <interfactes> <local network>. Choose to add an additional IP. Fill in your external IP address you found under step 1 but change the last number into a 1. for example:
83.96.216.19 become 83.96.216.1
continue to add the subnet mask 255.255.255.0
click <add> and hit <apply>

step 4:
login to the linksys and under internet connection choose static IP and fill out:
internet IP address: <your external IP address>
subnetmask :255.255.255.0
Default gateway: <the address you added in the ST ending with "1")
PRimery DNS: your primery DNS server of your provider
Secondary DNs: your secondary DNS server of your provider.

click save settings. done.

now connect the speedtouch to the linksys wan/internet port and you should have internet again.

The above is the result of cut and paste from sources http://gathering.tweakers.net/forum/list_messages/1272598/0//pppoa%2Chalf%2C and people who actually understand what they are doing. It works.

If somebody can explain if the above set-up is "smart" and "safe" I would appreciate it. This seems the only way to pass on my external IP address to my linksys router on a PPPoA connection.

I hope it helps some people.
dave.tchang
DD-WRT User


Joined: 05 Jan 2009
Posts: 53

PostPosted: Thu Feb 12, 2009 20:13    Post subject: Reply with quote
nldirkz1 wrote:
Dave, thanks, its working this is what I did.
From what I understand for the Linksys to function the WAN IP address (your external IP address obtained from your ISP) plus default gateway (internal IP from Speedtouch) need to be on the same subnet mask. (do not ask me why or what it technically means)

step 1.
you need to find your external IP address. I found it by using http://www.watismijnip.nl/. Write it down.

Step 2:
put your ST in half bridge mode, called DHCP SPOOF. This is done via the configuration program you can download from the the ST website.

Step 3:
once the configuration wizard is finished (your internet should function again) you can, log back into the ST (http://10.0.0.138/) and add an additional IP using the webinterface clicking on <home network> <interfactes> <local network>. Choose to add an additional IP. Fill in your external IP address you found under step 1 but change the last number into a 1. for example:
83.96.216.19 become 83.96.216.1
continue to add the subnet mask 255.255.255.0
click <add> and hit <apply>

step 4:
login to the linksys and under internet connection choose static IP and fill out:
internet IP address: <your external IP address>
subnetmask :255.255.255.0
Default gateway: <the address you added in the ST ending with "1")
PRimery DNS: your primery DNS server of your provider
Secondary DNs: your secondary DNS server of your provider.

click save settings. done.

now connect the speedtouch to the linksys wan/internet port and you should have internet again.

The above is the result of cut and paste from sources http://gathering.tweakers.net/forum/list_messages/1272598/0//pppoa%2Chalf%2C and people who actually understand what they are doing. It works.

If somebody can explain if the above set-up is "smart" and "safe" I would appreciate it. This seems the only way to pass on my external IP address to my linksys router on a PPPoA connection.

I hope it helps some people.


Hi nldirkz1,

Glad to hear you got it working!

Just one question though. What happens if your ISP assigns you a different IP? Wouldn't you have to change the static IP configured in your Linksys?

Regards
Dave
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Thu Feb 12, 2009 23:43    Post subject: Reply with quote
Just download this configuration wizard and configure it as dhcp-spoof.
Configure your router to obtain an IP automatically.

http://helpdesk.gakijken.nl/site/cm_bestanden/display_bestand.asp?id=10004598

You will get an IP in a /8 network. This way there's a very big chance your gateway is within your network.

If the gateway is outside your network it doesn't mean it doesn't work. It depends on the used firmware.

I think the latest versions of DD-WRT can cope with that situation, but if it doesn't, I can give you a workaround.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Gadget
DD-WRT Novice


Joined: 31 Jan 2008
Posts: 27

PostPosted: Fri Mar 06, 2009 20:28    Post subject: Reply with quote
@frater, let's hear about the workaround. Smile

When using the PPPoA spoofing config my laptop works fine when directly connected to the ST546.

ipconfig /all gives me this:
IP: 86.93.x.x
Subnet: 255.0.0.0
Gateway: 195.190.242.9
DHCP server: 10.0.0.138
DNS servers: 195.121.1.34
195.121.1.66

When connecting the Linksys the Status->WAN page shows me the correct WAN IP address. (86.93.x.x)
Also Subnet Mask, Gateway, DNS 1 and DNS 2 are identical as above.

Problem now is that only my WAN IP address can be pinged from the LAN.
All other WAN IP addresses are unreachable.

What can I do to make the Linksys route correctly?

Thx!

_________________
Linksys WRT54G-EU v2.0 - SD/MMC mod (1GB) - v24-sp1 (std) SVN 10011 - JTAG cable
Linksys WRT54G-EU v2.0 - v24-sp2 (std) SVN 11793M VINT Eko
mstombs
DD-WRT User


Joined: 31 Oct 2007
Posts: 151

PostPosted: Fri Mar 06, 2009 21:16    Post subject: Reply with quote
Please see my comments on this 'feature' inherited from Linksys Linux based routers

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=247452

putting this, or fancier versions in your dd-wrt firewall script should be a complete solution

Code:
GW=$(nvram get wan_gateway)
route add -host $GW dev $(nvram get wan_iface)
route add default gw $GW
Gadget
DD-WRT Novice


Joined: 31 Jan 2008
Posts: 27

PostPosted: Sat Mar 07, 2009 15:10    Post subject: Reply with quote
Big thanks mstombs. Very Happy
Only three lines of code but very helpfull.
Works like a charm!

In the DD-WRT GUI go to "Administration -> Commands" and paste the code in the box.
Click on "Save Firewall" and done!
Because it's saved in NVRAM it survives a reboot of the router.



Very Happy Very Happy

_________________
Linksys WRT54G-EU v2.0 - SD/MMC mod (1GB) - v24-sp1 (std) SVN 10011 - JTAG cable
Linksys WRT54G-EU v2.0 - v24-sp2 (std) SVN 11793M VINT Eko
Gadget
DD-WRT Novice


Joined: 31 Jan 2008
Posts: 27

PostPosted: Sat Mar 07, 2009 20:29    Post subject: 30 sec. Lease Time problem Reply with quote
To make the story complete I was stuck with one more problem.
The dhcp-spoof template from the SpeedTouch Configuration Wizard uses a 30 seconds lease time. When I start ping -t command on my laptop this works fine but gives a few "destination not reachable" messages every 30 seconds.
My guess is the linksys is busy renewing the WAN lease and this gives the interrupts.

I solved this by changing the dhcp-spoof template.
I changed the 30sec lease to 432000sec lease.
This way the Linksys sees a 5 day WAN lease and my problems where gone.

I added the modified template.
Edit: Removed attachement, problem is solved.

Hope this helps somebody in the future. Very Happy

_________________
Linksys WRT54G-EU v2.0 - SD/MMC mod (1GB) - v24-sp1 (std) SVN 10011 - JTAG cable
Linksys WRT54G-EU v2.0 - v24-sp2 (std) SVN 11793M VINT Eko


Last edited by Gadget on Mon Mar 16, 2009 11:33; edited 1 time in total
mstombs
DD-WRT User


Joined: 31 Oct 2007
Posts: 151

PostPosted: Sun Mar 08, 2009 0:46    Post subject: pppoa half-bridge gateway not in WAN IP and netmask network Reply with quote
Good that it works, the 'fancier' scripts only apply the 2 route commands if needed, or try to ensure old routes are cleaned up, duplicate default route commands break things - I don't think this is an issue with dd-wrt

If you have a 30second lease it should be renewed without internet interruption at half-time every 15seconds. If the renew doesn't work there may be an interruption due to to the discovery/offer and accept process at the 30 second interval.

The reason they set a short lease time in half-bridge is that's the only way a new WAN IP can be transferred - if your IP is like mine and you get a new IP every time the DSL drops and reconnects.

With a long lease you will have a problem if you have a dynamic IP and it changes. Curiously windows knows about this sort of problem and sends out lots of dhcp renews if it thinks it has lost contact with its Gateway. There is a script in the dd-wrt wiki to create a simple script to ping something and do similar - there's no way I know for the Linux OS to do this automatically.
Gadget
DD-WRT Novice


Joined: 31 Jan 2008
Posts: 27

PostPosted: Sun Mar 08, 2009 10:40    Post subject: Reply with quote
If I type "route" I only see one default route, therefore no need for a fancier script. Wink

I understand what you mean with the risk of a long lease.
In The Netherlands, where I live, this is no big problem because ISP's almost always give you the same WAN IP if you power cycle the modem. (With no guarantee if you look in the contract.)

Interesting that you say the 30 seconds lease must work.
If this is no know bug in the Linksys I guess this mechanism is badly implemented in the SpeedTouch 546v6. Rolling Eyes



route.jpg
 Description:
Output of "route" command.
 Filesize:  27.11 KB
 Viewed:  21888 Time(s)

route.jpg



_________________
Linksys WRT54G-EU v2.0 - SD/MMC mod (1GB) - v24-sp1 (std) SVN 10011 - JTAG cable
Linksys WRT54G-EU v2.0 - v24-sp2 (std) SVN 11793M VINT Eko
Gadget
DD-WRT Novice


Joined: 31 Jan 2008
Posts: 27

PostPosted: Mon Mar 09, 2009 22:02    Post subject: DHCP-server Reply with quote
Because I'm curious I did some more tests. Wink
I changed the lease time on my ST546 to 1 and 5 minutes.
Both lease times gives trouble with the Linksys connected. (Ping -t gives few destination unreachable messages when total lease time expires.)

When I connect my laptop directly to the ST546 and thus getting the WAN IP address I started Wireshark.
Exactly like mstombs said you see, half way the lease time expires, DHCP Request and milliseconds later the DHCP ACK.
Funny thing here is that the request is send from my laptop to 10.0.0.138. The MAC address used belongs to the SpeedTouch.
Thus 10.0.0.138 belongs to the SpeedTouch.

This IP address also shows up when I type ipconfig /all on the laptop! (See picture.)

My guess is the Linksys does NOT send it's DHCP Request to 10.0.0.138 and that's why the renewal process doesn't work as expected. Shocked

I'll try to install tcpdump on my Linksys to see if I can make a capture of the WAN interface to analyse this.

Maybe a dd-wrt guru can tell if the DHCP ACK message is handled properly?
If you dissect the DHCP ACK message with Wireshark you see, "Option: (54) Server Identifier" which holds the correct DHCP server IP address.
(In my case 10.0.0.138)



tcp-ip laptop via ST546.jpg
 Description:
DHCP-server field.
 Filesize:  41.27 KB
 Viewed:  21814 Time(s)

tcp-ip laptop via ST546.jpg



_________________
Linksys WRT54G-EU v2.0 - SD/MMC mod (1GB) - v24-sp1 (std) SVN 10011 - JTAG cable
Linksys WRT54G-EU v2.0 - v24-sp2 (std) SVN 11793M VINT Eko


Last edited by Gadget on Mon Mar 16, 2009 11:27; edited 1 time in total
Gadget
DD-WRT Novice


Joined: 31 Jan 2008
Posts: 27

PostPosted: Tue Mar 10, 2009 21:55    Post subject: new topic Reply with quote
After testing with a hub between the ST546 and the Linksys WAN port it looks like the Linksys is faulty.
I created a new topic to address this issue.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=48704

_________________
Linksys WRT54G-EU v2.0 - SD/MMC mod (1GB) - v24-sp1 (std) SVN 10011 - JTAG cable
Linksys WRT54G-EU v2.0 - v24-sp2 (std) SVN 11793M VINT Eko
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum