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: ifconfig  (Read 4306 times)

tickmike

  • Kitizen
  • ****
  • Posts: 3641
  • Yes Another Penguin !. :)
ifconfig
« on: December 06, 2014, 11:05:28 PM »

Eric uses 'ifconfig' for Linux DSLstats  If I remember windows uses 'ipconfig'

This is from my connection (with my ip's taken out !).
Any idea what they are, what are they all for ?,  I did look at the 'Man'page but not much wiser   :blush:  .
------------------------------------------------------------------------------
ifconfig
atm1      Link encap:Ethernet  HWaddr 84:A8:E4:03:0E:56 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:120220 errors:1 dropped:0 overruns:0 frame:0
          TX packets:109612 errors:78 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:101187551 (96.4 MiB)  TX bytes:4520526 (4.3 MiB)

br0       Link encap:Ethernet  HWaddr 84:A8:E4:03:0E:55 
          inet addr:x.y.z.110 <modem LAN address
 Bcast:x.y.z.111  <broadcast

Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56134 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5883734 (5.6 MiB)  TX bytes:83473892 (79.6 MiB)

eth0      Link encap:Ethernet  HWaddr 84:A8:E4:03:0E:55 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73753 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6900684 (6.5 MiB)  TX bytes:83774641 (79.8 MiB)
          Interrupt:40 Base address:0x6a00

eth0.5    Link encap:Ethernet  HWaddr 84:A8:E4:03:0E:55 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73753 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6900684 (6.5 MiB)  TX bytes:83774641 (79.8 MiB)
         

imq0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP RUNNING NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

imq1      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP RUNNING NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

imq2      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP RUNNING NOARP  MTU:16000  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:11000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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

pktcmf_sa Link encap:UNSPEC  HWaddr FE-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00 
          UP NOTRAILERS RUNNING NOARP  MTU:0  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:50 Base address:0x5220

pktcmf_sw Link encap:UNSPEC  HWaddr FE-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00 
          UP NOTRAILERS RUNNING NOARP  MTU:0  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:42 Base address:0x6a40

ppp256    Link encap:Point-to-Point Protocol 
          inet addr:x.y.z.105 <my WAN address
P-t-P:x.w.1.69  <My WAN gateway address

Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:120105 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109574 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:101269633 (96.5 MiB)  TX bytes:23820461 (22.7 MiB)

ptm1      Link encap:Ethernet  HWaddr 84:A8:E4:03:0E:57 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#
« Last Edit: December 14, 2014, 11:42:09 PM by tickmike »
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 33884
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: ifconfig
« Reply #1 on: December 07, 2014, 01:36:30 AM »

Quote
Any idea what they are, what are they all for ?,  I did look at the 'Man'page but not much wiser

Highly likely they are used for the traffic monitoring page, because thats the information that will be needed to count traffic flowing through the modem.   
 
I dont use it now because my present ISP monitors my bandwidth which I can easily view in their portal - but I did use it at one time with my previous ISP as it can be quite useful for those on ISPs that dont let you know how much bandwidth you are using each month.  It can even be set to give an alarm if you are approaching a bandwidth cap limit 

As you can see its looking for the no of packets transferred in each of the modems interfaces.  (rx & tx packets and rx & tx bytes) From these figures it attempts to calculate your bandwidth over say one month.

- see screen shot below.   

---
ETA
Erics page has some more info on the configuration
http://www.s446074245.websitehome.co.uk/trafficconfig.html
and theres also a screenshot here of what it looks like when monitoring bandwidth
http://www.s446074245.websitehome.co.uk/features.html#traffic
« Last Edit: December 07, 2014, 01:51:42 AM by kitz »
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43603
  • Penguins CAN fly
    • DSLstats
Re: ifconfig
« Reply #2 on: December 07, 2014, 07:19:56 AM »

Yes, that's correct - the ifconfig data is used for traffic monitoring purposes in DSLstats. I think that what's being requested here is more information about what the individual sections represent, and I have to admit that apart from guessing the obvious ones such as eth0, I'm fairly clueless.
Logged
  Eric

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ifconfig
« Reply #3 on: December 07, 2014, 03:25:13 PM »

Until such time as a wizard with knowledge of embedded systems comments, I'll provide my very limited understanding.

We must remember that the device in question is an embedded system using a Linux kernel. Therefore the OS itself has its own interfaces . . .

Taking the list of interfaces, above and reducing it to the bare minimum gives --

atm     
br       
eth
imq
lo       
pktcmf_sa
pktcmf_sw
ppp
ptm


My limited interpretation is --

atm -- an interface used when the device is configured for asynchronous transfer mode.
br -- a bridge interface.
eth -- a standard Ethernet interface.
imq -- ??
lo -- the local loopback interface.
pktcmf_sa -- ??
pktcmf_sw -- ??
ppp -- a interface used by the point to point protocol.
ptm -- an interface used when the device is configured for packet transfer mode.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43603
  • Penguins CAN fly
    • DSLstats
Re: ifconfig
« Reply #4 on: December 07, 2014, 04:09:29 PM »

imq appears to be intermediate queueing device

http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.imq.html

pktcmf relates to the DSL driver (various references)
Logged
  Eric

tickmike

  • Kitizen
  • ****
  • Posts: 3641
  • Yes Another Penguin !. :)
Re: ifconfig
« Reply #5 on: December 07, 2014, 09:08:54 PM »

Thanks all, that's interesting.
When they are put in there basic form then it comes clear what they are for.
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

Chrysalis

  • Content Team
  • Addicted Kitizen
  • *
  • Posts: 7405
  • VM Gig1 - AAISP CF
Re: ifconfig
« Reply #6 on: December 11, 2014, 11:53:15 AM »

Usually is the following on a typical linux embedded router.

Lan interface
Wan interface
PPP tunnel
Bridge interface
Localhost interface

But its not just that.

e.g. my asus creates a vlan on top of the wan interface, it also has seperate ipv6 interfaces.
Logged