Setting Up a Modem in Bridge Mode for a UDM router: A Step-by-Step Guide
Tags: networking, network, unifi, modem
Published: 2024-06-29 11:51:30

---
title: 'Setting Up a Modem in Bridge Mode for a UDM router: A Step-by-Step Guide'
published: true
description: 'Learn how to configure your modem in bridge mode to use it with a Unifi Dream Machine, allowing the UDM to handle the PPPoE connection'
tags: 'networking, network, unifi, modem'
cover_image: 'https://raw.githubusercontent.com/cloudx-labs/posts/main/posts/navarroaxel/assets/networking-bridge-mode.png'
id: 1596373
date: '2024-06-29T11:51:30Z'
---

I bought a Unifi Dream Machine (UDM) and then I called my ISP to change the modem to bridge mode, but they don't provide support for that. You should do it by yourself.

The simplest possible explanation of what we are doing in this post is: we're going to redirect the fiber signal from the ISP's modem to our UDM using an ethernet port of our router and the PPPoE is going to be resolved in our UDM.

Here I'm gonna show you a brief guide using my modem RTF8115VW provided by Movistar. I'll assume you know the basics and how to go to the control panel of your ISP's modem.

## Step #0, the backup

I couldn't find the backup configuration page on my modem, but if you have luck you have remembered to make a backup. It's nice to have a lifeguard if you make a mistake.

![Backup the router configuration page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3yvrpgprj9azgb0gq4ci.png)

## Step #1- the WAN interface

At first we need to remove the PPPoE WAN interface because the WAN connection is going to be resolved by our UDM.

💡 Remember to copy both user and password of your PPPoE connection.

Just select the PPPoE connection type in the grid and click on `Delete`. This operation can take up to a minute.

🧠 Take note of the VLAN of your PPPoE connection, you'll need it later.

![WAN interfaces list on the modem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fjeqlrs07bly9c5x1io3.png)

## Step #2 - Ingress Filtering

Now we're going to associate one ethernet port of our modem to the WAN port using the proper VLAN. For this, I used the ethernet port #4 for this, but it could be done with any eth port. Just check the `eth0.4` and click on `delete` to remove the current LAN configuration for this port.

![Ingress Filtering list on the modem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1i62fcge1u1ucu1hyaym.png)

Then, click the `Add` button to associate the port to the WAN interface with the following values:

`Order`: Lowest
`Ingress Interface`: your selected Ethernet port, `eth0.4` in this example.
`Associated Bridge`: Here just select the WAN interface.
`Ingress Packet`: `All` the packages. 😬
`VLAN ID`: the VLAN number that you copy from the previous step, 6 in this example.

![Completed Ingress Filtering configuration form](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3b1qggwxm3op23yzl8r8.png)

Then hit `Apply`, to complete this step. If you want to know more about ingress filtering you check it [here](https://en.wikipedia.org/wiki/Ingress_filtering).

## Step #3 - Egress Marking

We're going to mark the packages from the ethernet port number 4, but first we should delete the current configuration for this. Just click the `eth0.4` interface and then on the `Delete` button.

![Egress Marking list on the modem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zfccdspeoxyr86c6qr8u.png)

Now, we're going to mark the packages from `eth0.4` with the following values:

`Ingress Interface`: your Ethernet interface, `eth0.4` in this example.
`Associated Bridge`: select your WAN interface.
`Accepted Type`: `Tagged`.
`VLAN ID Re-Mark`: `-1`.
`Priority Re-Mark`: `1`.

![Completed Egress Marking configuration form](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bc83ylyy7rbfhx13kt4q.png)

💡 But is not `-1` a misconfiguration value for VLAN ID? 🤔 Well, I understand that this misconfiguration value overrides the `6` value that we used in our end. If you know more about this please comment, I want to hear from you! 💬

If you want to learn more about egress marking you can check the [QoS Packet Marking](https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/qos/b-quality-of-service/m_qos-mrkg.html) page from Cisco.

## Step #4 - the Wi-Fi

The most simple step with our modem, just turn off the Wi-Fi radio for 2.4 and 5 GHz and reboot your

## Step #5 - Ubiquiti

Now, we need to configure the WAN interface in the UDM, for me this is here: `/network/default/settings/internet`. Click on the WAN interface and let's configure it.

`Advanced`: I used `Manual` configuration.
`VLAN ID`: you should enter the same number used in the modem configuration, `6` in this example.
`IPv4 Connection`: `PPPoE` in the scenario.
`Username` and `Password`: credentials for your ISP.
`DNS Server`: you can use `Auto`, or Cloudflare (`1.1.1.1`), or Google (`8.8.8.8`), or anyone you want.
`IPv6 Connection`: I used `Disabled` for me.

![WAN interface configuration in the Unifi Dream Machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/twmaq5uxqqij0zw29mqm.png)

Finally submit your changes and wait for the internet connection to be established in our Unifi network. 🤞

## Conclusion

We've learned a few networking concepts that could be used to configure several modems in bridge mode, but be careful because different models or providers could require a little tweaks to make it work! And if you have another router, like a TP-Link, the PPPoE configuration is similar to what I show you in the UDM panel.

I want to thank Salvathore, because I couldn't make it without his [video tutorial](https://www.youtube.com/watch?v=A8CX1GWHECc).

I hope you enjoy your UDM as much as I do. 🖖