{"id":3702,"date":"2012-02-19T23:23:56","date_gmt":"2012-02-19T23:23:56","guid":{"rendered":"http:\/\/www.wikisee.info\/?p=3702"},"modified":"2016-08-09T12:07:29","modified_gmt":"2016-08-09T12:07:29","slug":"bgp-set-as-path","status":"publish","type":"post","link":"https:\/\/wiki-see.info\/wp\/2012\/02\/19\/bgp-set-as-path\/","title":{"rendered":"BGP SET AS-PATH"},"content":{"rendered":"<p><span style=\"color: #000080;\">In the following example<\/span><span style=\"color: #000000;\">, the route map called set-as-path is applied to outbound<\/span> <span style=\"color: #000000;\">updates to the<\/span><br \/>\n<span style=\"color: #800000;\">neighbor 200.69.232.70<\/span>.<\/p>\n<p><span style=\"color: #000000;\">The route map will prepend the autonomous system path<\/span> <span style=\"color: #000000;\">&#8220;<\/span><span style=\"color: #800000;\">100 100<\/span><span style=\"color: #000000;\">&#8221; to routes that pass<\/span> <span style=\"color: #000000;\">access list 1.<\/span><br \/>\n<span style=\"color: #000000;\">The second part of the route map is to permit the advertisement of other routes.<\/span><\/p>\n<p><span style=\"color: #000080;\">router bgp 100<\/span><br \/>\n<span style=\"color: #000000;\">network 171.60.0.0<\/span><br \/>\n<span style=\"color: #000000;\">network 172.60.0.0<\/span><br \/>\n<span style=\"color: #000000;\">neighbor 200.69.232.70 remote-as 200<\/span><br \/>\n<span style=\"color: #000000;\">neighbor 200.69.232.70 route-map<\/span> <span style=\"color: #800000;\">set-as-path<\/span> <span style=\"color: #000000;\">out<\/span><br \/>\n<span style=\"color: #000000;\">!<\/span><br \/>\n<span style=\"color: #000000;\">route-map<\/span> <span style=\"color: #800000;\">set-as-path<\/span> <span style=\"color: #000000;\">10 permit<\/span><br \/>\n<span style=\"color: #000000;\">match address 1<\/span><br \/>\n<span style=\"color: #000000;\">set<\/span> <span style=\"color: #800000;\">as-path<\/span> <span style=\"color: #000000;\">prepend 100 100<\/span><br \/>\n<span style=\"color: #000000;\">!<\/span><br \/>\n<span style=\"color: #000000;\">route-map set-as-path 20 permit<\/span><br \/>\n<span style=\"color: #000000;\">match address 2<\/span><br \/>\n<span style=\"color: #000000;\">!<\/span><br \/>\n<span style=\"color: #000080;\">access-list 1 permit 171.60.0.0 0.0.255.255<\/span><br \/>\n<span style=\"color: #000080;\">access-list 1 permit 172.60.0.0 0.0.255.255<\/span><br \/>\n<span style=\"color: #000000;\">!<\/span><br \/>\n<span style=\"color: #000080;\">access-list 2 permit 0.0.0.0 255.255.255.255<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the following example, the route map called set-as-path is applied to outbound updates to the neighbor 200.69.232.70. The route map will prepend the autonomous system path &#8220;100 100&#8221; to routes that pass access list 1. The second part of the route map is to permit the advertisement of other routes. router bgp 100 network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[118],"class_list":["post-3702","post","type-post","status-publish","format-standard","hentry","category-bgp-2","tag-bgp-as-path"],"_links":{"self":[{"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/posts\/3702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/comments?post=3702"}],"version-history":[{"count":1,"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/posts\/3702\/revisions"}],"predecessor-version":[{"id":4973,"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/posts\/3702\/revisions\/4973"}],"wp:attachment":[{"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/media?parent=3702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/categories?post=3702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki-see.info\/wp\/wp-json\/wp\/v2\/tags?post=3702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}