Skip to content

Ethernet Bridging and DHCP

The Mikrotik router bridges its Ethernet ports and provides a DHCP server for the internal network. This enables automatic IP assignment to all connected robot devices.

Default ports bridged

The following ports are part of the bridge:

  • ether1
  • ether2
  • ether3
  • ether4
  • ether5
  • wifi_AP (also part of the bridge)

They are joined under the bridge interface.

/interface bridge
add name=bridge

/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge interface=ether2
add bridge=bridge interface=ether3
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5
add bridge=bridge interface=wifi_AP

DHCP server

The DHCP server is attached to the bridge and distributes IPs in the 10.68.0.0/24 subnet.

/ip pool
add name=dhcp_pool0 ranges=10.68.0.200-10.68.0.210

/ip dhcp-server
add address-pool=dhcp_pool0 interface=bridge name=dhcp_bridge

/ip dhcp-server network
add address=10.68.0.0/24 dns-server=10.68.0.5 gateway=10.68.0.5 netmask=24 domain=pal-local

Clients connected via Ethernet or Access Point will receive an IP in this range.

Static IPs

Specific IPs are reserved in the .rsc configuration:

Device IP
Control PC 10.68.0.1
Router 10.68.0.5
Jetson 1 10.68.0.11
Jetson 2 10.68.0.12

Hostname resolution

The router provides local DNS resolution via static entries:

/ip dns static
add name=NameOfTheRobot-<sn>-control.pal-local. address=10.68.0.1
add name=NameOfTheRobot-<sn>-multimedia.pal-local. address=10.68.0.2
add name=NameOfTheRobot-<sn>-jetson1.pal-local. address=10.68.0.11
add name=NameOfTheRobot-<sn>-jetson2.pal-local. address=10.68.0.12

You can then SSH or ping using hostnames like:

ssh pal@NameOfTheRobot-<sn>-jetson1.pal-local