D-Link DSL-2750U - Multiple ADSL accounts on one router?

  • Thread starter Thread starter Fudzy
  • Start date Start date
F

Fudzy

Guest
Tonight while suffering the MWEB Durban Outage of 2013 (I hope it's the only one) I decided to get the R24 Afrihost prepaid account. After paying and getting my account details I tried to set up an additional connection under Internet Setup (which has the title WAN Setup. I assumed that it would allow me to add a set of secondary ADSL account details so I went in and added to the details only to discover that it wouldn't allow me to set the VPI to 8. Any other number other than 8 so I am assuming my original ADSL account settings which use the same VPI settings has exclusive rights to it.

In this time, MWEB seems to have come back up so I decided to get on here and post this thread in an effort to see if my router could do 2 accounts 1 router setup or is this only available on more elaborate (read Mikrotik RB) hardware?
 
Nope. The D-Link firmware does not allow you to setup different ISP profiles, because the VPI/VCI combination needs to be unique.

What you can do instead is set the router in half-bridge mode, where the router dial up your default ISP account and then you can "override" it by dialing an additional account from your PC, but then only that PC will use that secondary account.
When you have your router in bridge/half-bridge mode, then you can use many accounts simultaneously.

You may be able to dial multiple PPPoE accounts via the D-Link via a terminal to the router, but I haven't done that in ages.

All the decent and well known router operating systems should be able to dial multiple PPPoE connections: eg. MikroTik RouterOS, DD-WRT, OpenWRT, Tomato, Smoothwall, IPCop, etc.
You can even do that on a plain Linux machine, but then it becomes quite a lot of effort to configure. Like I started off dialing and routing multiple PPPoE connections on Ubuntu, but it became a nightmare to manage. Now I'm still running Ubuntu, but I'm running MikroTik RouterOS in a VirtualBox VM, which then performs all my routing, firewalling and ISP connections.

If you could give us more detail as to how you'd like your setup to work, then we can give you more precise answers. For example, do you want to do downloads via 1 account and browsing via another, or do you just want a prepaid account as a backup for a single PC?
 
What Pada said. Would have been nice if DLink did support it, or well other router makes too, if you want to try a quick account swapover (on the router itself, not pppoe).
 
What I did was set up each account and save the config file to PC. To switch accounts I simply loaded the desired config file. A bit slow waiting for the device to reboot, but easier than manually changing the account.
 
What Pada said. Would have been nice if DLink did support it, or well other router makes too, if you want to try a quick account swapover (on the router itself, not pppoe).

Yeah I thought it was a bit of a long stretch but in it's defense it does support 3G fail-over so I thought it might have that feature. Looks like setting a bridged connection would be the best second prize.

Pada, thank you very much for your informed post I was just planning on using the second account as a backup when the first experienced problems. I like the bridging idea to get my desktop up and running but the notebooks, tablets and phones would be a problem still I think (unless I buy another wireless APN and share that directly from the PC too)

Thanks for all the feedback guys.
 
Technically you can get your PC to share that PPPoE connection. With Windows you're limited to sharing only 1 PPPoE connection.

For the sharing to work, you'll either need to disable the DHCP server on your router, or you'll have to manually set set the IP addresses on the other devices to point to your Windows PC's LAN IP address, which will be like 192.168.137.1

If you want to be able to easily switch between your PC/router by just changing the gateway address, you'll either need to change your router's LAN IP range or go through the trouble/effort of changing it in Windows like they describe here: http://support.microsoft.com/kb/230148
 
Hi There I woulod go with Pada and dial through for the second connection.

Keep it Simple Stupid is still a good maxim to live by

Regards

Tim
 
Thread revive. Does anyone know of a router which does support multiple accounts?
 
What I did was set up each account and save the config file to PC. To switch accounts I simply loaded the desired config file. A bit slow waiting for the device to reboot, but easier than manually changing the account.

How did you do it, Arthur? Could you share more in detail?
 
Was it done manually? Not via a script? A scripted solution to push a saved configuration onto the router like that would be great...
 
I have the same router and 2 ISP's and had a similar situation. I needed to switch ISP's automatically. What I've done is create an AutoIT script to to update the router.

I have a laptop on 24/7. So just before download plus hours start, I have windows task scheduler run the AutoIT script to update router. In the morning once download plus is over, task scheduler kicks in again to update the router with second ISP. Working 100%.

I'm happy to share my code used. I've got it to work on IE.
 
I would really appreciate that script as well as basic instructions to get it running. Don't need automatic switching though, just the ability to swap between ISP accounts easily
 
I would really appreciate that script as well as basic instructions to get it running. Don't need automatic switching though, just the ability to swap between ISP accounts easily

Sure,

Download and install AutoIT v3. Copy the code below to a new script,

Code:
#include <ie.au3>

;Script executes the following steps below to update routers ISP
;1. Enter router IP address in browser
;2. Assumes default admin account used and updates router password only
;3. Sends enter Key
;4. Accesses the "Internet Setup" link via hyperlink
;5. Enables the checkbox under WAN Setup
;6. Clicks the "Edit" button
;7. Updates Username
;8. Updates Password
;9. Clicks "Next" button
;10. Clicks "Apply" button
;11. Clicks "Logout" link
;12. Closes browser session

;Update router IP address
$oIE = _IECreate ("Router IP Address Here")

_IELoadWait($oIE,0)
Sleep(5000)

$HWND = _IEPropertyGet($oIE, "hwnd")
WinSetState($HWND, "", @SW_MAXIMIZE)

_IELoadWait($oIE,0)
Sleep(5000)

$oIECollection = _IEFormGetCollection($oIE, 0)

;Default admin account used. I've just updated the password field. Update code with router password.
$oPasswordField = _IEFormElementGetObjByName($oIECollection, 'password')
_IEFormElementSetValue($oPasswordField, "Router password here")

_IELoadWait($oIE,0)
Sleep(5000)

Send("{ENTER}")

_IELoadWait($oIE,0)
Sleep(5000)

;Update the code below with the hyperlink for "Internet Setup"
_IENavigate($oIE, "Internet Setup Hyperlink here")

Sleep(5000)

$oForm = _IEFormGetObjByName($oIE, 0)
$oCheckbox = _IEFormElementGetObjByName($oForm, "rml");
$oCheckbox.checked = True

_IELoadWait($oIE,0)
Sleep(5000)

$oEditButton = _IEGetObjById($oIE, "editWancfg")
_IEAction($oEditButton, "click")

_IELoadWait($oIE,0)
Sleep(5000)

;Updates the username field. Update code with your ISP Username
$oPPPUsername = _IEGetObjByName($oIE, "pppUserName")
_IEFormElementSetValue($oPPPUsername, "Enter ISP username here")

_IELoadWait($oIE,0)
Sleep(5000)

;Updates the password field. Update code with your ISP Password
$oPPPUsername = _IEGetObjByName($oIE, "pppPassword")
_IEFormElementSetValue($oPPPUsername, "Enter ISP password here")

_IELoadWait($oIE,0)
Sleep(5000)

$oNextButton = _IEGetObjById($oIE, "btnNext")
_IEAction($oNextButton, "click")

_IELoadWait($oIE,0)
Sleep(5000)

$oApplyButton = _IEGetObjByName($oIE, "btnSave")
_IEAction($oApplyButton, "click")

_IELoadWait($oIE,0)
Sleep(40000)

Local $sMyString = "Logout"
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
    Local $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf
Next

_IELoadWait($oIE,0)
Sleep(10000)


_IEQuit($oIE)

I've added comments to the code to get you started. Update the code with your router details and run the script to test it out.

Note: I've added quite a lot of wait statements in here. You welcome to remove them if you feel it's taking too long.

If all works according to plan. It should update without any issues.

Once you happy, create a duplicate script with the second ISP details.

Use AutoIT's "Compile Script to .exe" tool to save these as an executable file.

Lastly, execute these 2 files when required. :)
 
