WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ADSL2+ internet set-up problem with Tiny Core Linux  (Read 3169 times)

Offline tsalomon

  • Newbie
  • *
  • Posts: 5
ADSL2+ internet set-up problem with Tiny Core Linux
« on: April 23, 2013, 10:03:47 AM »
Hello everyone,

I have a D-Link ADSL2+ modem.
Under Windows : I have to give a user name and a password to connect to the internet. Server IP is 145.236.238.221
. The name of the device is WAN miniport(PPPOE). I always get another IP address so it seems to use DHCP.

Do I need to configure it with pppoe/pppd or should the ControlPanel->Network work?
If with pppoe then what about the  ControlPanel->Network settings? Just yes to DHCP and nothing else?
(This is what I have done)

I have read the threads in the forum about pppoe, installed it and solved the /etc/ppp/pppoe.conf read only problem.
I run sudo pppoe-setup give all the parameters and then sudo pppoe-start

But Apps and ScmApps cannot connect to the network

Thank you for your help as I am stuck with that for days :

Here are the outputs of ifconfig etc... :
tc@box:/etc/ppp$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:17:1A:DD:85 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:412 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7845 (7.6 KiB)  TX bytes:102715 (100.3 KiB)
          Interrupt:21 Base address:0x8c00

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:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1200 (1.1 KiB)  TX bytes:1200 (1.1 KiB)

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:188.6.63.183  P-t-P:145.236.238.221  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1038 (1.0 KiB)  TX bytes:1038 (1.0 KiB)


cat /etc/hosts
127.0.0.1 box localhost

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


cat /etc/resolv.conf
nameserver 145.236.238.221

tc@box:/etc/ppp$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
127.0.0.1       *               255.255.255.255 UH    0      0        0 lo
145.236.238.221 *               255.255.255.255 UH    0      0        0 ppp0


tc@box:/etc/ppp$ ping 145.236.238.221
PING 145.236.238.221 (145.236.238.221): 56 data bytes
64 bytes from 145.236.238.221: seq=0 ttl=255 time=20.367 ms
64 bytes from 145.236.238.221: seq=1 ttl=255 time=20.505 ms
64 bytes from 145.236.238.221: seq=2 ttl=255 time=20.014 ms
64 bytes from 145.236.238.221: seq=3 ttl=255 time=19.847 ms
^C
--- 145.236.238.221 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 19.847/20.183/20.505 ms




« Last Edit: April 26, 2013, 01:46:25 AM by tsalomon »

Offline tsalomon

  • Newbie
  • *
  • Posts: 5
Re: ADSL2+ internet set-up problem with Tiny Core Linux
« Reply #1 on: April 23, 2013, 10:37:52 AM »
The solution was to run the command
ipconfig /all
in a MS-DOS window
This shows the right DNS server(s).

Windows IP konfiguráció

        Állomásnév. . . . . . . . . . . . . . : quentium
        Elsődleges DNS-utótag . . . . . . . . :
        Csomóponttípus  . . . . . . . . . . . : Ismeretlen
        IP útválasztás engedélyezve . . . . . : Nem
        WINS-proxy engedélyezve . . . . . . . : Nem

Ethernet-adapter Helyi kapcsolat:

        Kapcsolatspecifikus DNS-utótag. . . . :
        Leírás. . . . . . . . . . . . . . . . : Realtek RTL8169/8110 Family Giga
bit Ethernet NIC
        Fizikai cím . . . . . . . . . . . . . : 00-16-XX-1A-XX-85
        DHCP engedélyezve . . . . . . . . . . : Igen
        Automatikus konfiguráció engedélyezve : Igen
        Automatikus konfiguráció IP-címe. . . : 169.254.54.164
        Alhálózati maszk. . . . . . . . . . . : 255.255.0.0
        Alapértelmezett átjáró. . . . . . . . :

PPP-adapter T-Online:

        Kapcsolatspecifikus DNS-utótag. . . . :
        Leírás. . . . . . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Fizikai cím . . . . . . . . . . . . . : 00-XX-XX-00-00-00
        DHCP engedélyezve . . . . . . . . . . : Nem
        IP-cím. . . . . . . . . . . . . . . . : 81.182.202.46
        Alhálózati maszk. . . . . . . . . . . : 255.255.255.255
        Alapértelmezett átjáró. . . . . . . . : 81.182.202.46
        DNS-kiszolgálók . . . . . . . . . . . : 84.2.44.1
                                                84.2.46.1
        NetBIOS a Tcpip felett. . . . . . . . : Letiltva
« Last Edit: April 26, 2013, 01:46:02 AM by tsalomon »

Offline tsalomon

  • Newbie
  • *
  • Posts: 5
Re: ADSL2+ internet set-up problem with Tiny Core Linux
« Reply #2 on: April 23, 2013, 03:09:30 PM »
Summary to setup a pppoe-DSL connection:
[(In the next days I will recheck it on another computer and add a tutorial video in my youtube channel)]

I can not make this work again on another computer...
I didn't film how I eventually succeeded to make it work, I only took notes and must have forgotten to write down something.

Download pppoe.tcz and its dependency pppd.tcz from
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/
Copy them to /tce/optional/
With Apps install pppoe.tcz as [OnBoot] +OnDemand (OnBoot creates only an empty /etc/ppp directory)
[Reboot with a back-up]
At boot pppoe creates the directory /etc/ppp/ and some files in it.
The trickiest part is that the configuration file /etc/ppp/pppoe.conf is a read only symbolic link
If you run pppoe-setup you get an error at the end.
So first you have to open /etc/ppp/pppoe.conf with an editor
save it as /etc/ppp/pppoe.conf.sample
remove the symbolic link
sudo rm /etc/ppp/pppoe.conf
Replace it by the copy
sudo cp /etc/ppp/pppoe.conf.sample /etc/ppp/pppoe.conf
now you can do the set up (as root):
sudo pppoe-setup

