LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-11-2016, 07:10 AM   #1
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
wvdial will not give me a gateway


I have been trying to connect to my vodafone prepaid internet via mobile broadband using wvdial and it will not give me a gateway IP. But the same device works using KDE's NetworkManager applet, I know the phone number, APN, device file and Init strings are right (as except the init strings,
the rest is the same in KDE NetworkManager that DOES work). I do not understand what I'm missing. I have pasted my wvdial.conf and the output from wvdial below;

wvdial.conf:

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","vfprepaymbb"
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = vodafone
Init1 = ATZ
Password = vodafone
Modem = /dev/ttyUSB0
Baud = 9600

wvdial output:

--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","vfprepaymbb"
AT+CGDCONT=1,"IP","vfprepaymbb"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 3600000
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Tue Oct 11 20:44:35 2016
--> Pid of pppd: 5435
--> Using interface ppp0
--> pppd: Connect: ppp0 <--> /dev/ttyUSB0
--> pppd: CHAP authentication succeeded
--> pppd: CHAP authentication succeeded
--> pppd: Could not determine remote IP address: defaulting to 10.64.64.64
--> local IP address 10.24.14.132
--> remote IP address 10.64.64.64
--> primary DNS address 10.143.147.147
--> secondary DNS address 10.143.147.148
^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> Connect time 0.3 minutes.
--> pppd: Sent 0 bytes, received 0 bytes.
--> pppd: Connection terminated.
--> Disconnecting at Tue Oct 11 20:44:50 2016
 
Old 10-12-2016, 06:46 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
add gateway still will not connect to internet

I had a look in my VM (with KDE NetworkManger that does work) and the gateway is the same (10.64.64.64), so this led me to check the kernel routing table (on my real PC) and there was no gateway there. But even after adding one (10.64.64.64 same as in my VM that does connect to the internet using the same device/mobile phone) it (the real PC) still would not connect to the internet, I even tried KPPP and that was the same result (would not connect to the internet), can somebody please help me as I do know what else to do. Landline internet is not an option for me right now, please, please can someone reply, please!

Edit: I am using PCLinuxOS 2016 that does not use KDE NetworkManager.

Last edited by jsbjsb001; 10-12-2016 at 06:48 AM.
 
Old 10-12-2016, 03:09 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
hmmm.
i used to use mobile broadband and wvdial, but i usually went straight to stupid mode. it did work.
what are you trying to achieve? just get connected to the internet on a standard desktop machine?

please post output of
Code:
ping google.com
ping 8.8.8.8
before and after connecting with wvdial.

according to your output, everything seems to be working until you have ctrl-c'd out of wvdial?

btw, it is possible that various different network managers are interfering.
 
Old 10-12-2016, 09:05 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I'm trying to connect to the internet, is the firewall blocking it? As that's the only other thing I can think of.
 
Old 10-12-2016, 11:28 PM   #5
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Did you try ondoho's suggestion first? What's the output?
 
Old 10-13-2016, 01:24 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
yes, did not help. It's something to do with some config in PCLinuxOS as even using Virtualbox with a bridged network connection still would not give me any internet on the real machine, but the VM once again will work (with KDE NetworkManager). Can someone who knows more about PCLinuxOS (and networking) please reply, please!
 
Old 10-13-2016, 04:34 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
There must be someone out there who knows why PCLinuxOS is not accepting my mobile internet connection, I have tried everything I know! I really do like PCLinuxOS but I did not have to go though this bulls**t with other distro's, can someone please help me, please, please, please!

Edit: Just disabled the firewall completely and finally got Internet on the real PC!! Now does anyone know which ports I should open so I can have the firewall enabled?

Last edited by jsbjsb001; 10-13-2016 at 04:47 AM.
 
Old 10-13-2016, 08:09 AM   #8
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Can someone please reply and tell me which f**king firewall ports to open so I can enable it AND have internet access, please!
 
Old 10-13-2016, 09:23 AM   #9
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
So, I've just read up about firewalls and from what I can understand it doen't seem like I need one enabled. As I'm not an expert in networking can anyone please tell me if I'm right??

Last edited by jsbjsb001; 10-13-2016 at 09:44 AM.
 
Old 10-13-2016, 01:50 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
not only did you not answer my questions (the commands were supposed to get us a better picture of your situation, not magically cure your ineptitude), you also cannot even wait 24 hours before starting to throw insults:
Quote:
Originally Posted by jsbjsb001 View Post
Can someone please reply and tell me which f**king firewall ports to open so I can enable it AND have internet access, please!
good luck with your f**king firewall.
 
Old 10-14-2016, 05:16 AM   #11
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by ondoho View Post
not only did you not answer my questions (the commands were supposed to get us a better picture of your situation, not magically cure your ineptitude), you also cannot even wait 24 hours before starting to throw insults:

good luck with your f**king firewall.
Not sure how that's an insult, frustration yes, so you obversely have not heard a lot of insults (lucky you) and/or lived with some of the people I have; but anyway B. I did not have to disable the firewall in other distros, which is why I did not understand why it would block pppd in the first place (sorry my lack of understanding upset you) and I will not ask you anything else. As for your *point* that (in your understanding) I did not answer your questions well A. I had already tried what was asked originally (BEFORE asking the question here) and B. disagree, as I think I did (sorry if my answer was not to your liking). And C. if landline internet WAS an option for me right now do you really think I would be going though all of this, well let me give you a CLEAR (or hopefully anyway) answer, NO I would NOT be, mate. I would get a landline internet connection and be done with it!! Once again sorry for your inconvenience!
 
Old 10-16-2016, 04:36 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
there's a few points here which are frowned upon in most forums and probably even break one or two forum rules:

impatiently demanding an answer without even providing the output that some helpful soul (yep, that would be me. i may enjoy the verbal fights, too, but i am also trying to help) asked for.
continuously replying to your own thread where an edit would have been sufficent, within a very short time-frame. as you sure know, this is refered to as bumping and is against the rules.
culminating in a post like this:
Quote:
Can someone please reply and tell me which f**king firewall ports to open so I can enable it AND have internet access, please!
- impatience
- demanding
- language
- no additional info
+ pretty please

btw, the lack of answers from other users should be an indicator for you, how NOT to do it.

i will give you another + for actually sharing your solution and properly marking the thread solved.

over and out.
 
Old 10-17-2016, 05:23 AM   #13
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Thumbs up

While I take your points in terms of most of what you said in your reply to my last post/reply, I did not honestly mean to insult anyone (including yourself). But I do honestly try and figure out for myself what I can, before asking any question here. I did not know it was against the rules to reply to your own thread but, will bear that in mind next time (thanks for the heads up, btw). And I'm more than happy to share any solutions I find and hopefully it can help others out (which is even better!), as I do much prefer using Linux over other systems (especially Windoz). Sorry if I once again upset you (or anyone else for that matter) as this was NOT the intention.
 
  


Reply

Tags
linux



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
DHCPD configuration to not give default gateway to a set of clients ugob Linux - General 1 07-25-2013 06:37 PM
LXer: Android Shmandroid. Give me Apple support or give me nothing. LXer Syndicated Linux News 0 02-16-2012 03:50 PM
Help with wvdial. Have wvdial not dial and wait till handshake. dragos240 Linux - Networking 2 01-14-2011 08:04 AM
LXer: Give Me Liberty or Give Me Eth LXer Syndicated Linux News 0 05-18-2010 02:41 PM
[SOLVED] Adding wvdial to start menu/desktop, running wvdial without shell. Mogget Linux - Desktop 1 08-07-2009 02:08 AM

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

All times are GMT -5. The time now is 03:10 AM.

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