{"id":655,"date":"2018-10-29T21:06:33","date_gmt":"2018-10-29T21:06:33","guid":{"rendered":"http:\/\/feralpacket.org\/?p=655"},"modified":"2018-10-29T21:06:33","modified_gmt":"2018-10-29T21:06:33","slug":"ospf-sham-links-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=655","title":{"rendered":"OSPF Sham Links Notes"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">OSPF Sham Links<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/265146e05fe25529aa921dc11f805b6a.jpeg\" style=\"\" width=\"600\" height=\"\"\/><\/p>\n<p>If the customer is using a\u00a0back door\u00a0link that is in area 0, then this link will always be preferred over the MPLS L3VPN connection<\/p>\n<p>\u00a0&#8211; The\u00a0back door\u00a0link updates type 1 LSAs<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Intra-Area<\/p>\n<p>\u00a0&#8211; The MPLS L3VPN updates are<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; type 3 LSAs (Inter-Area) if the OSPF process-ids match<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; type 5 LSAs (External 2) if the OSPF process-ids do not match<\/p>\n<p>The solution is to change the MPLS L3VPN updates to type 1 LSAs<\/p>\n<p>\u00a0&#8211; Achieved by using a sham-link<\/p>\n<p><span style=\"font-weight: bold;\">Configuration<\/span><\/p>\n<p>\u00a01. Create new loopback interfaces on the PE routers<\/p>\n<p>\u00a02. Associate the loopbacks with the VRF<\/p>\n<p>\u00a03. Advertise the loopbacks in the BGP address-family VRF<\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; Do not advertise the loopbacks into the PE &#8211; CE OSPF process<\/p>\n<p>\u00a04. Create the sham-link in the VRF OSPF on the PE routers<\/p>\n<p>\u00a05. Increase the cost on the interface of the backdoor link<\/p>\n<p>Sham-link loopback interfaces must be \/32 bit<\/p>\n<p>R1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">int lo10<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip vrf forwarding c1b1<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip add 50.0.0.1 255.255.255.255<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">router bgp 100<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">address-family ipv4 vrf c1b1<\/span><\/p>\n<p>\u00a0 <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">network 50.0.0.1 mask 255.255.255.255<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">router ospf 10 vrf c1b1<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">area 0 sham-link 50.0.0.1 50.0.0.2 cost 1<\/span><\/p>\n<p>\u00a0 \u00a0 \u00a0-&gt; 50.0.0.2 is the loopback IP address on the other PE router<\/p>\n<p>R4(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">int s0\/0<\/span><\/p>\n<p>\u00a0<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">ip ospf cost 10000<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OSPF Sham Links<\/p>\n","protected":false},"author":1,"featured_media":654,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[51,24,31,50],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-mpls-l3vpn","tag-ospf","tag-published","tag-sham-link"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/655","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=655"}],"version-history":[{"count":1,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":740,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions\/740"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/media\/654"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}