{"id":159,"date":"2015-11-20T16:32:42","date_gmt":"2015-11-20T15:32:42","guid":{"rendered":"http:\/\/www.ospf.it\/?p=159"},"modified":"2015-11-20T16:39:56","modified_gmt":"2015-11-20T15:39:56","slug":"configurazione-bgp","status":"publish","type":"post","link":"https:\/\/www.ospf.it\/configurazione-bgp\/","title":{"rendered":"Configurazione BGP"},"content":{"rendered":"

Ecco un possibile esempio \u00a0(semplice) di \u00a0configurazione di una istanza bgp<\/strong> e redistribuzione delle rotte \u00a0ospf:<\/strong><\/p>\n

NODE A:<\/strong><\/p>\n

hostname bgpd-router<\/span><\/em><\/p>\n

bgp config-type cisco<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

password xxx<\/span><\/em><\/p>\n

enable password\u00a0xxx<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

<\/p>\n

router bgp 65063<\/span><\/em><\/p>\n

no synchronization<\/span><\/em><\/p>\n

bgp router-id 10.0.0.1<\/span><\/em><\/p>\n

redistribute ospf<\/span><\/em><\/p>\n

network 10.0.0.0\u00a0mask 255.255.255.0<\/span><\/em><\/p>\n

!redistribute connected<\/span><\/em><\/p>\n

neighbor\u00a010.0.0.11 remote-as 65063<\/span><\/em><\/p>\n

neighbor 10.0.0.11 password\u00a0xxx<\/span><\/em><\/p>\n

no auto-summary<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

!set local-preference 222<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

line vty<\/span><\/em><\/p>\n

no login<\/span><\/em><\/p>\n

NODE B:<\/strong><\/p>\n

!<\/span><\/em><\/p>\n

hostname bgpd-router2<\/span><\/em><\/p>\n

bgp config-type cisco<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

password\u00a0xxx<\/span><\/em><\/p>\n

enable password\u00a0xxx<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

router bgp 65063<\/span><\/em><\/p>\n

no synchronization<\/span><\/em><\/p>\n

bgp router-id 10.0.0.11 <\/span><\/em><\/p>\n

network 10.0.144.0 mask 255.255.255.0<\/span><\/em><\/p>\n

network 10.0.0.0 mask 255.255.255.0<\/span><\/em><\/p>\n

!redistribute connected<\/span><\/em><\/p>\n

neighbor 10.0.0.1 remote-as 65063<\/span><\/em><\/p>\n

neighbor 10.0.0.1 password\u00a0xxx<\/span><\/em><\/p>\n

!neighbor 10.0.0.1\u00a0route-map ROTTE-IN in <\/span><\/em><\/p>\n

neighbor 10.0.0.1\u00a0distribute-list 3 in<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

no auto-summary<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

access-list 3 permit 10.1.0 0.0.255.255<\/span><\/em><\/p>\n

access-list 3 permit 10.2.0.0 0.0.255.255<\/span><\/em><\/p>\n

access-list 3 permit 10.3.0.0 0.0.255.255<\/span><\/em><\/p>\n

access-list 3 deny any<\/span><\/em><\/p>\n

!route-map ROTTE-IN permit 100 <\/span><\/em><\/p>\n

!match ip address prefix-list ACCEPT-ROUTES-FROM-A<\/span><\/em><\/p>\n

!ip prefix-list ACCEPT-ROUTES-FROM-A seq 10 permit 10.0.0.0\/14 <\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

!set local-preference 222<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

!<\/span><\/em><\/p>\n

line vty<\/span><\/em><\/p>\n

no login<\/span><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"

Ecco un possibile esempio \u00a0(semplice) di \u00a0configurazione di una istanza bgp e redistribuzione delle rotte \u00a0ospf: NODE A: hostname bgpd-router bgp config-type cisco ! password xxx enable password\u00a0xxx !<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/posts\/159"}],"collection":[{"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":3,"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/posts\/159\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ospf.it\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}