Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
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: 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
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
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!
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
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?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
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??
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
Can someone please reply and tell me which f**king firewall ports to open so I can enable it AND have internet access, please!
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
Quote:
Originally Posted by ondoho
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!
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.