LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-21-2007, 04:18 AM   #1
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
dial up on debian


helo

i managed to connect to the internet using internal modem on slackware
we
however incase of debian im able to dial out and the modem is logging onto the ISP but im unable to open any webpage

i entered the dns in /etc/resolv.conf

but the result was same

any other settings pl
 
Old 11-21-2007, 07:01 AM   #2
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
What error (if any) does the browser give? Does the status line say anything while it's trying to connect?

Does your browser have a proxy set up? If so, remove it - assuming your ISP offers a direct connection.

Can you ping a website by name from a command line? (eg. ping www.linuxquestions.org)

Do you have any other network interfaces configured on the machine (eg. an ethernet port?). If so, the modem must be set to configure itself (ppp0 usually) to be the default route and gateway on connection, otherwise packets that are for "outside" will go to the ethernet card (eg. eth0). Alternatively you can unconfigure any eth device you don't need (ie. if you have no LAN).

What does "route -n" produce when you're connected?

Cheers,
-nick
 
Old 11-21-2007, 09:06 AM   #3
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
im not even able to ping the DNS server

but yess on slackware verythin works cool

i even hacked the driver to give me 56 kbps

since im new to deb

i guess im missin something basic
 
Old 11-21-2007, 09:29 AM   #4
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
What's the output of "route -n" and "ifconfig" (maybe as root)?
 
Old 11-22-2007, 04:57 AM   #5
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
in deb

im getting the routing table with netstat -r

and with the ifconfig im seeing the interface as ppp0
 
Old 11-22-2007, 05:02 AM   #6
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
OK, but I wanted to see the (whole) output of the commands so that I could see whether the routes are perhaps directing non-local packets to another network interface rather than ppp0. Can you post the two commands' output please?

-nick
 
Old 11-23-2007, 05:21 AM   #7
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
i think ur guess is right when i try to ping an ip it says 192.168.1.2 is unable to ping

192.168.1.2 is the static ip of the eth card that im using

any ways i will post the output of the commmands as well

ok here is the output for debian

ankush:/home/ankush# ifconfig
eth1 Link encap:Ethernet HWaddr 00:1B:24:58:83:9D
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:135 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10549 (10.3 KiB) TX bytes:10549 (10.3 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:61.0.7.163 P-t-P:61.0.6.14 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:66 (66.0 b) TX bytes:87 (87.0 b)
ankush:/home/ankush# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
61.0.6.14 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1


i disabled my ethernet card also and then i also

#adduser ankush dip

i m able to ping the remote address

i added the dns entries in the /etc/resolv.conf
still the same problem

here is the output for slackware as well

root@ankush:~# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
61.0.6.14 * 255.255.255.255 UH 0 0 0 ppp0
loopback * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 0 0 0 ppp0
root@ankush:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:61.0.7.209 P-t-P:61.0.6.14 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:62 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:22657 (22.1 KiB) TX bytes:13153 (12.8 KiB)

Last edited by ankscorek; 11-23-2007 at 09:29 PM.
 
Old 11-26-2007, 06:14 AM   #8
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
Quote:
i think ur guess is right when i try to ping an ip it says 192.168.1.2 is unable to ping. 192.168.1.2 is the static ip of the eth card that im using
OK, so that probably tells us it still thinks "you" are 192.168.1.2, so you haven't completely shutdown the eth1 interface - the ping packets are trying to go out via eth1.

Quote:
ankush:/home/ankush# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
61.0.6.14 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
This looks odd (and explains the ping problem). The default route is still using the 192.168.1.1 as a gateway, even though ppp0 is up. You need to completely shut down eth1 (maybe) and override the default route with ppp0 - there should be an option somewhere in your dialer to make pppd set the default route when it connects.

Incidentally, you might be able to ping 61.0.6.14 in this state as that should route directly to your ISP host. But only that oneaddress will work until you set the default route!


Quote:
here is the output for slackware as well

root@ankush:~# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
61.0.6.14 * 255.255.255.255 UH 0 0 0 ppp0
loopback * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 0 0 0 ppp0
This looks more like it. I would expect the gateway for the default route to be shown as 61.0.6.14, but that may be the output of netstat (I'm used to using route -n). The default route is certainly ppp0, which is what you need.

You need to look into getting pppd to set the default route.

HTH,
-nick
 
Old 11-26-2007, 09:55 AM   #9
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Original Poster
Rep: Reputation: 31
well the problem was in disabling the eth1

ankush:/home/ankush# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
61.0.6.14 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
 
Old 11-26-2007, 10:26 AM   #10
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
Do you mean it works now?
 
Old 11-26-2007, 07:31 PM   #11
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
Is there a configuration utility in Debian Etch to configure a modem as in Slackware? I remember during setup Slackware asked for the location of the modem and would create the necessary device for this. This does not appear to be the case in Debian, as I have tried to configure wvdial with an ISA hardware modem that is set for COM2. Do I need to run setserial for this, as I believe that this should already be in place? If so, what parameters do I need to configure for setserial? Thanks.
 
  


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
how to configure dial up connection in debian sunnydayzrback Debian 2 06-07-2006 01:54 PM
debian on dial-up-- no internet bluesky2005 Linux - Networking 5 03-27-2005 03:19 PM
good dial up modem for debian? microsoft/linux Debian 4 03-14-2005 01:35 PM
Debian, dial-up internet connectivity - almost. kaens Linux - Newbie 5 02-12-2005 09:29 AM
Need to dial in to my debian box psytae Debian 1 09-28-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:48 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