BGP路由反射器,路由聚合,对等体组配置使用
R1
interface LoopBack0
ip address 192.168.0.1 255.255.255.0
interface LoopBack1
ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.1.1.1 255.255.255.0
bgp 100
peer 100.1.1.2 as-number 200
address-family ipv4 unicast
aggregate 192.168.0.0 255.255.254.0 detail-suppressed
network 192.168.0.0 255.255.255.0
network 192.168.1.0 255.255.255.0
peer 100.1.1.2 enable
R2
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 100.2.2.0 0.0.0.255
network 100.3.3.0 0.0.0.255
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.1.1.2 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 100.3.3.2 255.255.255.0
interface GigabitEthernet0/2
port link-mode route
combo enable copper
ip address 100.2.2.2 255.255.255.0
bgp 200
group rr internal
peer rr connect-interface LoopBack0
peer 3.3.3.3 group rr
peer 4.4.4.4 group rr
peer 5.5.5.5 group rr
peer 100.1.1.1 as-number 100
address-family ipv4 unicast
reflector cluster-id 2001
peer rr enable
peer rr next-hop-local
peer rr reflect-client
peer 100.1.1.1 enable
R3
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 100.3.3.0 0.0.0.255
network 100.4.4.0 0.0.0.255
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
interface LoopBack1
ip address 192.168.2.1 255.255.255.0
interface LoopBack2
ip address 192.168.3.1 255.255.255.0
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.3.3.3 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 100.4.4.3 255.255.255.0
bgp 200
peer 2.2.2.2 as-number 200
peer 2.2.2.2 connect-interface LoopBack0
address-family ipv4 unicast
aggregate 192.168.2.0 255.255.254.0 detail-suppressed
network 192.168.2.0 255.255.255.0
network 192.168.3.0 255.255.255.0
peer 2.2.2.2 enable
R4
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 100.4.4.0 0.0.0.255
network 100.5.5.0 0.0.0.255
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.4.4.4 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 100.5.5.4 255.255.255.0
bgp 200
peer 2.2.2.2 as-number 200
peer 2.2.2.2 connect-interface LoopBack0
address-family ipv4 unicast
peer 2.2.2.2 enable
R5
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 100.2.2.0 0.0.0.255
network 100.5.5.0 0.0.0.255
interface LoopBack0
ip address 5.5.5.5 255.255.255.255
interface LoopBack1
ip address 192.168.4.1 255.255.255.0
interface LoopBack2
ip address 192.168.5.1 255.255.255.0
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.5.5.5 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 100.2.2.5 255.255.255.0
bgp 200
peer 2.2.2.2 as-number 200
peer 2.2.2.2 connect-interface LoopBack0
address-family ipv4 unicast
aggregate 192.168.4.0 255.255.254.0 detail-suppressed
network 192.168.4.0 255.255.255.0
network 192.168.5.0 255.255.255.0
peer 2.2.2.2 enable