{"id":657,"date":"2018-10-29T21:07:10","date_gmt":"2018-10-29T21:07:10","guid":{"rendered":"http:\/\/feralpacket.org\/?p=657"},"modified":"2018-10-29T21:07:10","modified_gmt":"2018-10-29T21:07:10","slug":"extranet-vpn-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=657","title":{"rendered":"Extranet VPN Notes"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">Extranet VPN<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/f6770599e4ee7399cda29cb171402329.jpeg\" style=\"\" width=\"600\" height=\"\"\/><\/p>\n<p>Customer 1 -&gt; Route-target 100:100 import \/ export<\/p>\n<p>Customer 2 -&gt; Route-target 200:200 import \/ export<\/p>\n<p>Scenario -&gt; R7 should receive 44.44.44.44 from Customer 1, but nothing else<\/p>\n<p>R7(config)# ip vrf c2b2<\/p>\n<p>\u00a0route-target both 200:200<\/p>\n<p>\u00a0route-target import 100:100<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; This will import all routes, so it will not work with this scenario.<\/p>\n<p><span style=\"font-weight: bold;\">Export Map \/ Import Map Feature<\/span><\/p>\n<p>On R1 for prefix 44.44.44.44 export route-target is 300:300 and everything else for Customer 1 is 100:100<\/p>\n<p>On R5, import both 100:100, import both 300:300<\/p>\n<p>On R7, import only 300:300 for Customer 1 and 200:200 for local routes<\/p>\n<p>R1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">access-list 1 permit 44.44.44.44<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-map RT<\/span><\/p>\n<p>\u00a0 <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">match ip add<\/span><\/p>\n<p>\u00a0 <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">set ext-community rt 300:300<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-map RT permit 20<\/span><\/p>\n<p>\u00a0 s<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">et ext-community rt 100:100<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip vrf c1b1<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&#8211;<\/span><\/p>\n<p>\u00a0 <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">no route-target export 100:100<\/span><\/p>\n<p>\u00a0 <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">export map RT<\/span><\/p>\n<p>\u00a0 <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">router-target import 100:100<\/span><\/p>\n<p>R3(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip vrf c1b2<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-target import 300:300<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-target import 100:100<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-target export 100:100<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip vrf c2b2<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-target import 200:200<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">route-target both 200:200<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Extranet VPN<\/p>\n","protected":false},"author":1,"featured_media":656,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[33,32,31],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-l3vpn","tag-mpls","tag-published"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=657"}],"version-history":[{"count":2,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":742,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions\/742"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/media\/656"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}