BGP联邦反射器实验

一.实验要求

二. IP规划

BGP联邦反射器实验_第1张图片

2.1 配置基本路由

R1:
sys
sys r1
int g0/0/0
ip add 12.1.1.1 24
int g0/0/1
ip add 192.168.1.1 24
int lo0
ip add 1.1.1.1 32

R3:
sys
sys r3
int g0/0/0
ip add 23.1.1.2 24
int g0/0/1
ip add 192.168.3.1 24
int g0/0/2
ip add 34.1.1.1 24
int lo0
ip add 3.3.3.3 32

R2:
sys
sys r2
int g0/0/0
ip add 12.1.1.2 24
int g0/0/1
ip add 192.168.2.1 24
int g0/0/2
ip add 23.1.1.1 24
int lo0
ip add 2.2.2.2 32

2.2 配置igp

R2:
sys
ospf 1 router-id 2.2.2.2
area 0
network 2.2.2.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255

R3:
sys
ospf 1 router-id 3.3.3.3
area 0
network 3.3.3.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
network 192.168.3.0 0.0.0.255

R4:
sys
ospf 1 router-id 4.4.4.4
area 0
network 4.4.4.0 0.0.0.255
network 34.1.1.0 0.0.0.255
network 192.168.4.0 0.0.0.255

2.3 建立BGP

R2:
bgp 64512
router-id 2.2.2.2
confederation id 2
confederation peer-as 64513
peer 172.16.5.1 as-number 64513
peer 172.16.5.1 connect-interface LoopBack 0
peer 172.16.5.1 ebgp-max-hop 2
peer 172.16.3.1 as-number 64512
peer 172.16.3.1 connect-interface LoopBack 0
peer 12.1.1.1 as-number 1

R3:
bgp 64512
router-id 2.2.2.2
confederation id 2
confederation peer-as 64513
peer 172.16.5.1 as-number 64513
peer 172.16.5.1 connect-interface LoopBack 0
peer 172.16.5.1 ebgp-max-hop 2
peer 172.16.3.1 as-number 64512
peer 172.16.3.1 connect-interface LoopBack 0
peer 12.1.1.1 as-number 1

R4:
bgp 64512
router-id 2.2.2.2
confederation id 2
confederation peer-as 64513
peer 172.16.5.1 as-number 64513
peer 172.16.5.1 connect-interface LoopBack 0
peer 172.16.5.1 ebgp-max-hop 2
peer 172.16.3.1 as-number 64512
peer 172.16.3.1 connect-interface LoopBack 0
peer 12.1.1.1 as-number 1

2.4BGP宣告环回

R1:
network 10.1.1.0 24

R2:
bgp 64512
peer 172.16.3.1 next-hop-local
peer 172.16.5.1 next-hop-local

R3:
bgp 64512
peer 172.16.2.1 reflect-client

R6:
bgp 64513
peer 172.16.5.1 reflect-client

R8宣告环回:
bgp 3
network 10.1.2.0 24

R7修改下一跳:

bgp 64513
peer 172.16.4.1 next-hop-local
peer 172.16.6.1 next-hop-local

2.5环回互通

R1:
interface Tunnel 0/0/0
ip address 10.1.3.1 24
tunnel-protocol gre
source 10.1.1.1
destination 10.1.2.1
ip route-static 192.168.2.0 24 10.1.3.2

R8:
interface Tunnel 0/0/0
ip address 10.1.3.1 24
tunnel-protocol gre
source 10.1.1.1
destination 10.1.2.1
ip route-static 192.168.2.0 24 10.1.3.2

你可能感兴趣的:(HCIP的学习,HCIP学习,网络)