文档库 最新最全的文档下载
当前位置:文档库 › OSPF多进程+IBGP(实验总结)

OSPF多进程+IBGP(实验总结)

IBGP和OSPF多进程分流

实验地址:

简单的实验配置地址

要求:

1、业务分离,OSPF100的业务只能和OSPF100的业务通讯

2、业务分离,OSPF200的业务只能和OSPF200的业务通讯

3、后来新增了OSPF 2用于管理各区的设备,所以OSPF2能与OSPF100 、OSPF 200

通讯。

4、OSPF1 中还使用BGP,做RR会简单点,或IBGP全连接。

关健配置:

1、R3 /R6设备:

OSPF 100发布到BGP;打团体标记65000:100

OSPF 200发布到BGP;打团体标记65000:200

BGP发布到OSPF 100时,只匹配commuity为:65000:100

BGP发布到OSPF 200时,只匹配commuity为:65000:200

配置命令:

router ospf 100

redistribute bgp 65000 metric 1000 subnets route-map b-to-a100

network 172.16.37.0 0.0.0.3 area 0

!

router ospf 200

redistribute bgp 65000 metric 1000 subnets route-map b-to-a200

network 172.16.34.0 0.0.0.3 area 0

!

router bgp 65000

no synchronization

bgp redistribute-internal

redistribute ospf 100 metric 1000 match internal route-map a100-to-b

redistribute ospf 200 metric 1000 match internal route-map a200-to-b

neighbor 1.1.1.1 remote-as 65000

neighbor 1.1.1.1 update-source Loopback0

neighbor 1.1.1.1 next-hop-self

neighbor 1.1.1.1 send-community

neighbor 2.2.2.2 remote-as 65000

neighbor 2.2.2.2 update-source Loopback0

neighbor 2.2.2.2 next-hop-self

neighbor 2.2.2.2 send-community

no auto-summary

ip bgp-community new-format

ip community-list 1 permit 65000:1000

ip community-list 1 permit 65000:2

ip community-list 2 permit 65000:2000

ip community-list 2 permit 65000:2

route-map a100-to-b permit 10

set community 65000:100

route-map b-to-a100 permit 10

match community 1

route-map a200-to-b permit 10

set community 65000:200

route-map b-to-a200 permit 10

match community 2

2、RT1/RT2设备:

双向重发布要注意环路和负载均衡

BGP重发布到OSPF,过滤

RT1:RT2类似

ip prefix-list ospf seq 5 permit 172.16.110.0/30

。。。。。。

Router ospf 2

distribute-list prefix ospf in

redistribute bgp 65000 metric 1000 subnets route-map b-to-a21

route-map b-to-a21 permit 10

match community 2

set metric 100

route-map b-to-a21 permit 20

match community 1

set metric 50

ip community-list 1 permit 65000:100

ip community-list 1 permit 65000:200

ip community-list 2 permit 65000:2000

ip community-list 2 permit 65000:1000

!

OSPF重发布到BGP

route-map a2-to-b permit 10

set community 65000:2

router bgp 65000

no synchronization

bgp cluster-id 109

bgp log-neighbor-changes

bgp redistribute-internal

redistribute ospf 2 metric 100 match internal route-map a2-to-b

neighbor as65000 peer-group

neighbor as65000 remote-as 65000

neighbor as65000 update-source Loopback0

neighbor as65000 route-reflector-client

neighbor as65000 next-hop-self

neighbor as65000 send-community

neighbor 2.2.2.2 remote-as 65000

neighbor 2.2.2.2 update-source Loopback0

neighbor 2.2.2.2 next-hop-self

neighbor 2.2.2.2 send-community

neighbor 3.3.3.3 peer-group as65000

neighbor 6.6.6.6 peer-group as65000

no auto-summary

注意:

从IBGP重发布到IGP时,一定要配置一条:bgp redistribute-internal 团体列表:ip bgp-community new-format

所有IBGP设备配置邻居允许commnuity发送,

相关文档
相关文档 最新文档