In the area of network administration, Community configurations play a fundamental role in allowing the grouping and tagging of routes within an Autonomous System (AS) to facilitate its management and optimize routing.
At the end of the article you will find a small test that will allow you assess the knowledge acquired in this reading
In this article, we will explore what Community configurations are, how they are used, and provide practical examples of their implementation in the MikroTik RouterOS operating system.
1. What are Community?
In the context of network routing, a Community is a numerical or alphanumeric label attached to a specific route.
Community configurations allow network administrators to group and control the flow of traffic within an AS.
Each Community has a predefined meaning that indicates how a particular route should be handled. These labels are used by routers to make routing decisions.
2. Community Settings Utilities:
2.1. Routing control
Community configurations allow network administrators to control traffic flow using routing policies based on specific labels.
For example, you can set a policy that prioritizes certain types of traffic or avoids specific routes to optimize network performance.
2.2. Route filtering
By assigning Community settings to routes, administrators can filter and control which routes are advertised or accepted in different parts of the network.
This allows granular control over which traffic is allowed or denied based on specific criteria, such as geographic location, service provider, or performance requirements.
2.3. Implementation of traffic policies
Using Community settings, administrators can apply detailed and specific traffic policies on their network.
For example, they can establish preferential routing policies for certain types of traffic, such as voice over IP (VoIP) or real-time streaming services, ensuring better quality of service (QoS) for these critical applications.
3. Examples of creating Community in MikroTik RouterOS:
3.1. Route filtering
MikroTik RouterOS also allows you to filter routes using Community settings.
For example, to filter all routes with the Community “65000:200”, you can use the command
/routing filter add chain=bgp-out prefix=0.0.0.0/0 set-bgp-communities=65000:200 action=discard
3.2. Routing policies
By manipulating Community configurations, routing policies can be applied.
For example, to set a preferential routing policy for a specific type of traffic, you can use the command
/routing filter add chain=bgp-out prefix=192.168.0.0/24 set-bgp-communities=65000:300 action=accept
4. Format of a Community
Within an Autonomous System (AS), a community is represented as a numerical or alphanumeric value attached to a specific route. The format of a community within an SA is generally made up of two parts: the Autonomous System number and a specific value. Below is an example of a community format in the context of an SA:
Community format: ASX:YY
Where:
– ASX represents the number of the Autonomous System to which the community belongs.
– YY is a specific value that is assigned to the community to indicate its purpose or function.
It is important to note that the format and exact interpretation of communities may vary depending on the SA and routing protocol used. Additionally, specific values assigned to communities can have predefined meanings or be defined by network administrators based on their needs.
Communities are used for a variety of purposes within an SA, such as routing control, route filtering, traffic policy enforcement, and route aggregation. The interpretation and use of communities depends on the router and the routing protocol implemented in the SA.
Conclusion
Community configurations are powerful tools for optimizing network management and traffic routing in an Autonomous System.
With MikroTik RouterOS, administrators can assign Community tags to routes, filter routes based on specific tags, and apply detailed routing policies.
By properly understanding and leveraging Community configurations, administrators can achieve greater efficiency, security, and control over their networks.
Brief knowledge quiz
What do you think of this article?
Do you dare to evaluate your learned knowledge?
Recommended book for this article
BGP and MPLS RouterOS v7 book
Study material for the MTCINE Certification Course updated to RouterOS v7
Related Posts
- Exploring VRF (Virtual Routing and Forwarding): Segmentation and Efficiency in Business Networks
- Virtual Private LAN Service (VPLS): An advanced approach to network connectivity
- BGP RPKI in MikroTik RouterOS: Concepts, Uses and Scenarios
- What is an Autonomous System
- BGP Protocol: History, messages and configuration on MikroTik RouterOS devices