BSNL Broadband on Linux

  • Thread starter Thread starter bsnluser
  • Start date Start date
  • Replies Replies 98
  • Views Views 60,578
@bsnluser

Dude, you seem to know a lot about Linux and setting up connections. I'm a MTNL Triband user, and I'm facing a particular problem with setting up bridge mode in Ubuntu. There is not much difference in the MTNL setup and BSNL, so I think that shouldn't be a problem. Please see if you can figure out a solution to my problem. This has already been discussed on the MTNL forum. Here's the link for it.

https://broadband.forum/Setting-Up-Connec...inux-t8654.html
 
QUOTE(Apoorv Khatreja @ Mar 9 2007, 01:16 AM) [snapback]82649[/snapback]
Dude, you seem to know a lot about Linux and setting up connections. I'm a MTNL Triband user, and I'm facing a particular problem with setting up bridge mode in Ubuntu.[/b]

Hello,

You are not defining your problem correctly. What you want is to have your modem work in bridge mode and make your computer running Ubuntu do the dial up to establish (or close) the connection. Just to let you know, configuring your Ubuntu computer in bridge mode (as opposed to configuring your modem) is a totally different thing!

So:
1. Configure your modem to work in bridge mode.
2. Use PPPoe dialer on your computer as I explained in the beginning of my thread here.
3. Use 'pon' and 'poff' command to switch ON or OFF the connection (as I explain this in the beginning of this thread).
4. Once you have that working, you can use cron to do whatever you want to do periodically. Here are a couple of helpful links:
http://www.linuxhelp.net/guides/cron/
http://reallylinux.com/docs/basiccron.shtml
 
I've done all the above steps you mentioned here HUNDREDS OF TIMES.

Step 3 -

What exactly my problem is that I have to type pon dsl-provider about 20 times before I get connected. The reason behind this is unknown to me. Typing pon dsl-provider once triggers the connection once. But what happens if the attempt to connect fails? NOTHING.

This is precisely my problem.






In Windows, I check these options so that it keeps trying to connect untill I get connected.



So what I need is a check statement, that can check whether I've been connected or not after typing pon dsl-provider or not. Here is a similar batch script, which I also use in Windows.


@ECHO OFF

:loop
Echo Trying to Dial your connection.........
rasdial DSLname username password

if NOT %ERRORLEVEL% ==0 goto failed

Exit
:failed
cls

Echo Failed to connect....will retry

goto loop


This keeps on repeating until i get connected. Somebody suggested that I check by pinging some popular site such as google. But I DON'T KNOW HOW TO WRITE SUCH A CONDITION STATEMENT. Please help me with this.
 
QUOTE(Apoorv Khatreja @ Mar 11 2007, 09:20 PM) [snapback]83028[/snapback]
What exactly my problem is that I have to type pon dsl-provider about 20 times before I get connected. The reason behind this is unknown to me. Typing pon dsl-provider once triggers the connection once. But what happens if the attempt to connect fails? NOTHING.[/b]

The "plog" command can tell you what happened recently with your pppoe connection. So after you do "pon", use 'plog' command to see what it says and paste the output here.

Also, the best information you can get is from /var/log/syslog file (in Debian based distros, Ubuntu is Debian based). After giving the "pon" command, check what is at the end of that file. You can
1. either just look at the file using the command "less /var/log/syslog" in a terminal (space key scrolls down one page, "-" (minus) key scrolls up one page)
2. or you can keep a watch on the last few lines of that file as they are being changed using the command "tail -f -n 25 /var/log/syslog" (this will keep showing the last 25 lines, even if the file is updated). Paste the information relevant to ppp connection here.

Finally, after every "pon" attempt, use the "poff -a" command to shutdown all ppp connection that there may be before giving the "pon" command again.



QUOTE(Apoorv Khatreja @ Mar 11 2007, 09:20 PM) [snapback]83028[/snapback]
This keeps on repeating until i get connected. Somebody suggested that I check by pinging some popular site such as google. But I DON'T KNOW HOW TO WRITE SUCH A CONDITION STATEMENT. Please help me with this.[/b]

I would guess that if you are having problem connection in Windows as well, then there might be some problem with your connection itself (telephone lines interference or noise?).

In any case, use the 'plog' command and look at the /var/log/syslog file to get an indication what could be going wrong and write back.

And, btw, don't panic and you don't have to use capital letters (they represent "shouting" on the net)

good luck.
 
hi all, good stuff there bsnluser. I had done this a long time back & it all comes flooding back. Now if they (ppoeconf) only beautified it a bit in the sense have an icon to go at the end of the thing & have something like the dial-up connection status icon in the notification area/system tray from where one could dis-connect instead of either running both the commands or making shortcuts for both. This app. needs a lotta love & is really cool. I have issues finding the project page of it. Anybody knows the url for it. Thnx in advance
 
feel free to do it. i really can't make anything out of the above instructions... :|
 
Back