BGP routing configuration between autonomous systems using Mikrotik routers, simulating a multi-AS interconnected network.
# 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
Same structure: configure interface IPs and add BGP peers to each neighbouring router according to the topology.
# 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
| Concept | Description |
|---|---|
| AS | Autonomous System β set of networks under a single routing policy, identified by an ASN. |
| BGP | Border Gateway Protocol β inter-AS routing protocol. |
| allow-as-in | Allows accepting routes that already contain the router own AS in the path. |
| redistribute-connected | Announces directly connected networks via BGP. |