当前位置:文档之家› BGP-4路由协议测试方案

BGP-4路由协议测试方案

BGP-4路由协议: 9.4.1 验证BGP基本功能 9.4.2 验证BGP报文信息正常发布和接收 9.4.3 验证BGP路由发布(network、静态、缺省) 9.4.4 验证BGP与IGP交互 9.4.5 BGP的路由聚合 9.4.6 BGP as-path的使用 9.4.7 BGP route-policy的使用 9.4.8 BGP路由反射器互通性测试 9.4.9 验证BGP负载分担和MED属性 9.4.10 BGP路由表容量测试

验证BGP基本功能 测试组网图:

测试组:BGP-4路由协议 测试项目:9.4.1、9.4.2、9.4.3、9.4.4、9.4.5、9.4.6、9.4.7、9.4.8、9.4.9、9.4.10 测试目的:9.4.1、9.4.2、9.4.3、9.4.4、9.4.5、9.4.6、9.4.7、9.4.8、9.4.9、9.4.10 测试步骤: 1、 按拓扑搭建网络 2、 配置R1/R2/R3/R4/R5/R6的IGP路由 3、 配置R1/R2/R3/R4/R5/R6的BGP邻居关系 4、 发布路由信息(network 172.16.0.0/24 network 172.16.2.0/24、172.16.4.0、172.16.5.0) 5、 验证BGP基本功能 6、 验证BGP报文信息的正常收发和接收 7、 验证BGP路由发布(network、静态、缺省) 8、 验证BGP和IGP的交互 9、 BGP的路由聚合 10、BGP as-path的使用 11、BGP route-policy 的使用 12、BGP 路由反射器互通性测试 13、验证BGP负载分担和MED属性 14、BGP 路由表容量测试 预期测试结果: 测试准备:路由器、PC

测试步骤和结果: 步骤2:配置R1/R2/R3/R4/R5/R6的IGP路由 在R1上:interface Loopback0 ip address 1.1.1.1 255.255.255.255 ip ospf 1 area 0 interface FastEthernet0/0 ip address 172.16.0.1 255.255.255.0 ip ospf 1 area 0 interface Ethernet1/0 ip address 172.16.1.5 255.255.255.252 ip ospf 1 area 0 interface Ethernet1/1 ip address 172.16.1.1 255.255.255.252 ip ospf 1 area 0 在R2上:interface Loopback0 ip address 2.2.2.2 255.255.255.255 ip ospf 1 area 0 interface FastEthernet0/0 ip address 172.16.2.1 255.255.255.0 ip ospf 1 area 0 interface Ethernet1/0 ip address 172.16.1.6 255.255.255.252 ip ospf 1 area 0 interface Ethernet1/1 ip address 172.16.1.9 255.255.255.252 ip ospf 1 area 0 在R3上:interface Loopback0 ip address 3.3.3.3 255.255.255.255 ip ospf 1 area 0 interface Ethernet1/0 ip address 172.16.1.2 255.255.255.252 ip ospf 1 area 0 interface Ethernet1/1 ip address 172.16.1.13 255.255.255.252 router ospf 1 passive-interface E1/1 在R4上:interface Loopback0 ip address 4.4.4.4 255.255.255.255 ip ospf 1 area 0 interface Ethernet1/0 ip address 172.16.1.10 255.255.255.252 ip ospf 1 area 0 interface Ethernet1/1 ip address 172.16.1.17 255.255.255.252 ip ospf 1 area 0 router ospf 1 passive-interface E1/1 在R5上: interface Loopback0 ip address 5.5.5.5 255.255.255.255 interface FastEthernet0/0 ip address 172.16.5.1 255.255.255.0 interface Ethernet1/0 ip address 172.16.1.14 255.255.255.252 在R6上:interface Loopback0 ip address 6.6.6.6 255.255.255.255 interface FastEthernet0/0 ip address 172.16.4.1 255.255.255.0 interface Ethernet1/0 ip address 172.16.1.18 255.255.255.252 步骤3:配置R1/R2/R3/R4/R5/R6的BGP邻居关系 R1上: router bgp 65000 no synchronization neighbor 2.2.2.2 remote-as 65000 neighbor 2.2.2.2 update-source Loopback0 neighbor 3.3.3.3 remote-as 65000 neighbor 3.3.3.3 update-source Loopback0 neighbor 4.4.4.4 remote-as 65000 neighbor 4.4.4.4 update-source Loopback0 no auto-summary 在R2上: router bgp 65000 no synchronization neighbor 1.1.1.1 remote-as 65000 neighbor 1.1.1.1 update-source Loopback0 neighbor 3.3.3.3 remote-as 65000 neighbor 3.3.3.3 update-source Loopback0 neighbor 4.4.4.4 remote-as 65000 neighbor 4.4.4.4 update-source Loopback0 no auto-summary 在R3上: router bgp 65000 no synchronization neighbor 1.1.1.1 remote-as 65000 neighbor 1.1.1.1 update-source Loopback0 neighbor 2.2.2.2 remote-as 65000 neighbor 2.2.2.2 update-source Loopback0 neighbor 4.4.4.4 remote-as 65000 neighbor 4.4.4.4 update-source Loopback0 neighbor 172.16.1.14 remote-as 65001 no auto-summary 在R4上:router bgp 65000 no synchronization neighbor 1.1.1.1 remote-as 65000 neighbor 1.1.1.1 update-source Loopback0 neighbor 2.2.2.2 remote-as 65000 neighbor 2.2.2.2 update-source Loopback0 neighbor 3.3.3.3 remote-as 65000 neighbor 3.3.3.3 update-source Loopback0 neighbor 172.16.1.18 remote-as 65002 no auto-summary 在R5上: router bgp 65001 no synchronization neighbor 172.16.1.13 remote-as 65000 no auto-summary 在R6上: router bgp 65002 no synchronization neighbor 172.16.1.17 remote-as 65000 no auto-summary 步骤4:发布路由信息 在R3上: network 172.16.0.0 mask 255.255.255.0 network 172.16.2.0 mask 255.255.255.0 在R4上: network 172.16.0.0 mask 255.255.255.0 network 172.16.2.0 mask 255.255.255.0 在R5上: Network 172.16.5.0 mask 255.255.255.0 在R6上: Network 172.16.4.0 mask 255.255.255.0 步骤5:验证BGP的基本功能 show ip route bgp

BGP被设计用于在自治系统之间交换路由信息,并且可以处理大量的路由条目。 步骤6:验证BGP报文信息的正常发布和接收

相关主题