其他分享
首页 > 其他分享> > IBGP 水平分割解决方案 - BGP 联盟

IBGP 水平分割解决方案 - BGP 联盟

作者:互联网

实验名称 - IBGP 水平分割解决方案 - BGP 联盟
实验拓扑:
IBGP 水平分割解决方案 - BGP 联盟

实验要求:再现 IBGP 水平分割,并解决。达到两边能够互通

实验步骤:
按照拓扑中的地址配置各个网络设备
首先将两个pc配置完毕后
配置路由器的端口,并配置ospf ,rip等路哟协议,使其能够互相通信

R1:

interface GigabitEthernet0/0/0
ip address 192.168.12.1 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.16.1 255.255.255.0。
interface GigabitEthernet0/0/2
ip address 192.168.17.1 255.255.255.0
interface LoopBack0
ip address 10.10.1.1 255.255.255.0

ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 10.10.1.1 0.0.0.0
network 192.168.12.0 0.0.0.255

R2 :

interface GigabitEthernet0/0/0
ip address 192.168.23.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.12.2 255.255.255.0
interface LoopBack0
ip address 10.10.2.2 255.255.255.0

ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 10.10.2.2 0.0.0.0
network 192.168.12.0 0.0.0.255
network 192.168.23.0 0.0.0.255

R3:

interface GigabitEthernet0/0/0
ip address 192.168.34.3 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.23.3 255.255.255.0
interface LoopBack0
ip address 10.10.3.3 255.255.255.0

ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 10.10.3.3 0.0.0.0
network 192.168.23.0 0.0.0.255
network 192.168.34.0 0.0.0.255

R4:

interface GigabitEthernet0/0/0
ip address 192.168.45.4 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.34.4 255.255.255.0
interface LoopBack0
ip address 10.10.4.4 255.255.255.0

ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 10.10.4.4 0.0.0.0
network 192.168.34.0 0.0.0.255
network 192.168.45.0 0.0.0.255

R5:
interface GigabitEthernet0/0/0
ip address 192.168.59.5 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.45.5 255.255.255.0
interface LoopBack0
ip address 10.10.5.5 255.255.255.0

ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 10.10.5.5 0.0.0.0
network 192.168.45.0 0.0.0.255

R6:

interface GigabitEthernet0/0/0
ip address 192.168.68.6 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.16.6 255.255.255.0
interface LoopBack0
ip address 10.10.6.6 255.255.255.0

rip 1
version 2
network 10.0.0.0
network 192.168.68.0

R7:

interface GigabitEthernet0/0/1
ip address 192.168.78.7 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.17.7 255.255.255.0
interface LoopBack0
ip address 10.10.7.7 255.255.255.0

rip 1
version 2
network 10.0.0.0
network 192.168.78.0

R8:

interface GigabitEthernet0/0/0
ip address 192.168.68.8 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.78.8 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.30.254 255.255.255.0
interface LoopBack0
ip address 10.10.8.8 255.255.255.0

rip 1
version 2
network 10.0.0.0
network 192.168.68.0
network 192.168.78.0

R9:
interface GigabitEthernet0/0/1
ip address 192.168.59.9 255.255.255.0
interface GigabitEthernet0/0/2
ip address 192.168.40.254 255.255.255.0
interface LoopBack0
ip address 10.10.9.9 255.255.255.0

检查as内部的路由器都能够互相ping通后,
配置BGP:
PC3 用 引入,
PC4 用network,的方式加入BGP

R1:
bgp 64512
router-id 1.1.1.1
confederation id 100
peer 10.10.2.2 as-number 64512
peer 10.10.2.2 connect-interface LoopBack0
peer 192.168.16.6 as-number 200
peer 192.168.17.7 as-number 200
peer 10.10.2.2 next-hop-local

R2:
bgp 64512
router-id 2.2.2.2
confederation id 100
peer 10.10.1.1 as-number 64512
peer 10.10.1.1 connect-interface LoopBack0
peer 10.10.3.3 as-number 64512
peer 10.10.3.3 connect-interface LoopBack0
peer 10.10.1.1 reflect-client
peer 10.10.3.3 reflect-client

R3:
bgp 64512
router-id 3.3.3.3
confederation id 100
confederation peer-as 64513
peer 10.10.2.2 as-number 64512
peer 10.10.2.2 connect-interface LoopBack0
peer 192.168.34.4 as-number 64513

R4:
bgp 64513
router-id 4.4.4.4
confederation id 100
confederation peer-as 64512
peer 10.10.5.5 as-number 64513
peer 10.10.5.5 connect-interface LoopBack0
peer 192.168.34.3 as-number 64512

R5:
bgp 64513
router-id 5.5.5.5
confederation id 100
peer 10.10.4.4 as-number 64513
peer 10.10.4.4 connect-interface LoopBack0
peer 10.10.4.4 next-hop-local
peer 192.168.59.9 as-number 900

R6:
bgp 200
router-id 6.6.6.6
peer 10.10.8.8 as-number 200
peer 10.10.8.8 connect-interface LoopBack0
peer 192.168.16.1 as-number 100
peer 10.10.8.8 next-hop-local

R7:
bgp 200
router-id 7.7.7.7
peer 10.10.8.8 as-number 200
peer 10.10.8.8 connect-interface LoopBack0
peer 192.168.17.1 as-number 100
peer 10.10.8.8 next-hop-local

R8:
bgp 200
router-id 8.8.8.8
peer 10.10.6.6 as-number 200
peer 10.10.6.6 connect-interface LoopBack0
peer 10.10.7.7 as-number 200
peer 10.10.7.7 connect-interface LoopBack0
import-route direct

R9:
bgp 900
router-id 9.9.9.9
peer 192.168.59.5 as-number 100
network 192.168.40.0

配置完毕后,检查两个pc 之间互相ping的结果。

标签:IBGP,解决方案,address,192.168,BGP,255.255,0.0,interface,10.10
来源: http://blog.51cto.com/14029008/2344843