my goal is: Monitor the internet-bandwidth usage in my home-network. (to detect bandwidth-monsters)
problem: i am using a fritzbox 7390. as router, so i can see the complete used bandwidth, but not per IP.
Discarded Solution: Capture.html + Wireshark; Seems to work theoretically, but i would have to let a computer running to grap the capture.html file from the box. Unfortunately this crashes and leaves corrupted files now and then.
Raspberry Solution (Raspi+2NIC+ Bandwidthd +PortMirroring):
The Idea:
* The Router is connected to a cisco SG200-8, Port5
* The RaspiETH0 is connected to a cisco SG200-8, Port8
* The RaspiWLAN0 is connected to the FritzBox Wlan Accesspoint (to access the raspi via network)
MyProblem:
* Whenever I enable the Portmirroring on the Cisco: (Mirror Source Port5 to Destination Port8). The Networkconnection for the WLAN0 is gone.
That ETH0 under 192.168.2.150 is not reachable anymore is to be expected, but why does the WLAN0 also looses connection on 192.168.2.6
my interfaces:
Code: Select all
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
# source-directory /etc/network/interfaces.d
#auto wlan0 eth0
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.150
netmask 255.255.255.0
broadcast 192.168.2.255
network 192.168.2.0
gateway 192.168.2.1
auto eth1
iface eth1 inet static
address 192.168.2.153
netmask 255.255.255.0
broadcast 192.168.2.255
network 192.168.2.0
gateway 192.168.2.1
allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
address 192.168.2.6
netmask 255.255.255.0
broadcast 192.168.2.255
network 192.168.2.0
gateway 192.168.2.1
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSIDSSID"
psk="SECRETSECRET"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
I used this for port mirroring, Page 78ff PDF
Thanks Chris