LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2009, 09:48 PM   #16
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556

OK, I need a bit more info.

1) Are you currently using the same machine that you are testing this on? Like, do you need to disconnect, then dial out, then try the commands, then disconnect etc etc.. ?

2) I don't fully understand the dial-up situation you have, but that doesn't matter really, but IF my first question is true, then you will need to edit the IP address I gave you for the default gateway in the command I gave. As long as your dial-up is CONNECTED to the ISP, then you will have the IP address you need for the route command I gave. I don't know about that #777 stuff

Last edited by GrapefruiTgirl; 07-02-2009 at 09:50 PM.
 
Old 07-02-2009, 09:51 PM   #17
hadmanysons
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Original Poster
Rep: Reputation: 16
The dial up is through my phone. And it's being sketchy right now and doesn't want to work. When I can get it to connect again i'll post another route -n output. Thanks for all the help you've given me so far.
 
Old 07-02-2009, 09:53 PM   #18
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Ok no problem, I will provide a full routine for you to try, once you get connected.

Meanwhile, if you don't need it (which evidently you don't) you can execute the command:

route del default gateway

to remove the gateway we created.

My next post, I will give you a full run-down of what to do when you get connected.

You're welcome!

S
 
Old 07-02-2009, 09:59 PM   #19
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK, let's say you've dialed out and are connected to the net, but you can't seem to browse. This is why you posted this thread, yes?
OK, once connected:

1) make sure the nameserver addresses are correct, and are in the resolv.conf file.
2) execute `ifconfig ppp0` and you will have something like:
Code:
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:70.221.33.74  P-t-P:66.174.175.132  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
3) Notice the IP address in bold above.
4) Now, execute `route -n` and you should have only ONE line, as you did originally in post #8 above.
5) Now, execute `route add default gateway 111.222.333.444 ppp0` only substitute in the bold IP address you got from ifconfig instead of the 111.222.333.444
6) Now, `route -n` should give you TWO lines.
7) In theory, barring martians or other phenomena, you *should* be able to browse the net.
8) There is one more file we can look at, but hopefully we won't need to, because while I got it sorted on my machine, I don't know a lot about it; I'd post the contents of mine for you, but I don't know if it will help. Hopefully at this point, you can browse internet.

Good luck!!
 
Old 07-02-2009, 10:14 PM   #20
ngjunkie0011
Member
 
Registered: Jun 2005
Location: New York
Distribution: Ubuntu Studio
Posts: 105

Rep: Reputation: 15
Quote:
Originally Posted by GrapefruiTgirl View Post
Huh?? I don't know what 'tethering' is, nor what a 'HTC Mogul' is. Whatever gave you this idea?

PS - If you must, start a new thread rather than get this one off-topic

Sasha
My apologies if I was not succint.

I basically want to know if you were able to configure the HTC 6800 phone to be used as a USB modem(tethering). It works just fine in windows but what's the use if all I can really do is just surf the web. I need to be able to use my HTC 6800 phone as a USB modem. I don't know the steps required. The first step that I need to know is the drivers linux can use so that it can just recognize the phone. Next I would need to know is what applications will allow me to use the phone as a USB modem. I have searched and searched and all in vain.
 
Old 07-02-2009, 10:20 PM   #21
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by ngjunkie0011 View Post
My apologies if I was not succint.

I basically want to know if you were able to configure the HTC 6800 phone to be used as a USB modem(tethering). It works just fine in windows but what's the use if all I can really do is just surf the web. I need to be able to use my HTC 6800 phone as a USB modem. I don't know the steps required. The first step that I need to know is the drivers linux can use so that it can just recognize the phone. Next I would need to know is what applications will allow me to use the phone as a USB modem. I have searched and searched and all in vain.
OK, thank you for this clarification

I still however don't understand the difference between as you say: use my HTC 6800 phone as a USB modem and if all I can really do is just surf the web because surfing the web IS what a modem is used for, right?

I apologize if I am missing some key element here but again, I'd be happy to A) learn more about it, and B) help if I can, but please start a new thread IF the issue is a different one than is being discussed here.
If this thread we're in now, is dealing with 'tethering', then that's good! Two birds, one stone

Sasha
 
