Bridge Network Interfaces

Linux Only

A bridge interface is a virtual interface which acts as a network switch. It is normally linked to a physical interface and multiple other virtual interface. These virtual interface can include VLAN tagged interfaces.

VLAN setup

ThingsNet is Wifi SSID which is on VLAN 20, with hub IP adddress of 172.20.0.1/16

Mikrotik Router is set as follows:

  • Wireless Bridge is ssetup as usualy. The 2 interfaces (2.4G and 5G) are added to bridgeIoT.
  • BridgeIoT, is set to PVID=20, but with Frame Types = admit all, I think that is irrelevant.
  • An interface called ether1vlan20 was created, wioth VLAN ID=20 and INterface= ether1.
  • That interface, ether1vlan20, is also adedd to the bridgeIoT, with PVID=20, FrameTyper = admit only tagged and proirity tagged, with Ingress Filtering ticked.

On a computer which can access those devices:

  • to create interface
  • ip link add link enp37s0 name enp37s0.20 type vlan id 20
  • to give it an IP address
  • sudo ip addr add 172.20.0.2/16 dev enp37s0.20
  • to give it a route
  • ip route add 172.20.0.0/16 dev enp37s0.20

My computer can access devices on that network and that device can access my computer and the internet.