How to change MRTG reported interface names?

Discussion in 'Networking Issues' started by tango5, Jan 26, 2008.

  1. tango5

    tango5 Network Guru Member

    I have 2 Linksys RV042's and 1 Linksys RV082. I am using MRTG to pull the interface information from them. On the MRTG site it labels the interfaces simply as 3, 4, 5 and 6.

    How can I cross-reference the MRTG reported interface name (3,4,5,6) with the actual interface (DMZ, Internet, LAN1, LAN2, etc)?

    Also, if you know MRTG pretty well, is it easy to change the interface name so it appears on the MRTG site correctly? I would think I could do it in the HTML, but didnt know if I ran cfgmaker again if it would overwrite it.

    Thank you!
  2. Toxic

    Toxic Administrator Staff Member

  3. tango5

    tango5 Network Guru Member

    Thank you for that. I will make the changes right now!
  4. tango5

    tango5 Network Guru Member

    Thank you for the insight Toxic. That worked.

    I ran the command:
    "sudo cfgmaker --show-op-down --ifref=name --ifdesc=name commpub@ > /etc/mrtg.cfg"
    "sudo indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html"

    That named all the interfaces ixp0, ixp1, ixp2 and ipsec0.

    Judging by the traffic going across these ports, I am making the assumption that ixp0 is the WAN/Internet port, then ixp1 & ixp2 are the LAN ports, and ipsec0 is the VPN connection between this and another router.
    However, I am not 100% sure about this. Are these interface numbers documented anywhere which states ixp0=WAN port, ixp1=LAN, etc?

    On this router, I have something connected to LAN port #5 but not LAN port #1, although there is no ixp5 listed. So I assume the Linksys router automatically labels the first LAN port it sees as ixp1. I thought using the --show-op-down would list the inactive ports, just with no traffic.
    So, if I connect something to LAN port #1, will the Linksys automatically start using ixp1 for the LAN port #1, and change the current ixp1 to something else?

    I have been digging through the archives and Google looking for the answer, but am not coming up with much. So dont think I am being lazy not searching for the answers myself.

    Thank you for all your help.
  5. Toxic

    Toxic Administrator Staff Member

  6. tango5

    tango5 Network Guru Member

    Thanks again. Just to clarify, from that site it looks like
    LAN = ixp0
    WAN1 = ixp1
    WAN2 = ixp2

    You have been a lot of help, thank you!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice