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

From LinuxMCE
Jump to: navigation, search
 
Line 3: Line 3:
 
# setup two network cards as normally
 
# setup two network cards as normally
 
# run pppoeconfig (follow instructions on screen)
 
# run pppoeconfig (follow instructions on screen)
# go into database - this is the SQL query for the database to see the current setting:  
+
# go into database - this is the SQL query for the database to see the current setting: <br>
 
  select * from Device_DeviceData where FK_Device=1 and FK_DeviceData=32;
 
  select * from Device_DeviceData where FK_Device=1 and FK_DeviceData=32;
the data will look something like this:
+
the data will look something like this:<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
 
  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
 
you'll have to change the proper ethX in that string (eth1 in my case) with ppp0
Line 11: Line 11:
 
# put /etc/init.d/start_pppoe.sh and link it to /etc/rc2.d/S10start_pppoe
 
# put /etc/init.d/start_pppoe.sh and link it to /etc/rc2.d/S10start_pppoe
  
Content of start_pppoe.sh :
+
Content of start_pppoe.sh :<br>
 +
 
  
 
  #!/bin/bash
 
  #!/bin/bash

Revision as of 08:24, 3 October 2006

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.

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)...

  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

  1. 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


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