Old 07-03-2009, 01:44 AM   #22
hadmanysons
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Original Poster
Rep: Reputation: 16
This is basically about being able to "tether" cellphone to a computer so that you can use it's internet connection for the computer to be able to "surf the web". Once we get to the bottom of what the heck is going on with my connection I should be able to author a tutorial for people who are having similar issues.

edit - In Linux that is
 
Old 07-03-2009, 01:01 PM   #23
hadmanysons
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Original Poster
Rep: Reputation: 16
I did what you said and it still didn't work. I'm starting to wonder if it has something to do with my Carrier. When I use my phone in windows, the phone itself dials out but it's not doing that in linux.
 
Old 07-03-2009, 01:15 PM   #24
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Humm... I don't know what else to suggest. As I mentioned, I don't fully understand the type of dial-up/carrier plan you (two) have, with regards to using a phone as a modem, and the #777 thing, but the rest of this thread should be generally accurate regarding getting pppd to connect, provided that the 'modem device' is recognized and driven by the OS correctly, and whatever you're connecting to (the ISP) provides the usual internet connectivity that the typical ISP does.

When you say that the phone itself does the dialing in Windows, then what does the dialing in Linux? Is there another device (an actual modem maybe) involved?

Sorry again if I'm missing something that I should understand by now

Sasha
 
Old 07-04-2009, 11:37 AM   #25
hadmanysons
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Original Poster
Rep: Reputation: 16
Well... when I connect in windows, before it stopped working, I would go to the network connections after I plugged in my phone. Then I would click the connection for my phones internet, looks and acts just like any other modem, and on the computer it would dial to #777 and do its usual modem thing. On the phone, you would see a notification that it ALSO is displaying what's going on and the dialup status on my computer would be mirrored by my phone. That however no longer happens. I can however use a program called PDAnet to connect with my phone in windows because what it does is it has a server program on my phone that connects with my computer that has client software on it. When my phone is synced through ActiveSync, it just creates a serial connection between the two and then slaves the internet off my phone and tricks the phone into thinking that it's the one using the internet and not my computer. That still works, but treating the phone like a traditional modem does not.
 
Old 07-04-2009, 02:51 PM   #26
hadmanysons
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Original Poster
Rep: Reputation: 16
It's working now. What I had to do was to log-on to get the name servers. Then add them to resolv.conf, then do a 'network restart' and then log on. Now, everytime I restart my computer I have to add the nameservers to resolv.conf again, how would I fix that. Also, everytime I restart i had to a 'sudo modprobe ipaq vendor=0x0bb4 product=0x0b03'. What do I need to do to make that automatic everytime I start up.
 
Old 07-04-2009, 06:48 PM   #27
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Arrow ppp options

OK, this is good!

Let's take the whole situation a step at a time, and do a little more research along the way, working towards a reasonably automated way for you to accomplish the above. I', just going to throw out a few questions here and suggestions, in no praticular order:

1) The modprobe command you are using for the ipaq module: Do you need to re-do that every time you stop/restart your network? Or do you mean, every time you restart the computer? If it's upon restarting the computer, then it should be rather simple. Now, I didn't see anywhere earlier in the thread what distro you are using, so for the time being I'll give general ideas about how to do that (we're working on the assumption that your kernel is not auto-probing the kernel module for whatever reason):
--One way is in an rc.local or similar init script which gets run after the machine has booted and entered multi-user mode (init 3/4/5 or whatever). On my slackware OS, I would use /etc/rc.d/rc.local.
--Another way is configuring the module in modules.conf or modprobe.conf (depending on your system) which is used sometime during late boot using the init script rc.modules (same idea as above basically) where you tell the kernel that when a particular device is discovered, insert 'this' module.
--The options you are giving the module, you can put into a little text file in /etc/modprobe.d called 'ipaq' and inside this 'ipaq' file you would put:
Code:

alias wlan0 ipaq
options ipaq vendor=0x0bb4 product=0x0b03
just like that. Note: this alone *might* even make the kernel auto-probe the module automatically as soon as the NIC is discovered, though I realize that the NIC cannot actually *be* brought up without the module inserted. What the line means is: "When you (the kernel) discover a wlan0 device, insert the ipaq module with these options."
ALSO NOTE: If your connection is not called wlan0, then adjust as required (i.e. eth0, or whatever it is called). Between this file, and the modules.conf file, with any luck it will get auto-modprobed (though other users reading this, please clarify/correct me if I am missing/mis-explaining exactly how to use the modules.conf file as I do not actually use it myself).

