SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I am using Slackware 9.1 & I have problem getting my computer configured for internet access. I have an external modem(mobile phone connected to usb port) which gets connected but I am unable to browse. I am using the following command to connect to the internet
pppd /dev/modem 115200 debug usepeerdns defaultroute connect '/usr/sbin/chat -v "" at+cta=30 OK "atdt#777" CONNECT' mtu 264
I have checked the /etc/resolv.conf also in /etc/ppp/resolv.conf and found the following entries of my isp dns no:
ppp0 Link encap:Point-to-Point Protocol
inet addr:220.226.12.75 P-t-P:97.236.2.14 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:264 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:167 (167.0 b) TX bytes:119 (119.0 b)
I am using this ppp0 connection only, then what is this lo one?
I have connecting the same way in other distros and it gets connected, its not working in slackware only. I badly need help on this one as I have been trying this for more than an month.
I am using the following options in the etc/ppp/options file.
Put the line for search first, then nameserver. Since you have the addresses for the nameservers you can leave out usepeerdns. For static dns /etc/ppp/resolv.conf shouldn't exist. But, if you want to use dynamic dns then leave usepeerdns in there, but you must remove etc/ppp/resolv.conf each time and make a link from /etc/resolv.conf to /etc/ppp/resolv.conf. You may also need to ping the server periodically so the connection stays up.
For usepeerdns to work, put this in /etc/ppp/ip-up:
(ping -i 60 $5 &) >/dev/null 2>&1
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
and put this in /etc/ppp/ip-down:
killall ping 2>/dev/null
rm -f /etc/ppp/resolv.conf
rm -r /etc/resolv.conf
Since you know the addresses maybe it would be easiest just to run pppsetup and then connect/disconnect using the ppp-on/ppp-off scripts. It won't put the MTU references in there, but you can add them later.
If you want to use dynamic dns do a search here for dynamic dns and you'll find my script, which is an adaptation of pppsetup that will set you up for dynamic dns. Actually it would be a great help to me if you tried it, as I've been wanting to know if it works with other setups than my own.
here's the link: http://www.linuxquestions.org/questi...ht=dynamic+dns
I have tried that pppsetup earlier and it dosent work either same problems.
I will check the Host file and how do i know if it agrees with my HOSTNAME?
The strange thing is this ting works in all other distros, i follow the same in slackware and it dosent work.
make sure that your gateway isn't the same as your ip
it should be say if your ip is xxx.xxx.xxx.xxx then your gateway SHOULD be
xxx.xxx.xxx.1
don't quote me on this tho
this is just what i experience with my isps
i hope i am correct on this issue
to change the gateway do
# route add default gw xxx.xxx.xxx.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.