本文主要是介绍反射器与联邦实验,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
配置R1:
interface GigabitEthernet0/0/0
ip address 12.0.0.1 255.255.255.0
interface LoopBack0
ip address 192.168.1.1 255.255.255.0
interface LoopBack1
ip address 10.1.1.1 255.255.255.0
R2:
interface GigabitEthernet0/0/0
ip address 12.0.0.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 172.16.0.1 255.255.255.252
interface GigabitEthernet0/0/2
ip address 172.16.0.9 255.255.255.252
interface LoopBack0
ip address 2.2.2.2 255.255.255.0
interface LoopBack1
ip address 172.16.2.1 255.255.255.0
R3:
interface GigabitEthernet0/0/0
ip address 172.16.0.2 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.0.5 255.255.255.252
interface LoopBack0
ip address 3.3.3.3 255.255.255.0
interface LoopBack1
ip address 172.16.3.1 255.255.255.0
R4:
interface GigabitEthernet0/0/0
ip address 172.16.0.6 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.0.13 255.255.255.252
interface LoopBack0
ip address 4.4.4.4 255.255.255.0
interface LoopBack1
ip address 172.16.4.1 255.255.255.0
R5:
interface GigabitEthernet0/0/0
ip address 172.16.0.10 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.0.17 255.255.255.252
interface LoopBack0
ip address 5.5.5.5 255.255.255.0
interface LoopBack1
ip address 172.16.5.1 255.255.255.0
R6:
interface GigabitEthernet0/0/0
ip address 172.16.0.18 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.0.21 255.255.255.252
interface LoopBack0
ip address 6.6.6.6 255.255.255.0
interface LoopBack1
ip address 172.16.6.1 255.255.255.0
R7:
interface GigabitEthernet0/0/0
ip address 172.16.0.22 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.0.14 255.255.255.252
interface GigabitEthernet0/0/2
ip address 78.0.0.1 255.255.255.0
interface LoopBack0
ip address 7.7.7.7 255.255.255.0
interface LoopBack1
ip address 172.16.7.1 255.255.255.0
R8:
interface GigabitEthernet0/0/0
ip address 78.0.0.2 255.255.255.0
interface LoopBack0
ip address 192.168.2.1 255.255.255.0
interface LoopBack1
ip address 11.1.1.1 255.255.255.0
随后,对AS2内部进行ospf的宣告
R2:
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 172.16.0.0 0.0.255.255
R3:
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 172.16.0.0 0.0.255.255
R4:
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 172.16.0.0 0.0.255.255
R5:
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 172.16.0.0 0.0.255.255
R6:
ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 6.6.6.6 0.0.0.0
network 172.16.0.0 0.0.255.255
R7:
ospf 1 router-id 7.7.7.7
area 0.0.0.0
network 7.7.7.7 0.0.0.0
network 172.16.0.0 0.0.255.255
bgp
R1:
bgp 1
router-id 1.1.1.1
peer 12.0.0.2 as-number 2
network 10.1.1.0 255.255.255.0
R2:
bgp 64512
router-id 2.2.2.2
confederation id 2
confederation peer-as 64513
peer 3.3.3.3 as-number 64512
peer 3.3.3.3 connect-interface LoopBack0
peer 5.5.5.5 as-number 64513
peer 5.5.5.5 ebgp-max-hop 255
peer 5.5.5.5 connect-interface LoopBack0
peer 12.0.0.1 as-number 1
network 172.16.0.0 255.255.248.0-------将172.16.2.0 24 至 172.16.7.0 24 进行汇总,即172.16.0.0 21
peer 3.3.3.3 next-hop-local
peer 5.5.5.5 next-hop-local
R3:
bgp 64512
router-id 3.3.3.3
confederation id 2
peer 2.2.2.2 as-number 64512
peer 2.2.2.2 connect-interface LoopBack0
peer 4.4.4.4 as-number 64512
peer 4.4.4.4 connect-interface LoopBack0
peer 2.2.2.2 reflect-client
peer 2.2.2.2 next-hop-local
peer 4.4.4.4 reflect-client
peer 4.4.4.4 next-hop-local
R4:
bgp 64512
router-id 4.4.4.4
confederation id 2
confederation peer-as 64513
peer 3.3.3.3 as-number 64512
peer 3.3.3.3 connect-interface LoopBack0
peer 7.7.7.7 as-number 64513
peer 7.7.7.7 ebgp-max-hop 255
peer 7.7.7.7 connect-interface LoopBack0
peer 3.3.3.3 next-hop-local
peer 7.7.7.7 next-hop-local
R5:
bgp 64513
router-id 5.5.5.5
confederation id 2
confederation peer-as 64512
peer 2.2.2.2 as-number 64512
peer 2.2.2.2 connect-interface LoopBack0
peer 6.6.6.6 as-number 64513
peer 6.6.6.6 connect-interface LoopBack0
R6:
bgp 64513
router-id 6.6.6.6
confederation id 2
peer 5.5.5.5 as-number 64513
peer 5.5.5.5 connect-interface LoopBack0
peer 7.7.7.7 as-number 64513
peer 7.7.7.7 connect-interface LoopBack0
peer 5.5.5.5 reflect-client
peer 5.5.5.5 next-hop-local
peer 7.7.7.7 reflect-client
peer 7.7.7.7 next-hop-local
R7:
bgp 64513
router-id 7.7.7.7
confederation id 2
confederation peer-as 64512
peer 4.4.4.4 as-number 64512
peer 4.4.4.4 ebgp-max-hop 255
peer 4.4.4.4 connect-interface LoopBack0
peer 6.6.6.6 as-number 64513
peer 6.6.6.6 connect-interface LoopBack0
peer 78.0.0.2 as-number 3
network 172.16.0.0 255.255.248.0
peer 4.4.4.4 next-hop-local
peer 6.6.6.6 next-hop-local
R8:
bgp 3
router-id 192.168.2.1
peer 78.0.0.1 as-number 2
network 11.1.1.0 255.255.255.0
这篇关于反射器与联邦实验的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!