fbpx

If two providers are being used, the first provider is a connection through pppoe and the other through dhcp, can there be distance 1 on each of the routes in MikroTik?

In this type of case the addresses are dynamic and the default route either through PPPoE or dhcp is delivered dynamically, therefore the two routes will have administrative distance equal to 1, for this type of scenarios the router generally selects its route By default, with whom I generate the connectivity first, however, these distances can be changed in the client PPPoE tunnel, which can be done from the interfaces using the option “Default Route Distance”, while in the dhcp client this distance can be modified using the option “Default Route Distance” which is in advanced.

In MikroTik RouterOS, it is possible to configure multiple WAN interfaces with different connection methods, such as PPPoE (Point-to-Point Protocol over Ethernet) for one provider and DHCP (Dynamic Host Configuration Protocol) for another. These interfaces can have routes assigned in the MikroTik routing table, and each route can have an assigned administrative distance that will influence the route selection in case of multiple routes to the same network.

The administrative distance, known in MikroTik RouterOS as “distance”, is a parameter that helps determine the preference of a route; a smaller distance has more priority over a larger distance.

We explain how this can be configured in a scenario with two providers:

  1. Interface Configuration:
    • PPPoE: You configure a PPPoE interface with your first provider. This interface establishes the connection automatically and obtains an IP address directly from the provider through the PPPoE protocol.
    • DHCP: The second interface is configured to obtain an IP address automatically from another provider via DHCP. This is a common configuration when the router is connected directly to a modem that dynamically provides IP.
  2. Route Configuration:
    • For each interface, a default route can be established that directs traffic to the Internet. Typically, these routes are automatically configured by the PPPoE and DHCP client in MikroTik upon connection establishment.
    • You can manually adjust the distance of these routes. For example, if both providers are equally trusted and you want them to participate in load balancing or you simply want to have a direct backup route without specific preference, you can configure both routes with the same distance, such as distance=1.
  3. Load balancing or Failover:
    • Load balancing: If you configure both routes with the same distance and have load balancing configuration (for example, using PCC in MikroTik), the traffic could be distributed between both connections according to the defined rules.
    • Failover: If one connection fails, the other can take all traffic automatically, assuming both routes have the same priority due to their equal distance.
  4. Monitoring and Maintenance:
    • It is important to monitor the connection to ensure that both routes are working as expected. MikroTik RouterOS offers several tools to monitor and diagnose network connections.

In conclusion, it is possible to have distance 1 on each of the routes in MikroTik when using multiple providers with different connection methods, such as PPPoE and DHCP. This configuration can be useful for implementing load balancing or high availability scenarios.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011