[mrtg] Bandwidth settings for cable modem
Alex
mysqlstudent at gmail.com
Tue Jun 6 22:17:35 CEST 2017
Hi,
I'm trying to set up mrtg on my fedora25 system connected to a cable
modem (35Mbit up, 5Mbit down) on one side and a gigabit ethernet on
the other and can't figure out how to reflect that in the config file.
I'm trying to set it up to determine utilization, so it's important to
define the upper bound for both upload and download. Is this possible?
I've run the following cfgmaker command:
# cfgmaker --ifref=descr --ifdesc=alias -zero-speed=5000000
mysnmppass at orion.example.com
Here is the ifconfig output for my system. I've also included the
generated cfgmaker output (with 'example' as my domain) below. I don't
understand why it's defined eth0 and eth1 as 125MBit when it's
connected to a bridge on a gigabit network, and why it's chosen
625kbit for br0 when I've tried to define it as 5Mbit.
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 68.111.193.42 netmask 255.255.255.248 broadcast 68.111.193.47
inet6 fe80::ec4:7aff:fea9:18de prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:a9:18:de txqueuelen 1000 (Ethernet)
RX packets 5891321629 bytes 2564661840218 (2.3 TiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3670532823 bytes 22827372375556 (20.7 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 68.111.193.44 netmask 255.255.255.248 broadcast 68.111.193.47
ether 0c:c4:7a:a9:18:de txqueuelen 1000 (Ethernet)
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 0c:c4:7a:a9:18:de txqueuelen 1000 (Ethernet)
RX packets 6303244831 bytes 2755299573703 (2.5 TiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18098110833 bytes 24060466118480 (21.8 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xfb120000-fb13ffff
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ec4:7aff:fea9:18df prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:a9:18:df txqueuelen 1000 (Ethernet)
RX packets 22104249713 bytes 13271044125506 (12.0 TiB)
RX errors 0 dropped 0 overruns 44 frame 0
TX packets 16730830652 bytes 3413227489426 (3.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xfb100000-fb11ffff
eth1:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
ether 0c:c4:7a:a9:18:df txqueuelen 1000 (Ethernet)
device memory 0xfb100000-fb11ffff
eth1:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
ether 0c:c4:7a:a9:18:df txqueuelen 1000 (Ethernet)
device memory 0xfb100000-fb11ffff
eth1:2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.6.1 netmask 255.255.255.0 broadcast 192.168.6.255
ether 0c:c4:7a:a9:18:df txqueuelen 1000 (Ethernet)
device memory 0xfb100000-fb11ffff
eth1:3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255
ether 0c:c4:7a:a9:18:df txqueuelen 1000 (Ethernet)
device memory 0xfb100000-fb11ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 55198240 bytes 9250184967 (8.6 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 55198240 bytes 9250184967 (8.6 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:63:b9:2a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc54:ff:fe35:dd67 prefixlen 64 scopeid 0x20<link>
ether fe:54:00:35:dd:67 txqueuelen 1000 (Ethernet)
RX packets 174594324 bytes 160713095174 (149.6 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 200965168 bytes 104887504535 (97.6 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc54:ff:fe35:dd66 prefixlen 64 scopeid 0x20<link>
ether fe:54:00:35:dd:66 txqueuelen 1000 (Ethernet)
RX packets 16552006 bytes 139318192739 (129.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30615686 bytes 3092083364 (2.8 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Here is the mrtg.cfg with the disabled interfaces and unnecessary HTML
removed. I've also included the cfgmaker snmp info below.
EnableIPv6: no
Target[orion.example.com_eth0]: \eth0:mysnmppass at orion.example.com:
SetEnv[orion.example.com_eth0]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="eth0"
MaxBytes[orion.example.com_eth0]: 125000000
Title[orion.example.com_eth0]: eth0 -- orion.inside.example.com
PageTop[orion.example.com_eth0]: <h1>eth0 -- orion.inside.example.com</h1>
Target[orion.example.com_eth1]: \eth1:mysnmppass at orion.example.com:
SetEnv[orion.example.com_eth1]: MRTG_INT_IP="192.168.6.1" MRTG_INT_DESCR="eth1"
MaxBytes[orion.example.com_eth1]: 125000000
Title[orion.example.com_eth1]: eth1 -- orion.inside.example.com
PageTop[orion.example.com_eth1]: <h1>eth1 -- orion.inside.example.com</h1>
Target[orion.example.com_br0]: \br0:mysnmppass at orion.example.com:
SetEnv[orion.example.com_br0]: MRTG_INT_IP="68.111.193.42" MRTG_INT_DESCR="br0"
MaxBytes[orion.example.com_br0]: 625000
Title[orion.example.com_br0]: br0 -- orion.inside.example.com
PageTop[orion.example.com_br0]: <h1>br0 -- orion.inside.example.com</h1>
Target[orion.example.com_vnet0]: \vnet0:mysnmppass at orion.example.com:
SetEnv[orion.example.com_vnet0]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="vnet0"
MaxBytes[orion.example.com_vnet0]: 1250000
Title[orion.example.com_vnet0]: vnet0 -- orion.inside.example.com
PageTop[orion.example.com_vnet0]: <h1>vnet0 -- orion.inside.example.com</h1>
Target[orion.example.com_vnet1]: \vnet1:mysnmppass at orion.example.com:
SetEnv[orion.example.com_vnet1]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="vnet1"
MaxBytes[orion.example.com_vnet1]: 1250000
Title[orion.example.com_vnet1]: vnet1 -- orion.inside.example.com
PageTop[orion.example.com_vnet1]: <h1>vnet1 -- orion.inside.example.com</h1>
--base: Get Device Info on mysnmppass at orion.example.com:
--base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.8072.3.2.10
--base: Populating confcache
--base: Get Interface Info
--base: Walking ifIndex
--snpd: mysnmppass at orion.example.com: -> 1 -> ifIndex = 1
--snpd: mysnmppass at orion.example.com: -> 2 -> ifIndex = 2
--snpd: mysnmppass at orion.example.com: -> 3 -> ifIndex = 3
--snpd: mysnmppass at orion.example.com: -> 4 -> ifIndex = 4
--snpd: mysnmppass at orion.example.com: -> 5 -> ifIndex = 5
--snpd: mysnmppass at orion.example.com: -> 6 -> ifIndex = 6
--snpd: mysnmppass at orion.example.com: -> 7 -> ifIndex = 7
--snpd: mysnmppass at orion.example.com: -> 8 -> ifIndex = 8
--snpd: mysnmppass at orion.example.com: -> 9 -> ifIndex = 9
--base: Walking ifType
--snpd: mysnmppass at orion.example.com: -> 1 -> ifType = 24
--snpd: mysnmppass at orion.example.com: -> 2 -> ifType = 6
--snpd: mysnmppass at orion.example.com: -> 3 -> ifType = 6
--snpd: mysnmppass at orion.example.com: -> 4 -> ifType = 6
--snpd: mysnmppass at orion.example.com: -> 5 -> ifType = 131
--snpd: mysnmppass at orion.example.com: -> 6 -> ifType = 6
--snpd: mysnmppass at orion.example.com: -> 7 -> ifType = 6
--snpd: mysnmppass at orion.example.com: -> 8 -> ifType = 6
--snpd: mysnmppass at orion.example.com: -> 9 -> ifType = 6
--base: Walking ifAdminStatus
--snpd: mysnmppass at orion.example.com: -> 1 -> ifAdminStatus = 1
--snpd: mysnmppass at orion.example.com: -> 2 -> ifAdminStatus = 1
--snpd: mysnmppass at orion.example.com: -> 3 -> ifAdminStatus = 1
--snpd: mysnmppass at orion.example.com: -> 4 -> ifAdminStatus = 1
--snpd: mysnmppass at orion.example.com: -> 5 -> ifAdminStatus = 2
--snpd: mysnmppass at orion.example.com: -> 6 -> ifAdminStatus = 1
--snpd: mysnmppass at orion.example.com: -> 7 -> ifAdminStatus = 2
--snpd: mysnmppass at orion.example.com: -> 8 -> ifAdminStatus = 1
--snpd: mysnmppass at orion.example.com: -> 9 -> ifAdminStatus = 1
--base: Walking ifOperStatus
--snpd: mysnmppass at orion.example.com: -> 1 -> ifOperStatus = 1
--snpd: mysnmppass at orion.example.com: -> 2 -> ifOperStatus = 1
--snpd: mysnmppass at orion.example.com: -> 3 -> ifOperStatus = 1
--snpd: mysnmppass at orion.example.com: -> 4 -> ifOperStatus = 1
--snpd: mysnmppass at orion.example.com: -> 5 -> ifOperStatus = 2
--snpd: mysnmppass at orion.example.com: -> 6 -> ifOperStatus = 2
--snpd: mysnmppass at orion.example.com: -> 7 -> ifOperStatus = 2
--snpd: mysnmppass at orion.example.com: -> 8 -> ifOperStatus = 1
--snpd: mysnmppass at orion.example.com: -> 9 -> ifOperStatus = 1
--base: Walking ifMtu
--snpd: mysnmppass at orion.example.com: -> 1 -> ifMtu = 65536
--snpd: mysnmppass at orion.example.com: -> 2 -> ifMtu = 1500
--snpd: mysnmppass at orion.example.com: -> 3 -> ifMtu = 1500
--snpd: mysnmppass at orion.example.com: -> 4 -> ifMtu = 1500
--snpd: mysnmppass at orion.example.com: -> 5 -> ifMtu = 1332
--snpd: mysnmppass at orion.example.com: -> 6 -> ifMtu = 1500
--snpd: mysnmppass at orion.example.com: -> 7 -> ifMtu = 1500
--snpd: mysnmppass at orion.example.com: -> 8 -> ifMtu = 1500
--snpd: mysnmppass at orion.example.com: -> 9 -> ifMtu = 1500
--base: Walking ifSpeed
--snpd: mysnmppass at orion.example.com: -> 1 -> ifSpeed = 10000000
--snpd: mysnmppass at orion.example.com: -> 2 -> ifSpeed = 1000000000
--snpd: mysnmppass at orion.example.com: -> 3 -> ifSpeed = 1000000000
--snpd: mysnmppass at orion.example.com: -> 4 -> ifSpeed = 0
--snpd: mysnmppass at orion.example.com: -> 5 -> ifSpeed = 0
--snpd: mysnmppass at orion.example.com: -> 6 -> ifSpeed = 0
--snpd: mysnmppass at orion.example.com: -> 7 -> ifSpeed = 10000000
--snpd: mysnmppass at orion.example.com: -> 8 -> ifSpeed = 10000000
--snpd: mysnmppass at orion.example.com: -> 9 -> ifSpeed = 10000000
More information about the mrtg
mailing list