mpls.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Mpls | dn42 wiki</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="robots" content="index, follow">
  8. <meta name="keywords" content="dn42,wiki,routing,bgp">
  9. <link rel="canonical" href="https://dn42.obl.ong/howto/mpls.html">
  10. <link rel="icon" type="image/x-icon" href="/favicon.ico">
  11. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  12. <link rel="author" type="text/html" href="/docs/people">
  13. <link rel="stylesheet" href="/css/normalize.css">
  14. <link rel="stylesheet" href="/css/simple.min.css">
  15. <link rel="stylesheet" href="/css/style.css">
  16. <link rel="stylesheet" href="/css/menu.css">
  17. </head>
  18. <body>
  19. <header>
  20. <b>dn42 wiki / Mpls</b>
  21. <div id="dn42_header">
  22. <p><a href="/"><img src="/dn42.png" alt="dn42" /></a></p>
  23. </div>
  24. </header>
  25. <main>
  26. <p>mpls label switching is faster because it’s a divide and conquer search in an ordered list, compared to routing, which is a longest prefix match, which is a search in a netmask deep tree</p>
  27. <p>and doing just label switching, especially with multiple labels, have consequences like</p>
  28. <p>you can provide vpns, be that layer2 or layer3 on the same infra, we can source-route through arbitrary paths we want, and so on….</p>
  29. <p>you can control visibility / reachability by route target export / imports, so you can hide various routes from specific endpoints, then they’ll become unreachable just for them, basically rendering packet filtering unnecesary</p>
  30. <p>hiding service addresses (ip / mac) from the infra resulting in less resource needs: in the simplest mpls, you dont need bgp route table only where the packet enters the network</p>
  31. <p>you can hide your core from traceroute by disabling ip ttl propagation</p>
  32. <p>hints:</p>
  33. <p>as being layer2.5 technology, you’ll need a tunnel which carry ethettype, like gre</p>
  34. <p>inside the core you can do ldp, rsvp-te (strategic or auto-tunnel) or segment-routing</p>
  35. <p>between two ases, you can enable ipv4/ipv6 labeled-unicast address family</p>
  36. <p>to do inter-as-mpls-vpn on top of it, you can enable rr-to-rr, asbr-to-asbr or rr-to-asbr vpnv4/vpnv6/vpls/evpn peerings</p>
  37. <p>more info at <a href="http://mpls.dn42/">http://mpls.dn42/</a> or at <a href="http://mp.ls/">http://mp.ls/</a></p>
  38. <p><a href="/howto/mpls-bird2">How to run MPLS with bird2</a></p>
  39. <p>participating networks:</p>
  40. <p>nop-mnt</p>
  41. <p>C4TG1RL5-MNT -
  42. <a href="https://git.lemonsh.moe/C4TG1RL5/dn42/src/branch/master/lab.rtr.famfo.catgirls.dn42/frr">frr configuration</a>
  43. <em>Please make sure you understand how to configure and use frr before you use anything from this configuration!</em></p>
  44. <p>planned:</p>
  45. <p>Fortless</p>
  46. <div id="menu-container" class="menu-container">
  47. <hr>
  48. <div id="menu" class="menu">
  49. <ul>
  50. <li><a href="/Home">Home</a>
  51. <ul>
  52. <li><a href="/howto/Getting-Started">Getting Started</a></li>
  53. <li><a href="/howto/Registry-Authentication">Registry Authentication</a></li>
  54. <li><a href="/howto/Address-Space">Address Space</a></li>
  55. <li><a href="/howto/BGP-communities">BGP communities</a></li>
  56. <li><a href="/FAQ">FAQ</a></li>
  57. </ul>
  58. </li>
  59. <li>How-To
  60. <ul>
  61. <li><a href="/howto/wireguard">Wireguard</a></li>
  62. <li><a href="/howto/openvpn">Openvpn</a></li>
  63. <li><a href="/howto/IPsec-with-PublicKeys">IPsec With Public Keys</a></li>
  64. <li><a href="/howto/tinc">Tinc</a></li>
  65. <li><a href="/howto/GRE-on-FreeBSD">GRE on FreeBSD</a></li>
  66. <li><a href="/howto/GRE-on-OpenBSD">GRE on OpenBSD</a></li>
  67. <li><a href="/howto/IPv6-Multicast">IPv6 Multicast (PIM-SM)</a></li>
  68. <li><a href="/howto/multicast">SSM Multicast</a></li>
  69. <li><a href="/howto/mpls">MPLS</a></li>
  70. <li><a href="/howto/Bird2">Bird2</a></li>
  71. <li><a href="/howto/frr">FRRouting</a></li>
  72. <li><a href="/howto/OpenBGPD">OpenBGPD</a></li>
  73. <li><a href="/howto/mikrotik">Mikrotik RouterOS</a></li>
  74. <li><a href="/howto/EdgeOS-Config">EdgeRouter</a></li>
  75. <li><a href="/howto/Static-routes-on-Windows">Static routes on Windows</a></li>
  76. <li><a href="/howto/networksettings">Universal Network Requirements</a></li>
  77. <li><a href="/howto/vyos1.4.x">VyOS</a></li>
  78. <li><a href="/howto/nixos">NixOS</a></li>
  79. </ul>
  80. </li>
  81. <li>Services
  82. <ul>
  83. <li><a href="/services/IRC">IRC</a></li>
  84. <li><a href="/services/Whois">Whois registry</a></li>
  85. <li><a href="/services/DNS">DNS</a></li>
  86. <li><a href="/services/IX-Collection">IX Collection</a></li>
  87. <li><a href="/services/Clearnet-Domains">Public DNS</a></li>
  88. <li><a href="/services/Looking-Glasses">Looking Glasses</a></li>
  89. <li><a href="/services/Automatic-Peering">Automatic Peering</a></li>
  90. <li><a href="/services/Repository-Mirrors">Repository Mirrors</a></li>
  91. <li><a href="/services/Distributed-Wiki">Distributed Wiki</a></li>
  92. <li><a href="/services/Certificate-Authority">Certificate Authority</a></li>
  93. <li><a href="/services/Route-Collector">Route Collector</a></li>
  94. </ul>
  95. </li>
  96. <li>Internal
  97. <ul>
  98. <li><a href="/internal/Internal-Services">Internal services</a></li>
  99. <li><a href="/internal/Interconnections">Interconnections</a></li>
  100. <li><a href="/internal/APIs">APIs</a></li>
  101. <li><a href="/internal/ShowAndTell">Show and Tell</a></li>
  102. <li><a href="/internal/Historical-Services">Historical services</a></li>
  103. </ul>
  104. </li>
  105. <li>Historical
  106. <ul>
  107. <li><a href="/historical/Bird">Bird 1</a></li>
  108. <li><a href="/historical/Quagga">Quagga</a></li>
  109. </ul>
  110. </li>
  111. <li>External Tools
  112. <ul>
  113. <li><a href="https://paste.dn42.us">Paste Board</a></li>
  114. <li><a href="https://git.dn42.dev">Git Repositories</a></li>
  115. </ul>
  116. </li>
  117. </ul>
  118. <hr />
  119. </div>
  120. </div>
  121. </main>
  122. <footer><div class="center">
  123. <div id="dn42_footer">
  124. <table>
  125. <tbody>
  126. <tr>
  127. <td>Hosted by: <a href="mailto:dn42@burble.com">BURBLE-MNT</a>, <a href="mailto:nurtic-vibe@grmml.net">GRMML-MNT</a>, <a href="mailto:xuu@dn42.us">XUU-MNT</a>, <a href="mailto:janeric@ortgies.it">JAN-MNT</a>, <a href="mailto:lare@lare.cc">LARE-MNT</a>, <a href="mailto:danny@saru.moe">SARU-MNT</a>, <a href="mailto:androw95220@gmail.com">ANDROW-MNT</a>, <a href="mailto:dn42@mk16.de">MARK22K-MNT</a></td>
  128. <td>Accessible via: <a href="https://wiki.dn42">dn42</a>, <a href="https://dn42.dev/">dn42.dev</a>, <a href="https://dn42.eu/">dn42.eu</a>, <a href="https://wiki.dn42.us/">wiki.dn42.us</a>, <a href="https://dn42.de/">dn42.de</a> (IPv6-only), <a href="https://dn42.cc/">dn42.cc</a> (wiki-ng), <a href="https://dn42.wiki/">dn42.wiki</a>, <a href="https://dn42.pp.ua/">dn42.pp.ua</a>, <a href="https://dn42.obl.ong/">dn42.obl.ong</a></td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. </div>
  133. </div>
  134. </footer>
  135. </body>
  136. </html>