Difference between revisions of "How to setup ADSL access?"

From LinuxMCE
Jump to: navigation, search
(Brief instructions how to setup adsl network)
 
(15 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table><p>Setting up ADSL connection is not yet fully supported under Pluto. But there is relatively simple procedure to get it up and running. I'm posting my notes (hopefully didn'y forget anything important)...
+
{{versioninfo|810Status=Manual instructions|810UpdatedDate=3th March 2012|810UpdatedBy=[[User:Foxi352|Foxi352]]|1004Status=Applies|1004UpdatedDate=3th March 2012|1004UpdatedBy=[[User:Foxi352|Foxi352]]}}
 +
[[Category: Networking|ADSL]]
  
 +
= LinuxMCE 10.04 =
 +
Starting from 10.04 there is an experimental PPPoE support built-in that comes along with native IPv6 support. You have to update to latest version, minimum is build 25590.
 +
 +
== Requirements ==
 +
You must have a simple xDSL modem, or a router that you can switch to simple bridging/modem mode.
 +
 +
== How to setup ==
 +
This is very simple, as it should be. You login to your webadmin backend, an choose Advanced / Network / Network settings.
 +
In the external NIC section just activate the PPPoE checkbox and fill in your ISP username and password. You can optionally activate the Native IPv6 checkbox if your provider supports dual stack. This is NOT a v6 tunnel but NATIVE suppprt !!
 +
 +
Click Update and wait for your network to be reconfigured. PPPoE login should start automatically.
 +
 +
== How to troubleshoot ==
 +
Login to your core via SSH, and monitor pppd related entries in syslog with the following command:
 +
tail -f /var/log/syslog|grep ppp
 +
 +
= LinuxMCE <= 8.10 =
 +
 +
Setting up ADSL connection is not yet fully supported under LinuxMCE. But there is a relatively simple procedure to get it up and running. I'm posting my notes (hopefully didn't forget anything important)...<br>
 +
 +
== PPPoE ==
 
# setup two network cards as normally
 
# setup two network cards as normally
 
# run pppoeconfig (follow instructions on screen)
 
# run pppoeconfig (follow instructions on screen)
Line 8: Line 30:
 
  eth1,10.0.0.85,255.255.255.0,10.0.0.1,10.0.0.150|eth0,192.168.80.1,255.255.255.0<br>
 
  eth1,10.0.0.85,255.255.255.0,10.0.0.1,10.0.0.150|eth0,192.168.80.1,255.255.255.0<br>
  
you'll have to change the proper ethX in that string (eth1 in my case) with ppp0
+
you'll have to change the proper ethX in that string (eth1 in my case) with ppp0<br>
 +
 
 +
 
 +
4. put /etc/init.d/start_pppoe.sh and link it to /etc/rc2.d/S10start_pppoe<br>
  
# put /etc/init.d/start_pppoe.sh and link it to /etc/rc2.d/S10start_pppoe
 
  
 
Content of start_pppoe.sh :<br>
 
Content of start_pppoe.sh :<br>
Line 18: Line 42:
 
  export PATH="/usr/pluto/bin:$PATH"
 
  export PATH="/usr/pluto/bin:$PATH"
 
  . /usr/pluto/bin/pluto.func
 
  . /usr/pluto/bin/pluto.func
  if [[ -e /usr/pluto/install/.notdone ]]; then
+
  if [[ -e /usr/pluto/install/.notdone ]]; then exit 1
exit 1
+
 
  fi
 
  fi
 
  Logging "server" "1" "$0" "Running 'start_pppoe.sh' '' ( \"/etc/init.d/start_pppoe.sh\" )"
 
  Logging "server" "1" "$0" "Running 'start_pppoe.sh' '' ( \"/etc/init.d/start_pppoe.sh\" )"
Line 25: Line 48:
 
  pon dsl-provider
 
  pon dsl-provider
  
 +
<br>
 +
 +
4.a Alternative: Instead of doing 4 you can do following:
 +
 +
You could also simply append two lines
 +
/sbin/ifconfig eth0 up
 +
/usr/bin/pon dsl-provider
 +
 +
at the end of /etc/init.d/networking before "exit(0)", but I guess this will be overwritten by LinuxMCE. For me it works.
  
 
I hope that this will soon be easier to setup over web-admin page.
 
I hope that this will soon be easier to setup over web-admin page.
 +
<br>

Latest revision as of 03:05, 20 October 2012

Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Manual instructions 3th March 2012 Foxi352
1004 Applies 3th March 2012 Foxi352
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information

LinuxMCE 10.04

Starting from 10.04 there is an experimental PPPoE support built-in that comes along with native IPv6 support. You have to update to latest version, minimum is build 25590.

Requirements

You must have a simple xDSL modem, or a router that you can switch to simple bridging/modem mode.

How to setup

This is very simple, as it should be. You login to your webadmin backend, an choose Advanced / Network / Network settings. In the external NIC section just activate the PPPoE checkbox and fill in your ISP username and password. You can optionally activate the Native IPv6 checkbox if your provider supports dual stack. This is NOT a v6 tunnel but NATIVE suppprt !!

Click Update and wait for your network to be reconfigured. PPPoE login should start automatically.

How to troubleshoot

Login to your core via SSH, and monitor pppd related entries in syslog with the following command:

tail -f /var/log/syslog|grep ppp

LinuxMCE <= 8.10

Setting up ADSL connection is not yet fully supported under LinuxMCE. But there is a relatively simple procedure to get it up and running. I'm posting my notes (hopefully didn't forget anything important)...

PPPoE

  1. setup two network cards as normally
  2. run pppoeconfig (follow instructions on screen)
  3. go into database - this is the SQL query for the database to see the current setting:
select * from Device_DeviceData where FK_Device=1 and FK_DeviceData=32; 

the data will look something like this:

eth1,10.0.0.85,255.255.255.0,10.0.0.1,10.0.0.150|eth0,192.168.80.1,255.255.255.0

you'll have to change the proper ethX in that string (eth1 in my case) with ppp0


4. put /etc/init.d/start_pppoe.sh and link it to /etc/rc2.d/S10start_pppoe


Content of start_pppoe.sh :


#!/bin/bash
export PATH="/usr/pluto/bin:$PATH"
. /usr/pluto/bin/pluto.func
if  -e /usr/pluto/install/.notdone ; then exit 1
fi
Logging "server" "1" "$0" "Running 'start_pppoe.sh'  ( \"/etc/init.d/start_pppoe.sh\" )"
ifconfig eth1 up
pon dsl-provider


4.a Alternative: Instead of doing 4 you can do following:

You could also simply append two lines

/sbin/ifconfig eth0 up
/usr/bin/pon dsl-provider

at the end of /etc/init.d/networking before "exit(0)", but I guess this will be overwritten by LinuxMCE. For me it works.

I hope that this will soon be easier to setup over web-admin page.