Ethernet Bridge

In this tutorial, we are going to create an Ethernet Bridge using the Omega. An Ethernet Bridge is a device that shares its WiFi internet access through an Ethernet connection, similar to a WiFi dongle.

Our Omega’s WiFi and the Ethernet Expansion will allow this to be accomplished.

As an example, this type of setup can be used to bring internet access to a desktop computer that does not have a network adapter.

Overview

Tutorial Difficulty Intermediate
Time Required 10 mins
Required Materials Omega2 or Omega2+
Expansion Dock
Ethernet Expansion

The Expansion dock can be substituted with a Power Dock, Mini Dock, or Arduino Dock 2.

This tutorial will cover connecting to a WiFi network, configuring the Ethernet port to act as a host, and then bridge the wireless internet connection with an Ethernet connection.

Step 1: Connect Omega WiFi to the Internet

To begin, you’ll need to establish a wireless connection to the Internet on your Omega. Follow this guide to learn more on how to set up your Omega.

Step 2: Configure the Omega’s Ethernet Port

Connect your Ethernet Expansion to your Expansion Dock, and then plug in an Ethernet cord to set up the hardware.

What we need to do next is change the following code block located in /etc/config/network:

config interface 'wlan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option ipaddr '192.168.3.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

Change option ifname 'eth0.1' to option ifname 'eth0'

Restart the network service by running the follow command:

/etc/init.d/network restart

Step 3: Configure your Device to use Ethernet

Now that the Omega is configured, we should be able to connect with other devices via Ethernet.

Make sure that your connection is set to Obtain IP address and DNS address Automatically. It should be set so by default.

Windows

To do this on Windows, follow this guide

Mac OSX

To do this on Mac OSX, follow this guide