1、AS2启OSPF使建立TCP会话
2、R236为联邦AS61234,R456为联邦AS61456
3、R3为反射器将从R2,R6学到的路由分别反射给对方
4、R1234的具体配置为
<r1>dis current-configuration configuration bgp
[V200R003C00]
#
bgp 1
router-id 1.1.1.1
peer 10.0.12.2 as-number 2
peer 10.0.14.4 as-number 2
#
ipv4-family unicast
undo synchronization
network 1.1.1.0 255.255.255.0
network 1.1.1.1 255.255.255.255
peer 10.0.12.2 enable
peer 10.0.14.4 enable
peer 10.0.14.4 preferred-value 100
#
return
<r4>dis current-configuration configuration bgp
[V200R003C00]
#
bgp 61456
router-id 4.4.4.4
confederation id 2
confederation peer-as 61234
peer 2.2.2.2 as-number 61234
peer 2.2.2.2 ebgp-max-hop 255
peer 5.5.5.5 as-number 61456
peer 5.5.5.5 connect-interface LoopBack0
peer 10.0.14.1 as-number 1
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
peer 5.5.5.5 enable
peer 10.0.14.1 enable
#
Return
<r3>dis current-configuration configuration bgp
[V200R003C00]
#
bgp 61234
confederation id 2
confederation peer-as 61456
peer 2.2.2.2 as-number 61234
peer 2.2.2.2 connect-interface LoopBack0
peer 5.5.5.5 as-number 61456
peer 5.5.5.5 ebgp-max-hop 255
peer 5.5.5.5 connect-interface LoopBack0
peer 6.6.6.6 as-number 61234
peer 6.6.6.6 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
peer 2.2.2.2 reflect-client
peer 2.2.2.2 next-hop-local
peer 5.5.5.5 enable
peer 6.6.6.6 enable
peer 6.6.6.6 reflect-client
peer 6.6.6.6 next-hop-local
#
Return
<r2>dis current-configuration configuration bgp
[V200R003C00]
#
bgp 61234
router-id 2.2.2.2
confederation id 2
confederation peer-as 61456
peer 3.3.3.3 as-number 61234
peer 3.3.3.3 connect-interface LoopBack0
peer 4.4.4.4 as-number 61456
peer 4.4.4.4 ebgp-max-hop 255
peer 4.4.4.4 connect-interface LoopBack0
peer 10.0.12.1 as-number 1
#
ipv4-family unicast
undo synchronization
peer 3.3.3.3 enable
peer 3.3.3.3 next-hop-local
peer 4.4.4.4 enable
peer 10.0.12.1 enable
#
return
5、使1.1.1.1的路由走10.0.14.4,在R1上将preferred-value设置为100
配置:peer 10.0.14.4 preferred-value 100
Total Number of Routes: 6
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 10.0.14.1 0 0 1i
* i 10.0.12.1 0 100 0 (61234) 1i
6、使1.1.1.1路由去往7.7.7.7走10.0.67.7将路径增加1 1
在R5上配置:peer 10.0.57.7 as-path 2 2 add
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 1.1.1.1/32 10.0.67.6 0 2 1i
* 10.0.57.5 0 2 2 2 1i
7、使7.7.7.7路由去往AS2走10.0.57.7使用前缀列表将R5的本地属性改为300
Total Number of Routes: 4
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 7.7.7.7/32 10.0.57.7 0 300 0 (61456) 3i
* 10.0.67.7 0 200 0 3i