Last edited:
Out of interest, would this be possible using two routers?

I share wifi from my landlord from their D-Link-DSL-2750U. I also have an unused DSL-2750U. Would I be able to use my second router the dial a second ISP? Not sure if theres any way to do this wirelessly.
 
Sure,

Download and install AutoIT v3. Copy the code below to a new script,

Code:
#include <ie.au3>

;Script executes the following steps below to update routers ISP
;1. Enter router IP address in browser
;2. Assumes default admin account used and updates router password only
;3. Sends enter Key
;4. Accesses the "Internet Setup" link via hyperlink
;5. Enables the checkbox under WAN Setup
;6. Clicks the "Edit" button
;7. Updates Username
;8. Updates Password
;9. Clicks "Next" button
;10. Clicks "Apply" button
;11. Clicks "Logout" link
;12. Closes browser session

;Update router IP address
$oIE = _IECreate ("Router IP Address Here")

_IELoadWait($oIE,0)
Sleep(5000)

$HWND = _IEPropertyGet($oIE, "hwnd")
WinSetState($HWND, "", @SW_MAXIMIZE)

_IELoadWait($oIE,0)
Sleep(5000)

$oIECollection = _IEFormGetCollection($oIE, 0)

;Default admin account used. I've just updated the password field. Update code with router password.
$oPasswordField = _IEFormElementGetObjByName($oIECollection, 'password')
_IEFormElementSetValue($oPasswordField, "Router password here")

_IELoadWait($oIE,0)
Sleep(5000)

Send("{ENTER}")

_IELoadWait($oIE,0)
Sleep(5000)

;Update the code below with the hyperlink for "Internet Setup"
_IENavigate($oIE, "Internet Setup Hyperlink here")

Sleep(5000)

$oForm = _IEFormGetObjByName($oIE, 0)
$oCheckbox = _IEFormElementGetObjByName($oForm, "rml");
$oCheckbox.checked = True

_IELoadWait($oIE,0)
Sleep(5000)

$oEditButton = _IEGetObjById($oIE, "editWancfg")
_IEAction($oEditButton, "click")

_IELoadWait($oIE,0)
Sleep(5000)

;Updates the username field. Update code with your ISP Username
$oPPPUsername = _IEGetObjByName($oIE, "pppUserName")
_IEFormElementSetValue($oPPPUsername, "Enter ISP username here")

_IELoadWait($oIE,0)
Sleep(5000)

;Updates the password field. Update code with your ISP Password
$oPPPUsername = _IEGetObjByName($oIE, "pppPassword")
_IEFormElementSetValue($oPPPUsername, "Enter ISP password here")

_IELoadWait($oIE,0)
Sleep(5000)

$oNextButton = _IEGetObjById($oIE, "btnNext")
_IEAction($oNextButton, "click")

_IELoadWait($oIE,0)
Sleep(5000)

$oApplyButton = _IEGetObjByName($oIE, "btnSave")
_IEAction($oApplyButton, "click")

_IELoadWait($oIE,0)
Sleep(40000)

Local $sMyString = "Logout"
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
    Local $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf
Next

_IELoadWait($oIE,0)
Sleep(10000)


_IEQuit($oIE)

I've added comments to the code to get you started. Update the code with your router details and run the script to test it out.

Note: I've added quite a lot of wait statements in here. You welcome to remove them if you feel it's taking too long.

If all works according to plan. It should update without any issues.

Once you happy, create a duplicate script with the second ISP details.

Use AutoIT's "Compile Script to .exe" tool to save these as an executable file.

Lastly, execute these 2 files when required. :)

Sorry for not replying earlier btw. Haven't had a chance to test it out yet due to issues with the eBucks delaying my free uncapped :(
 
Gonna test this in the morning & @daWolf, you sir are too awesome :D :love:.

Also a big [haha] thanks to @wazarmoto & Debeer165 for thread revival/script request respectively ;)

Edit: Working perfectly :D. TY once again.

**tip for anyone trying this, your internet config url should look something like this

Code:
"http://10.0.0.2/setup_wancfg.html")
Just right click on internet setup and check properties. :)

Other thing is, remember your password needs to be input TWO times. I only did it once :whistle: but quickly sorted it out hehe.

If you are having issues after executing the script, use the telkom guest details when testing so you can paste your code here and we can help.

Username: guest@telkomadsl
Password: guest

Only Telkom.co.za site works.
 
Last edited:
Gonna test this in the morning & @daWolf, you sir are too awesome :D :love:.

Also a big [haha] thanks to @wazarmoto & Debeer165 for thread revival/script request respectively ;)

Edit: Working perfectly :D. TY once again.

**tip for anyone trying this, your internet config url should look something like this

Code:
"http://10.0.0.2/setup_wancfg.html")
Just right click on internet setup and check properties. :)

Other thing is, remember your password needs to be input TWO times. I only did it once :whistle: but quickly sorted it out hehe.

If you are having issues after executing the script, use the telkom guest details when testing so you can paste your code here and we can help.

Username: guest@telkomadsl
Password: guest

Only Telkom.co.za site works.

Script looks promising, but haven't been able to get past the checkbox. It just won't get checked. Learning heaps about Autoit scripting in the debugging process though, which is fun.
 
Script looks promising, but haven't been able to get past the checkbox. It just won't get checked. Learning heaps about Autoit scripting in the debugging process though, which is fun.

Can you please post your script here [remove your ISP details or add Telkom guest details] using the CODE tags. We will take a look and help :).

Am also new as this is the first time i have installed and ran the software :).
 
Last edited:
Can you please post your script here [remove your ISP details or add Telkom guest details] using the CODE tags. We will take a look and help :).

Am also new as this is the first time i have installed and ran the software :).

+1

Same boat - this is completely foreign to me but need to implement auto switching between adsl accounts. Thanks for the info so far. much appreciated.
 
+1

Same boat - this is completely foreign to me but need to implement auto switching between adsl accounts. Thanks for the info so far. much appreciated.

This is awesome :D, the more users who find out about this then the better the use we get out of it :p. I was actually gonna change it for a upgraded model but holding off since this will keep things going smoothly until some new hardware announcements early next year [CES 2015 can't come soon enough] :).

You guys are welcome, glad i can help and i hope others too :) can lend a hand.
 
Top
Sign up to the MyBroadband newsletter
X