Now, the nameserver issue:

Once you connect (even before you log in) have a look into /etc/ppp or if you are dialing out as non-root, look in ~/.ppp/ and see if there is a freshly created resolv.conf file which appears as soon as the connection is made. If it's there, great. If not, go ahead and log-in to the connection, and check again to see that the resolv.conf file has appeared there. pppd created the file automatically, so it should appear.

There are a couple ways to automate the process of getting resolv.conf updated automatically, as well as the login process itself (I should say that the other way 'round-- i.e., ways to get login to be automated, and THEN get resolv.conf updated automatically):
Locate the file /etc/ppp/chap-secrets or pap-secrets depending on whether you use pap or chap method to log into the ISP. Inside this file is where you put your login-name and password in plain text. My chap-secrets file looks like:
Code:

# Secrets for authentication using CHAP
# client	server	secret			IP addresses
"my-user-name@ns.sympatico.ca"	*	"Password"
So that takes care of your login info. Now, look into the /etc/ppp/options file. This is the stuff that tells ppp what to do once connected. Particularly relevant options (all of which I have uncomment in my own file) are:

asyncmap 0
noauth
crtscts
modem
noipdefault
mru 1500
mtu 1500
passive
debug
proxyarp

So please read the options file for well commented descriptions of the functions of these options, and adjust your own options file to suit your needs. Do enable the 'debug' option for now at least, as it does provide very useful information as the dialer is dialing and connecting to the ISP. the 'passive' and 'auth/noauth' options you may need to play with.


OK, so for the time being, I would like to know: If you can get the options file set up correctly, and also if you would create the /etc/modprobe.d/ipaq file as described, and test a bit.
First: see if the ipaq module gets inserted automatically when you boot the machine and/or then start the network?
Second: can you dial up your ISP and does ppp login automatically?
Third: Where/when does the resolv.conf appear, and does it automatically get copied over to /etc/resolv.conf? If not copied automatically, but it DOES appear, then we will need to do something about that, maybe a little script that does your dialing (calls wvdial, logs in etc..) and then copies/updates the resolv.conf file. THEN, after all this, if for whatever reason (which hopefully you won't need) we can have the script stop & restart the network, if you must have this happen for the connection to actually come to life.

I realize that the above post is probably rather convoluted & disorderly, but I think I have covered the basics of what needs to happen to get your connection working somewhat by itself when you dial out.
Keep us posted about what's going on, and if you need further help or clarification, you know where we're at.
OH--- What distro IS this you are using?

Sasha
 
Old 07-04-2009, 06:50 PM   #28
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OH - PS--- if the nameservers are the same every time (ideally they should be) then you can likely just leave the resolv.conf file configured and unless ppp re-writes it, they will remain there.
If ppp does re-write it each time it logs in, then that's OK too; either way, resolv.conf gets updated after connection.

S
 
Old 07-04-2009, 07:17 PM   #29
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
PPS - I think you'll need to also investigate in the options file the '+chap' or '+pap' options. I haven't got them enabled on mine, but again, I'm using kppp, not wvdial. And if your wvdial has a .conf file, definitely look in there too for options relating to the auto-login stuff.

S
 
Old 07-05-2009, 01:37 PM   #30
hadmanysons
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Original Poster
Rep: Reputation: 16
I'm using Fedora 11

Well, interestingly enough there ISN'T a resolv.conf being created in /etc/ppp. This might have something to do with the fact that I have to do a 'sudo killall pppd' before i do 'sudo wvdial' otherwise I get something to the effect of 'device or resource busy'. I've tried to install kppp but can't seem to find it.

On a happier note the modprobe script worked nicely, that's one hurtle over with.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DSL modem and ppp TreeHugger Linux - Hardware 1 08-21-2004 06:45 PM
PPP package errors ( installing USB DSL Modem) meat_n2_reg Linux - Software 7 11-05-2003 01:58 PM
Help Motorola 120t and usb modem via ppp cmisip Linux - Networking 0 07-01-2003 09:32 PM
PPP /w Conexant Modem Leben Linux - Hardware 4 01-28-2003 02:30 PM
PPP: modem not fount kosong Linux - Newbie 2 09-19-2001 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration