Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to connect to internet using ASDL

Reply
Thread Tools Display Modes

how to connect to internet using ASDL

 
 
news.pacific.net.hk
Guest
Posts: n/a

 
      05-07-2004, 05:03 AM
Dear all,

i am a Linux newbie recently installed Lorma Linux 4.0 in my PC (using
dual-boot). Till now i cannot connect to internet using ADSL. i have
consulted my ISP but recently they have very limited support for Linux, they
only provide FAQ for Linux on 56K dial-up, but not broadband (ADSL). i ask
the ISP support who told me they can use rp-pppoe to connect in Linux, no
specific setting required, but i failed.

Here is the details,
<<< after boot-up, i tried the followings,
root@localhost network-scripts]# tkpppoe
/usr/bin/tkpppoe: line 24: exec: wish: not found

[root@localhost floppy]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:18:714:E6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:315 errors:0 dropped:0 overruns:0 frame:0
TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:19075 (18.6 Kb) TX bytes:19107 (18.6 Kb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)

[root@localhost floppy]# route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
>>>

tk-pppoe (GUI version of rp-pppoe), can you tell me what is wish? and how
to solve?
Why i have 2 route table entries, i don't know where comes 169.254.0.0?

i have used adsl-setup to configure ppp0 connection, viz.;
<<<
USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=STANDALONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=eth0
PROVIDER=DSLppp0
USER='<my_username>'
PEERDNS=yes
DEMAND=no
PERSIST=no
>>>

i read part of DSL mini-HOWTO, i don't know how to configure as it mention
<<<
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.254 * 255.255.255.255 UH 0 0 0 eth1
208.61.124.1 * 255.255.255.255 UH 0 0 0 ppp0

192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 208.61.124.1 0.0.0.0 UG 0 0 0 ppp0
>>>

why there is eth1? i have only eth0 - one network card.


thanks & regards, caesar.


 
Reply With Quote
 
 
 
 
Ralf Herrmann
Guest
Posts: n/a

 
      05-07-2004, 06:56 AM
Hi,

> [root@localhost floppy]# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:E0:18:714:E6
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:315 errors:0 dropped:0 overruns:0 frame:0
> TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:19075 (18.6 Kb) TX bytes:19107 (18.6 Kb)


This shows, that your network card is not set up to be used.
Well, i don't know about the type of your DSL modem (got it from
your ISP). If it is connected via Ethernet to your netcard,
i think you have to give eth0 a static IP to get it to work
with the modem.

At least my gateway box does so (though i certainly have
a totally different DSL modem).
I set up eth0 with some (nevermind) static private IP and the rest
is done by your pppoe-Tool (when it is set up correctly).
So i suggest to try this, too. Take e.g. IP 192.168.22.1
netmask 255.255.255.0

How you can set up eth0 with such an IP, depends on your
distro.....
You can use ifconfig, of course, but you should make sure
that your settings are kept for each boot of your box....
so look for the appropriate config files.
Maybe the installer of your distro did set the device
to (auto) DHCP-configuration which will not work, when
eth0 is connected to a simple DSL modem.....

> i have used adsl-setup to configure ppp0 connection, viz.;
> <<<
> USERCTL=yes
> BOOTPROTO=dialup
> NAME=DSLppp0
> DEVICE=ppp0
> TYPE=xDSL
> ONBOOT=no
> PIDFILE=/var/run/pppoe-adsl.pid
> FIREWALL=STANDALONE
> PING=.
> PPPOE_TIMEOUT=80
> LCP_FAILURE=3
> LCP_INTERVAL=20
> CLAMPMSS=1412
> CONNECT_POLL=6
> CONNECT_TIMEOUT=60
> DEFROUTE=yes
> SYNCHRONOUS=no
> ETH=eth0
> PROVIDER=DSLppp0
> USER='<my_username>'
> PEERDNS=yes
> DEMAND=no
> PERSIST=no


Maybe you should set DEMAND=yes.
If you do so,each time internet access is requried,
your pppoe will dail up automatically.
If you leave it this way, you will have to start
pppoe yourself, when you want to go online.


> i read part of DSL mini-HOWTO, i don't know how to configure as it mention
> <<<
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.0.254 * 255.255.255.255 UH 0 0 0 eth1
> 208.61.124.1 * 255.255.255.255 UH 0 0 0 ppp0
>
> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default 208.61.124.1 0.0.0.0 UG 0 0 0 ppp0
>
> why there is eth1? i have only eth0 - one network card.


Well eth1 is usually present, when your PC has 2 netcards.
Maybe the howto reffered to a PC which might be used as a
internet gateway for a LAN (1 NIC would be connected to the
DSL modem and the other NIC to the LAN).
Nevermind this for your basic problem when you just want to go online
with your linux box.

HTH

Ralf
 
Reply With Quote
 
Ingo Strauch
Guest
Posts: n/a

 
      05-07-2004, 10:12 AM
On Fri, 07 May 2004 08:56:56 +0200, Ralf Herrmann wrote:
> Hi,
>
>> [root@localhost floppy]# ifconfig
>> eth0 Link encap:Ethernet HWaddr 00:E0:18:714:E6
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:315 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0
>> RX bytes:19075 (18.6 Kb) TX bytes:19107 (18.6 Kb)

>
> This shows, that your network card is not set up to be used.
> Well, i don't know about the type of your DSL modem (got it from
> your ISP). If it is connected via Ethernet to your netcard,
> i think you have to give eth0 a static IP to get it to work
> with the modem.


I'm not even sure the NIC needs an IP. At least it works also when
assigning it IP 0.0.0.0

Ingo

--
Ingo Strauch ---- Registered Linux User #227900 (http://counter.li.org/)
http://www.the-one-brack.org/

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-07-2004, 02:56 PM
news.pacific.net.hk <(E-Mail Removed)> wrote:

Up front: I haven't ever configured or used PPPoE ADSL.

> i am a Linux newbie recently installed Lorma Linux 4.0 in my PC (using
> dual-boot). Till now i cannot connect to internet using ADSL. i have
> consulted my ISP but recently they have very limited support for Linux, they
> only provide FAQ for Linux on 56K dial-up, but not broadband (ADSL). i ask
> the ISP support who told me they can use rp-pppoe to connect in Linux, no
> specific setting required, but i failed.


> Here is the details,
> <<< after boot-up, i tried the followings,
> root@localhost network-scripts]# tkpppoe
> /usr/bin/tkpppoe: line 24: exec: wish: not found


I've never heard of tkpppoe until just now.

> [root@localhost floppy]# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:E0:18:714:E6
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:315 errors:0 dropped:0 overruns:0 frame:0
> TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:19075 (18.6 Kb) TX bytes:19107 (18.6 Kb)


Looks good. You don't need any IP address for the Ethernet interface
that's used with PPPoE.

> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:10 errors:0 dropped:0 overruns:0 frame:0
> TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)


> [root@localhost floppy]# route -n


> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
>>>>

> tk-pppoe (GUI version of rp-pppoe), can you tell me what is wish? and how
> to solve?
> Why i have 2 route table entries, i don't know where comes 169.254.0.0?


The real question is "Why do you have a network route for 169.254.0.0/16
assigned to the loopback interface?" Smells like Wintendo.

> i have used adsl-setup to configure ppp0 connection, viz.;
> <<<
> USERCTL=yes
> BOOTPROTO=dialup
> NAME=DSLppp0
> DEVICE=ppp0
> TYPE=xDSL
> ONBOOT=no
> PIDFILE=/var/run/pppoe-adsl.pid
> FIREWALL=STANDALONE
> PING=.
> PPPOE_TIMEOUT=80
> LCP_FAILURE=3
> LCP_INTERVAL=20
> CLAMPMSS=1412
> CONNECT_POLL=6
> CONNECT_TIMEOUT=60
> DEFROUTE=yes
> SYNCHRONOUS=no
> ETH=eth0
> PROVIDER=DSLppp0
> USER='<my_username>'
> PEERDNS=yes
> DEMAND=no
> PERSIST=no
>>>>

> i read part of DSL mini-HOWTO, i don't know how to configure as it mention
> <<<
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.0.254 * 255.255.255.255 UH 0 0 0 eth1
> 208.61.124.1 * 255.255.255.255 UH 0 0 0 ppp0


> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default 208.61.124.1 0.0.0.0 UG 0 0 0 ppp0
>>>>

> why there is eth1? i have only eth0 - one network card.


It could be an alias for eth0, although I have no idea why it's there.

It may be a distribution-related thing. Look through the system
configuration files in /etc/<whatever>/ and/or find a way of getting
rid of it. Or maybe it's possible that it's be a left-over Wintendo
thing? (The last seems unlikely, but I don't dual-boot either.)

Another question is "How can there be routes for ppp0 when ifconfig
showed no PPP interface?"

What are some of the symptoms that cause you to believe you don't
have a viable PPPoE ADSL connection? Not counting the mysterious
eth1 or the missing PPP interface, it appears - from what I do know -
to be a good connection to me.

(If I read adsl-setup correctly then you have a 60 second connect
time-out set, which is not enough time to do much testing.)

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Those who can't write, write manuals. */
 
Reply With Quote
 
Ralf Herrmann
Guest
Posts: n/a

 
      05-07-2004, 04:46 PM
Hi Cliffort

>>[root@localhost floppy]# ifconfig
>> eth0 Link encap:Ethernet HWaddr 00:E0:18:714:E6
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:315 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0
>> RX bytes:19075 (18.6 Kb) TX bytes:19107 (18.6 Kb)

>
>
> Looks good. You don't need any IP address for the Ethernet interface
> that's used with PPPoE.


Well you are right in some way. The IP of eth0 is never used when
talking to the internet via ADSL.

But my own gateway has a static IP on the eth-interface connected
to the DSL modem and it works fine:-)
Just thought it could be one possible problem, although i don't know
if this IP is really needed.
It's been a while since i set up my gateway, but i have some
thought that this _was_ neccessary.
Anyways, when the distro install assigned DHCP for eth0
and it has no chance to get configured, it may - however -
prevent eth0 from working correctly......weho knows?

> The real question is "Why do you have a network route for 169.254.0.0/16
> assigned to the loopback interface?" Smells like Wintendo.


What is Wintendo? Sorry, it's abit off-topic, but i never heard of that....

>>192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
>>127.0.0.0 * 255.0.0.0 U 0 0 0 lo
>>default 208.61.124.1 0.0.0.0 UG 0 0 0 ppp0
>>
>> why there is eth1? i have only eth0 - one network card.

>
>
> It could be an alias for eth0, although I have no idea why it's there.
>


.......

>
> Another question is "How can there be routes for ppp0 when ifconfig
> showed no PPP interface?"


Guess you mixed up some things. This excerpt is from the mentioned
How-To and does not show the configuration in question.
At least i think it's this way.....


Ciao

Ralf
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-07-2004, 08:44 PM
Ralf Herrmann <(E-Mail Removed)> wrote:
> Hi Cliffort


>>>[root@localhost floppy]# ifconfig
>>> eth0 Link encap:Ethernet HWaddr 00:E0:18:714:E6
>>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>>> RX packets:315 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0
>>> RX bytes:19075 (18.6 Kb) TX bytes:19107 (18.6 Kb)

>>
>>
>> Looks good. You don't need any IP address for the Ethernet interface
>> that's used with PPPoE.


> Well you are right in some way. The IP of eth0 is never used when
> talking to the internet via ADSL.


> But my own gateway has a static IP on the eth-interface connected
> to the DSL modem and it works fine:-)


I just said an IP address wasn't needed, not that the Ethernet interface
couldn't be assigned an IP address (within reason - i.e, private).

> Just thought it could be one possible problem, although i don't know
> if this IP is really needed.
> It's been a while since i set up my gateway, but i have some
> thought that this _was_ neccessary.


Not for PPPoE ADSL.

> Anyways, when the distro install assigned DHCP for eth0
> and it has no chance to get configured, it may - however -
> prevent eth0 from working correctly......weho knows?


Me. PPPoE ADSL uses the PPP interface; the Ethernet interface is
only a convenient means of transport for PPPoE frames that allows
the speed expected of a regular ADSL connection (one that doesn't
use PPPoE). PPPoE is used only because it gives the ISP much more
control over the connection than is possible with regular ADSL.

With regular ADSL the Ethernet interface would have to get an IP address
with DHCP, but the IP address for PPPoE ADSL is the local address of the
PPP interface.

>> The real question is "Why do you have a network route for 169.254.0.0/16
>> assigned to the loopback interface?" Smells like Wintendo.


> What is Wintendo? Sorry, it's abit off-topic, but i never heard of that....


A term I picked up here from another poster. Substitute "dows host" for
"tendo". :-))

>>>192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
>>>127.0.0.0 * 255.0.0.0 U 0 0 0 lo
>>>default 208.61.124.1 0.0.0.0 UG 0 0 0 ppp0
>>>
>>> why there is eth1? i have only eth0 - one network card.

>>
>>
>> It could be an alias for eth0, although I have no idea why it's there.
>>


> ......


>>
>> Another question is "How can there be routes for ppp0 when ifconfig
>> showed no PPP interface?"


> Guess you mixed up some things. This excerpt is from the mentioned
> How-To and does not show the configuration in question.
> At least i think it's this way.....


Looking back I see what you mean, and I almost certainly *did*
misinterpret it.

So if the OP is reading this, that's how your routing should look
except substitute eth0 for eth1 but you needn't bother to configure an
IP address for eth0. The ifconfig output should show a PPP interface,
usually ppp0, and the local IP address will be your IP address for
the duration of the connection.

So the question "What are some of the symptoms that cause you to
believe you don't have a viable PPPoE ADSL connection?" is moot.
Now that Ralf has pointed out I misread your post, I see that you
don't have a connection. Period.

Look in the logs to see if there is anything related to your connection
attempt(s). Also find out what the message "/usr/bin/tkpppoe: line 24:
exec: wish: not found" means (is wish a shell of some sort?).

I suppose you are aware that you cannot use a 56 kb/s modem for a
PPPoE connection, and that digital lines to your house are required.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* In my book, the first poster to resort to personal abuse in a Usenet
debate loses by default. - Rod Smith */
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      05-07-2004, 09:01 PM
On Fri, 07 May 2004 13:03:44 +0800, news.pacific.net.hk wrote:
> i am a Linux newbie recently installed Lorma Linux 4.0 in my PC (using


I'm not familiar with the distro.

> <<< after boot-up, i tried the followings,
> root@localhost network-scripts]# tkpppoe
> /usr/bin/tkpppoe: line 24: exec: wish: not found


Did you do anything about this error? Look at line 24 of your
/usr/bin/tkpppoe and see that it tries to invoke "wish". You don't have
it installed. "wish" is a "Simple windowing shell" provided by the tk
package. The Slackware description for tk:

tk: tk (Tk toolkit for Tcl)
tk:
tk: Tk is an extension to Tcl that allows you to quickly and easily
tk: build X11 applications that have the look and feel of Motif apps.

> tk-pppoe (GUI version of rp-pppoe), can you tell me what is wish? and how
> to solve?


Install tk. That's a distro question.

> Why i have 2 route table entries, i don't know where comes 169.254.0.0?


I don't know either.

> why there is eth1? i have only eth0 - one network card.


Apparently something detected eth1.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to internet but can connect to Skype mail@robinwhite.fsnet.co.uk Wireless Internet 2 01-25-2008 06:40 AM
RE: Client can't connect to internet but can connect to SBS2003 =?Utf-8?B?QmVuIEZpbmtsZWE=?= Windows Networking 0 07-29-2004 08:21 PM
Which ASDL Broadband? me2@privacy.net Broadband 3 06-09-2004 11:53 AM
Trying to register for ASDL Mr Wizzo Broadband 3 06-07-2004 05:45 PM
unable to connect to internet, can connect to other PC through router doug mccausland Windows Networking 2 01-25-2004 02:26 PM



1 2 3 4 5 6 7 8 9 10 11