Setup a wired network bridge – Raspberry Pi – Debian/Linux


I just got my hands on a RPI B. I am planning to use the RPI to log all tcp traffic on my server, and maybe also as a firewall but I have to test the RPI to see if it can handle all the data without dropping packages. it will needed to be placed between the router and the server to capture the traffic, and by default does RPI only have one Ethernet port. So i found a cheap used apple USB to Ethernet adapter for 8,09 Usd (bought in Denmark) i just had to plug the apple USB eth adapter in to the RPI and everything was working out of the box without having to install driver or anything.

setup router-server

FullSizeRender (5)

Step 1. check if your USB Ethernet adapter is detected by your system.

Plugin the usb ethernet adapter and go into the terminal and run these two commands :

The output should look something like this :

The output of ifconfig should look like this with an extra eth port, mine is eth1 (i didnt have any ethernet cable connected here and that is why there is no ip at eth0 :

Step 2. Setup the network bridge
Install bridge-utilis

Open /etc/network/interfaces with your favourite text editor

Delete the content of the file and copy paste the content below to the interface file. You will still have ssh access to your RPI.

Restart the system to detect the changes

You should now have a fully functional network bridge on your Debian/Linux system. plugin the ethernet cable from your router in et0 and the output in eth1.

Try to run ifconfig again on your RPI or debian/linux system. you should see this :

I have connected my laptop with manjaro/archlinux distro,  to the RPI and it is showing this :


  • Opaopa

    Excellent text. Worked perfectly for me on usb0 from cellphone tethering and eth0