auto Configration for Bsnl H500 happy hours

My configration
My os:ubuntu
ADSL Router: D-link 502T
Wifi AP: Tp-link TLW1G

connection disgram is
from my pc via Ethernet Rj45 cable

Phone line --> Dlink 502T -->Tp-link wifi AP -->  my PC

my wifi has a option of autodial i want to use that, so i confirgured it to autodial at 2:10 and discount 7:50, it also it get connected in the given time(i saw some records in the given time) but the connection is not available to me to use:(

so i think its an routing issue that connection does not reach my box:(

some screenshots
http://img254.imageshack.us/img254/5830/screenshottplinkmozillaan1.th.png
http://img254.imageshack.us/img254/1920/screenshottplinkmozillavq6.th.png

Firstly this has nothing to do with your OS.

I would suspect you are using DHCP on your router. If yes, I would suggest you to try with a static IP.

Assign your WAN port on the router the following IP:

IP: 192.168.1.2

Subnet: 255.255.255.0

Gateway: 192.168.1.1 (Your modem)

For DNS, I use opendns

DNS1: 208.67.222.222

DNS2: 208.67.220.220

I would suggest that you disable the DHCP server on the router and use a static address. Most probably, your router’s DNS forwarded is not working or is off. To be sure, try with a static ip on the computer/laptop. Assign the following IP address to the router’s LAN port:

192.168.10.1

255.255.255.0

Disable DHCP on router.

Assign the following IP to your computer/laptop:

192.168.10.2

255.255.255.0

Default gateway: 192.168.10.1

DNS1: 208.67.222.222

DNS2: 208.67.220.220

Let other settings on router be the same, i.e. your automatic connection settings.

Try this setup out. If it is working, then the problem is with the DNSForwarded of your WiFi router. If still it does not work, then please report the result of the tracepath on your ubuntu machine:

eg. tracepath 61.0.0.70

We can then proceed from there.

Firstly this has nothing to do with your OS.

I would suspect you are using DHCP on your router. If yes, I would suggest you to try with a static IP.

Assign your WAN port on the router the following IP:
IP: 192.168.1.2
Subnet: 255.255.255.0
Gateway: 192.168.1.1 (Your modem)

In which device i have to do this settings??
wifi one or simple ADSL router??

For DNS, I use opendns
DNS1: 208.67.222.222
DNS2: 208.67.220.220

i too use it, its good service:)

I would suggest that you disable the DHCP server on the router and use a static address. Most probably, your router’s DNS forwarded is not working or is off. To be sure, try with a static ip on the computer/laptop. Assign the following IP address to the router’s LAN port:
192.168.10.1
255.255.255.0

My present network map, all have a STATIC IP
[ul]
[li]My Ubuntu box 192.168.1.5[/li][li]My Dlink adsl modem/router 192.168.1.1[/li]The Dlink modem is set in PPPoE mode to connect to internet with internal dialer
[li]my wifi router/Access point has a address of 192.168.1.2[/li]
[/ul]

Disable DHCP on router.

done!, disable dhcp on all the devices(adsl,wifi,pc) and switched to static ip

Assign the following IP to your computer/laptop:
192.168.10.2
255.255.255.0
Default gateway: 192.168.10.1
DNS1: 208.67.222.222
DNS2: 208.67.220.220

my present setting of pc

gaurish@Digital-den:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:09:06:18:C6
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:fe06:18c6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12705 errors:0 dropped:0 overruns:0 frame:0
TX packets:14234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6765367 (6.4 MiB) TX bytes:2422603 (2.3 MiB)
Interrupt:19 Base address:0xed00

Let other settings on router be the same, i.e. your automatic connection settings./QUOTE]
atcully i am confused by your use of work router??
which one of both are you pointing to??

Try this setup out. If it is working, then the problem is with the DNSForwarded of your WiFi router. If still it does not work, then please report the result of the tracepath on your ubuntu machine:

[QUOTE]
eg. tracepath 61.0.0.70

We can then proceed from there.

gaurish@Digital-den:~$ tracepath 61.0.0.70
1: Digital-den.local (192.168.1.5) 0.210ms pmtu 1500
1: 192.168.1.1 (192.168.1.1) 1.031ms
2: 192.168.1.1 (192.168.1.1) asymm 1 1.039ms pmtu 1492
3: no reply
4: 218.248.251.154 (218.248.251.154) asymm 5 75.993ms
5: ndl1pp2-a-fixed.sancharnet.in (61.0.0.70) 71.818ms reached
Resume: pmtu 1492 hops 5 back 5

What I am assuming to be wrong here:

You have the same subnet for the modem as well as your network! I would change it to the following:

  1. Change your WiFi Router’s WAN Port IP address to: 192.168.1.2

  2. Change your WiFi Router’s LAN Port IP address to: 192.168.10.1

  3. Assign your computer the IP address: 192.168.10.2

  4. DHCP to be off on both Modem as well as the Router

  5. Try to connect and see if it works. In all probability, it should.

The only problem I read here is that you have a common subnet for the WAN as well as the LAN port on the WiFi router!

To be more clear:

MODEM has the following:

IP=192.168.1.1

Subnet=255.255.255.0

Gateway=NONE

Set to BRIDGED MODE

WiFi Router:

WAN IP=192.168.1.2

Subnet= 255.255.255.0

Gateway=192.168.1.1

DNS1=208.67.222.222

DNS2=208.67.220.220

DHCP Relay=Off

DNS Forwarded=Off

WiFi WAN=PPPoE mode

username=your Dataone username

password=your password

LAN IP=192.168.10.1

Subnet=255.255.255.0

On your Computer:

IP=192.168.10.2

Subnet=255.255.255.0

Gateway=192.168.10.1

DNS1=208.67.222.222

DNS2=208.67.220.220


Try the above. Let me know.

Thnaks man it works, now i made connection on ubuntu box using pppoeconf
now please guide me to scedule my downloads

root@Digital-den:/home/gaurish# crontab -l
# m h  dom mon dow   command
08 2 * * * poff -a
10 2 * * * pon dsl-provider
50 7 * * * poff -a
53 7 * * * /sbin/shutdown -h 0

but how to lauch my torrent program??
when i put it in cron then nothing happens
sample.

12 2 * * *  /usr/bin/azureus

i tried this in putting root’s crontab and also my crontab but it does not lauch:(

Sorry dude, the scheduling part with ubuntu is not my cup of tea (at the moment). I am a newbie at linux. With networking I could help and I did :wink:

Thanks Sumit, Help really appreciated:)