Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Getting stats from PPPoE modem using raspberry pi  (Read 3858 times)

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Getting stats from PPPoE modem using raspberry pi
« on: September 03, 2016, 06:35:27 PM »

I suspect that if I could get my raspberry pi initialised then I could collect stats from one of my three dlink DSL-320B-Z1 modems, but I would need to break in to the Ethernet cable between modem and router by putting the connection through a small switch. Thing is, I would also need to have a second network connection into the raspberry pi in order to get the info collected out to the rest of the world. Is there a way to get two network interfaces into a raspberry pi? Also, I have made zero progress getting the pi set up, because I've been far too ill in any case.  :-[

(Reasoning: I can't put everything in the same single existing LAN, I'm not willing to allow visitors access to the modems - security paranoia, plus the fact that there are three modems and I read that you have to mutually isolate the three PPPoE systems if you know what's good for you, because of the use of broadcast and weaknesses in the protocol designs.)
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43467
  • Penguins CAN fly
    • DSLstats
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #1 on: September 03, 2016, 07:23:05 PM »

Logged
  Eric

skyeci

  • Kitizen
  • ****
  • Posts: 1383
    • Line stats
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #2 on: September 03, 2016, 07:50:49 PM »

Do you think the usb adapter mentioned above would work on pi3 ? I need 2 physical lan connections in my pi3

Thanks

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #3 on: September 03, 2016, 09:01:27 PM »

@roseway Thankyou. What an utterly incredible piece of kit, a tribute to modern micro-miniaturisation in electronics. And the price!

Does anyone know about the possibilities for drivers and a software stack for such a phenomenal piece of hardware, need to make an o/s aware of it and believe in the idea of pumping Ethernet and IP down such a thing. I have heard of networking over USB before. Incredible. A lot of work done to earn less than an pound per unit.
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #4 on: September 03, 2016, 09:03:07 PM »

I've just had another thought, isn't there a wireless NIC on the latest top of the range raspberry pi?
Logged

skyeci

  • Kitizen
  • ****
  • Posts: 1383
    • Line stats
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #5 on: September 03, 2016, 09:42:43 PM »

Yes there is but I need 2 hardwired.

kitzuser87430

  • Reg Member
  • ***
  • Posts: 432
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #6 on: September 03, 2016, 09:56:40 PM »

Not 100% sure that one is linux compatible.

https://www.amazon.co.uk/Ethernet-Network-Adapter-Macbook-Chromebook/dp/B00MYT481C/

mentions linux
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43467
  • Penguins CAN fly
    • DSLstats
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #7 on: September 03, 2016, 10:54:11 PM »

I don't think these USB-Ethernet adaptors require any drivers, so they probably work on any OS with USB support. Just plug them in and they're ready to go.
Logged
  Eric

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #8 on: September 04, 2016, 04:05:55 AM »

What's the story concerning the software stack above the level of the hardware driver? USB is USB so that's easy enough, driver support for the USB level of things is already there. But we also presumably need a second driver for the NIC chipset hardware, guessing, or is that abstracted away behind some standard interface, or else is interface-compatible with some standard NIC hardware that is very commonly supported. Speculation.

Any additional, even higher-level software or special config required to make Linux love the idea of Ethernet over USB ?
Logged

ejs

  • Kitizen
  • ****
  • Posts: 2078
Re: Getting stats from PPPoE modem using raspberry pi
« Reply #9 on: September 04, 2016, 05:42:35 AM »

They will require a driver.

Code: [Select]
$ ls /lib/modules/4.4.17-v7+/kernel/drivers/net/usb/
asix.ko          cdc_subset.ko      ipheth.ko    plusb.ko       sr9700.ko
ax88179_178a.ko  cx82310_eth.ko     kalmia.ko    qmi_wwan.ko    sr9800.ko
catc.ko          dm9601.ko          kaweth.ko    r8152.ko       zaurus.ko
cdc_eem.ko       gl620a.ko          lg-vl600.ko  rndis_host.ko
cdc_ether.ko     hso.ko             mcs7830.ko   rtl8150.ko
cdc_mbim.ko      huawei_cdc_ncm.ko  net1080.ko   sierra_net.ko
cdc_ncm.ko       int51x1.ko         pegasus.ko   smsc75xx.ko

$ modinfo asix
filename:       /lib/modules/4.4.17-v7+/kernel/drivers/net/usb/asix.ko
license:        GPL
description:    ASIX AX8817X based USB 2.0 Ethernet Devices

So quite a few drivers included with the Linux kernel.
Logged
 

anything