MSR系列路由器BGP路由反射器配置
一、组网需求:
Router A、Router B、Router C为AS 100,其中Rotuer B为路由反射器(RR)。
设备清单:PC两台、MSR系列路由器3台
二、组网图:
三、配置步骤:
Router A 配置 |
# router-id
# interface GigabitEthernet0/0 ip address # interface GigabitEthernet0/1 ip address # interface Loopback0 ip address # //启动BGP,AS为100 bgp 100 undo synchronization //引入直连路由到BGP import-route
direct //配置组“in”,类型为internal group
in internal //使用loopback0接口建立BGP连接 peer in
connect-interface LoopBack0 //指定IBGP邻居 peer
# ospf 1 are network network # |
Router B 配置 |
# router-id
# interface GigabitEthernet0/0 ip address # interface GigabitEthernet0/1 ip address 30.1.1.1 255.255.255.252 # interface Loopback0 ip address # //启动BGP,AS为100 bgp 100 undo synchronization //引入直连路由到BGP import-route
direct //配置组’rr’,将对等体组作为路由反射器的客户 group
rr internal peer rr reflect-client peer in connect-interface LoopBack0 //指定iBGP邻居 peer peer # ospf 1 are network network network
30.1.1.1 0.0.0.0 # |
Router C 配置 |
# router-id
# interface GigabitEthernet0/0 ip address 30.1.1.2 255.255.255.252 # interface GigabitEthernet0/1 ip address 40.1.1.1 255.255.255.0 # interface Loopback0 ip address # //启动BGP,AS为100 bgp 100 undo synchronization //引入直连路由到BGP import-route
direct //配置组“in”,类型为internal group
in internal peer in
connect-interface LoopBack0 //指定EBGP邻居 peer
# ospf 1 are network network 30.1.1.2
# |
四、配置关键点:
1)Router id 建议配置成和loopback接口地址相同。若没有手工指定router id ,路由器会从当前接口的IP地址中自动选择一个,会给后期网络维护带来困难。
2)启动BGP时要注意路由器所在的AS号。
3)配置BGP邻居时候要注意是IBGP邻居还是EBGP邻居。
4)路由反射器的配置,只在反射器上配置有所差别,在cliet端是没有任何差别的。