For the requested setup parameters if your connection is working under Windows type
ipconfig /all
in a MS-DOS window, this shows the right DNS server(s).

I am still not sure if and when you have to do something with ControlPanel->Network
In this case it was set to DHCP yes

+It is also not sure if the automatic configuration IP or maybe the gateway has to be added in the ControlPanel->Network Panel.

after the setup you can connect to the internet with
sudo pppoe-start
There are also the commands pppoe-stop and pppoe-status

To make the settings persistent
+remove pppoe.tcz from OnDemand application and and it to OnBoot
with a editor
add the 2 lines (without leading or ending “/”)
etc/ppp
etc/resolv.conf
to /opt/.filetool.lst
This will backup the ppp directory and the resolv.conf file at shut-down.

Exit with a backup

At boot pppoe recreates /etc/ppp/ but it is then replaced by the backup one.
That's why pppoe can not be OnDemand because you would always lose the content of /etc/ppp/ when launching it.

Now you should be able to install applications from the cloud with Apps or ScmApps

If the connection is not working have a look at the outputs of :
ifconfig
cat /etc/hosts
cat /etc/resolv.conf
route
You can also test your connection with ping
For example
ping 8.8.8.8

Sometimes it helps to do:
sudo ifconfig eth0 down
sudo ifconfig eth0 up

+++++
On the computer on which the connection works :
tc@box:~$ sudo pppoe-start
. Connected!
tc@box:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:XX:1A:DD:XX 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1295 (1.2 KiB)  TX bytes:12316 (12.0 KiB)
          Interrupt:21 Base address:0x8c00

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:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1200 (1.1 KiB)  TX bytes:1200 (1.1 KiB)

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:84.0.232.170  P-t-P:145.236.238.221  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:12 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:587 (587.0 B)  TX bytes:687 (687.0 B)

tc@box:~$ cat /etc/resolv.conf
nameserver 84.2.44.1
nameserver 84.2.46.1
tc@box:~$ cat /etc/hosts
127.0.0.1 box localhost

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

tc@box:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
127.0.0.1       *               255.255.255.255 UH    0      0        0 lo
145.236.238.221 *               255.255.255.255 UH    0      0        0 ppp0
tc@box:~$



On the other
sudo pppoe-start gives a timed out error.
in the output of ifconfig the last part with ppp0 is missing
in the output of route
there is only
127.0.0.1       *               255.255.255.255 UH    0      0        0 lo
but this line is missing
145.236.238.221 *               255.255.255.255 UH    0      0        0 ppp0


I don't know where this 145.236.238.221 comes from on the computer that is successfully connected to the net.
I cannot remember if I gave it in ControlPanel-Network or if I gave the automatic configuration IP address 169.254.54.164 and that configurated it. These IP adresses are not asked by pppoe-setup.
I suspect the key to this problem is how to use the ControlPanel-Network together with pppoe-setup.
First no DHCP an put the automatic configuration IP address the run pppoe-setup and then set DHCP to yes???
Could an expert user help?

Thank you!
« Last Edit: April 27, 2013, 07:40:22 AM by tsalomon »

Offline tsalomon

  • Newbie
  • *
  • Posts: 5
Re: ADSL2+ internet set-up problem with Tiny Core Linux
« Reply #3 on: May 03, 2013, 03:09:46 AM »
I am still struggling with the pppoe/DSL set up. But I managed to reproduce the successfull set up on one of my computers, but and the other one the same thing doesn't work. I filmed both set-ups if somebody could have a look at these videos and help it would be great. They are on youtube same username as here.

(Corrected) Summary to setup a pppoe-DSL connection:

For the requested internet connection setup parameters if your connection is working under Windows type ipconfig /all in a MS-DOS window, this shows the right DNS server(s).

Download pppoe.tcz and its dependency pppd.tcz from
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/
(Remark: pppsetup.tcz is for dial-up connection and is not needed)
Copy them to /tce/optional/
In a terminal type: sudo ifconfig eth0 down
With Apps install pppoe.tcz as Load App Locally
pppoe creates the directory /etc/ppp/ with some files in it
The trickiest part is that the configuration file /etc/ppp/pppoe.conf is a read only symbolic link,
so if you run pppoe-setup you get an error at the end.
So first you have to open /etc/ppp/pppoe.conf with the editor
save it as /etc/ppp/pppoe.conf.sample
remove the symbolic link
sudo rm /etc/ppp/pppoe.conf
Replace it by the copy
you can do that with with the editor by saving the file pppoe.conf.sample  as pppoe.conf
or in a terminal with: sudo cp /etc/ppp/pppoe.conf.sample /etc/ppp/pppoe.conf
Exit the Editor
now you can do the set up (as root):
sudo pppoe-setup

after the setup you can relaunch ethernet: sudo ifconfig eth0 up
and connect to the internet with: sudo pppoe-start
There are also the commands pppoe-stop and pppoe-status

Now you should be able to install applications from the cloud with Apps or ScmApps

If the connection is not working have a look at the outputs of :
ifconfig
cat /etc/hosts
cat /etc/resolv.conf
route
You can also test your connection with ping
For example: ping 8.8.8.8
or
ping www.google.com


To make the settings persistent, with a editor add the 2 lines (without leading or ending “/”)
etc/ppp
etc/resolv.conf
to /opt/.filetool.lst
This will backup the ppp directory and the resolv.conf file at shut-down.

Exit-reboot with a backup

At boot pppoe recreates /etc/ppp/ but it is then replaced by the backup one.
Pppoe must be OnBoot and not OnDemand because you would always lose the content of /etc/ppp/ when launching it.