路由反射器 route reflector {RR}
阿新 • • 發佈:2018-03-07
route reflector RR
實驗目標: PC-1 ----> PC-2
實驗目標: PC-1 ----> PC-2
1.配置 PC-1/2 的IP地址和網關IP地址:
192.168.1.1 255.255.255.0
192.168.1.254
192.168.2.1 255.255.255.0
192.168.2.254
2.配置網絡中的 IGP : OSPF
R1:
interface loopback 13
ip address 10.10.1.1 255.255.255.0
interface gi0/0/0
ip address 192.168.12.1 255.255.255.0
interface gi0/0/1
ip address 192.168.1.254 255.255.255.0
ospf 1 router-id 1.1.1.1 area 0 network 192.168.12.0 0.0.0.255 network 10.10.1.1 0.0.0.0 R2: interface loopback 0 ip address 10.10.2.2 255.255.255.0 interface gi0/0/0 ip address 192.168.23.2 255.255.255.0 interface gi0/0/1 ip address 192.168.12.2 255.255.255.0 ospf 1 router-id 2.2.2.2 area 0 network 10.10.2.2 0.0.0.0 network 192.168.12.2 0.0.0.0 network 192.168.23.2 0.0.0.0 R3 : interface loopback 13 ip address 10.10.3.3 255.255.255.0 interface gi0/0/1 ip address 192.168.23.3 255.255.255.0 interface gi0/0/2 ip address 192.168.2.254 255.255.255.0 ospf 1 router-id 3.3.3.3 area 0 network 10.10.3.3 0.0.0.0 network 192.168.23.3 0.0.0.0
3.配置網絡中的 BGP
R1:
bgp 64512
router-id 1.1.1.1
peer 10.10.2.2 as-number 64512
peer 10.10.2.2 connect-interface loopback 13
peer 10.10.3.3 as-number 64512
peer 10.10.3.3 connect-interface loopback 13
peer 10.10.1.1 reflect-client
#將10.10.1.1這個鄰居配置成了
路由反射器客戶端,
同時,
自己成為了“路由反射器”
R2: bgp 64512 router-id 2.2.2.2 peer 10.10.1.1 as-number 64512 peer 10.10.1.1 connect-interface loopback 0 peer 10.10.3.3 as-number 64512 peer 10.10.3.3 connect-interface loopback 0 R3: bgp 64512 router-id 3.3.3.3 peer 10.10.2.2 as-number 64512 peer 10.10.2.2 connect-interface loopback 13 peer 10.10.1.1 as-number 64512 peer 10.10.1.1 connect-interface loopback 13 network 192.168.2.0 255.255.255.0
路由反射器 route reflector {RR}