← Back to home
BGP Sistemas AutΓ³nomos Mikrotik Routing Redes

Autonomous Systems Analysis with BGP

Feb 15, 2022

BGP routing configuration between autonomous systems using Mikrotik routers, simulating a multi-AS interconnected network.

Topology

Router A Configuration (AS 65000)

# Configure interface IPs:
ip address add address=[ip/mask] interface=[iface]

# Create bridge interface:
interface bridge add name=bridge1

# Configure BGP:
routing bgp instance set default as=65000 redistribute-connected=yes

# Add BGP peers:
routing bgp peer add remote-address=10.1.1.2 remote-as=100 allow-as-in=1
routing bgp peer add remote-address=10.1.1.6 remote-as=100 allow-as-in=1

Routers B, C, D, E, F

Same structure: configure interface IPs and add BGP peers to each neighbouring router according to the topology.

Verification

# From Router A β€” ping Router F:
ping 10.3.3.2

# View full routing table:
ip route print detail

# From Router F β€” verify reachability:
ip route print

Key Concepts

ConceptDescription
ASAutonomous System β€” set of networks under a single routing policy, identified by an ASN.
BGPBorder Gateway Protocol β€” inter-AS routing protocol.
allow-as-inAllows accepting routes that already contain the router own AS in the path.
redistribute-connectedAnnounces directly connected networks via BGP.