I would like to set up a Raspberry PI as a router between two subnets on the same network using the standard built in ethernet interface.
The aim is to be able to use this to monitor network usage (with tshark
) in a network where it isn't possible to physically bridge the external internet connection and the local area network and where ethernet switches are in use so it is not possible to simply monitor all network traffic at any one point. This setup will rely on the cooperation of all users who will have to reassign their machines to the new subnet so that their traffic is routed through the PI.
I recognise that the Raspberry PI with it's USB based ethernet will introduce latency issues and that this isn't not an ideal scenario, but this is small scale experimental and it seems to be the least disruptive way of making this work. However, I'm open to alternative suggestions.
So far:
I have successfully installed
tshark
which works fine.I have successfully set up the device multi-homing by adding an additional
iface
definition foreth0:0
in/etc/network/interfaces
defined with an address on the additional subnet.I have successfully installed
brctl
(part of thebridge-utils
package).
However:
It appears that brctl
will only bridge between physical interfaces and doesn't want to know the additional virtual interface eth0:0
.
Is there a way of configuring brctl
to do this, or is there some alternative way of going about this?