自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

實(shí)例解析BGP基本配置之路由反射器(3)

網(wǎng)絡(luò)
本文通過一個(gè)案例介紹了BGP基本配置中路由反射器的配置過程,希望通過以下的介紹,大家能夠有所收獲。

 

BGP檢查配置之前,我們向大家介紹了:BGP基本配置之中路由反射器實(shí)例的概述基本配置

檢查BGP之RA

  1. RA#sh ip bgp  
  2.  
  3. Network          Next Hop       Metric LocPrf   Weight Path  
  4.  
  5. *> 1.1.1.0/24       0.0.0.0                  0                          32768 i  
  6.  
  7. *> 2.2.2.0/24       192.1.1.2               0                       0 200 i  
  8.  
  9. *> 3.3.3.0/24       192.1.1.2                                        0 200 i 

 

可以看到RA已經(jīng)通過BGP學(xué)習(xí)到了各個(gè)虛擬接口,這兩條路由下一跳均為192.1.1.2。這里需指出當(dāng)AS邊界路由器通過EBGP轉(zhuǎn)發(fā)路由信息時(shí),總是將這些路由信息的下一跳設(shè)定為自己。

檢查BGP之RB

  1. RB#sh ip bgp  
  2.  
  3. Network          Next Hop            Metric LocPrf Weight Path  
  4.  
  5. *> 1.1.1.0/24       192.1.1.1                0             0 100 i  
  6.  
  7. *> 2.2.2.0/24       0.0.0.0                  0         32768 i  
  8.  
  9. *>i3.3.3.0/24       193.1.1.2                0    100      0 i 

 

可以看到RB也學(xué)習(xí)到了這些虛擬接口

檢查BGP之RC

  1. RC#sh ip bgp  
  2.  
  3. Network          Next Hop            Metric LocPrf Weight Path  
  4.  
  5. *>i1.1.1.0/24       192.1.1.1                0    100      0 100 i  
  6.  
  7. *>i2.2.2.0/24       193.1.1.1                0    100      0 i  
  8.  
  9. *> 3.3.3.0/24       0.0.0.0                  0         32768 i 

 

RC也學(xué)習(xí)到了這些路由

檢查BGP之RD

  1. RD#sh ip bgp  
  2.  
  3. Network          Next Hop            Metric LocPrf Weight Path  
  4.  
  5. *>i3.3.3.0/24       194.1.1.1                0    100      0 i 

 

我們注意到這時(shí)RD并沒有學(xué)習(xí)到1.1.1.0/24和2.2.2.0/24兩個(gè)網(wǎng)段。這是因?yàn)樵谝粋€(gè)BGP域中,RC并不會將它通過RB學(xué)習(xí)到的路由轉(zhuǎn)發(fā)給RD。這是我們需要將RC配置成路由反射器。配置如下:

  1. RC(config)# router bgp 200  
  2.  
  3. RC(config)#neighbor 193.1.1.1 route-reflector-client  
  4.  
  5. RC(config)#neighbor 194.1.1.2 route-reflector-client 

 

這兩條命令是將RB和RD設(shè)為RC的路由反射器客戶端

BGP再次檢查

我們再次在RD上進(jìn)行驗(yàn)證,之前用 clear ip bgp * 重啟BGP進(jìn)程,稍等一會兒在RD上進(jìn)行查看;

  1. RD#sh ip bgp  
  2.  
  3. Network          Next Hop            Metric LocPrf Weight Path  
  4.  
  5. *>i1.1.1.0/24       192.1.1.1                0    100      0 100 i  
  6.  
  7. *>i2.2.2.0/24       193.1.1.1                0    100      0 i  
  8.  
  9. *>i3.3.3.0/24       194.1.1.1                0    100      0 i 

 

這時(shí)RD已經(jīng)學(xué)習(xí)到了所有的虛擬接口,至此我們的路由反射器配置成功。下面我們將通過查看路由表來追蹤這些路由信息。在這之前我們再次進(jìn)入所有路由器的 BGP進(jìn)程,輸入: no synchronization 來取消BGP與IGP的同步關(guān)系,使得IGP能學(xué)到BGP中的路由信息,再次 clearip bgp * 和 clear ip route *  稍等片刻,等待BGP鄰接關(guān)系再次建立后,我們在RB,RC,RD 分別用 sh iproute 就都能得到完整的路由信息了。以RC為例;

  1. RC#sh ip route  
  2.  
  3. Gateway of last resort is not set  
  4.  
  5. 1.0.0.0/24 is subnetted, 1 subnets  
  6.  
  7. B       1.1.1.0 [200/0] via 192.1.1.1, 02:08:19  
  8.  
  9. 2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks  
  10.  
  11. O       2.2.2.2/32 [110/11] via 193.1.1.1, 02:08:58, Ethernet0  
  12.  
  13. B       2.2.2.0/24 [200/0] via 193.1.1.1, 02:08:43  
  14.  
  15. 3.0.0.0/24 is subnetted, 1 subnets  
  16.  
  17. C       3.3.3.0 is directly connected, Loopback0  
  18.  
  19. C    193.1.1.0/24 is directly connected, Ethernet0  
  20.  
  21. O    192.1.1.0/24 [110/74] via 193.1.1.1, 02:08:58, Ethernet0  
  22.  
  23. C    194.1.1.0/24 is directly connected, Serial0 

 

到現(xiàn)在為止,所有路由器的BGP表都已經(jīng)完整,RB,RC,RD的IP路由表也已經(jīng)完整,現(xiàn)在我們來看RA的路由表。

  1. RA#sh ip route  
  2.  
  3. Gateway of last resort is not set  
  4.  
  5. 1.0.0.0/24 is subnetted, 1 subnets  
  6.  
  7. C       1.1.1.0 is directly connected, Loopback0  
  8.  
  9. 2.0.0.0/24 is subnetted, 1 subnets  
  10.  
  11. B       2.2.2.0 [20/0] via 192.1.1.2, 02:18:43  
  12.  
  13. 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks  
  14.  
  15. B       3.3.3.3/32 [20/11] via 192.1.1.2, 02:12:30  
  16.  
  17. B       3.3.3.0/24 [20/0] via 192.1.1.2, 02:18:43  
  18.  
  19. C    192.1.1.0/24 is directly connected, Serial0 

 

我們可以看到在RA的路由表中并沒有193.1.1.0/24和194.1.1.0/24這兩個(gè)網(wǎng)段的路由,這是因?yàn)檫@兩條路由是在AS200中通過OSPF發(fā)布的,因此R1當(dāng)然無法學(xué)到。我們需要在AS邊界路由器RB上將OSPF的路由信息重發(fā)布到BGP中;配置如下:

  1. RB(config)#router bgp 200  
  2.  
  3. RB(config)#redistribute ospf 1 

 

再次來到RA中,

  1. RA#sh ip route  
  2.  
  3. Gateway of last resort is not set  
  4.  
  5. 1.0.0.0/24 is subnetted, 1 subnets  
  6.  
  7. C       1.1.1.0 is directly connected, Loopback0  
  8.  
  9. 2.0.0.0/24 is subnetted, 1 subnets  
  10.  
  11. B       2.2.2.0 [20/0] via 192.1.1.2, 02:26:51  
  12.  
  13. 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks  
  14.  
  15. B       3.3.3.3/32 [20/11] via 192.1.1.2, 02:20:39  
  16.  
  17. B       3.3.3.0/24 [20/0] via 192.1.1.2, 02:26:51  
  18.  
  19. B    193.1.1.0/24 [20/0] via 192.1.1.2, 02:20:38  
  20.  
  21. C    192.1.1.0/24 is directly connected, Serial0  
  22.  
  23. B    194.1.1.0/24 [20/74] via 192.1.1.2, 02:20:38 

 

我們可以看到這兩條路由已經(jīng)被RA學(xué)習(xí)到了。

BGP基本配置中路由反射器的配置就介紹完了,希望大家已經(jīng)掌握。

【編輯推薦】

  1. 路由器故障:廣域網(wǎng)故障處理分析
  2. 初學(xué)者必看:CISCO路由器教程講解
  3. 淺析路由器設(shè)置如何徹底實(shí)現(xiàn)DDoS防御
  4. 熟練使用cisco rommon維護(hù)路由器 上篇
  5. 實(shí)例解析BGP基本配置之路由反射器(1) 
責(zé)任編輯:佚名 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2011-04-08 09:27:06

路由反射器

2011-04-08 09:26:53

BGP路由器

2011-03-14 17:26:29

BGP

2011-04-01 10:07:04

2011-03-14 17:02:36

BGP

2011-04-13 16:15:49

路由協(xié)議路由器路由

2011-04-01 09:40:28

OSPF路由器

2011-04-01 09:40:32

OSPF路由器

2011-04-01 09:40:25

OSPF路由器

2011-04-01 10:06:58

OSPF路由器

2011-04-01 10:11:25

OSPF路由器

2009-12-02 10:34:04

華為路由器配置實(shí)例

2011-08-16 10:50:35

DHCP路由器配置

2011-03-07 17:34:35

IGRP

2011-04-01 10:07:01

OSPF路由器

2011-09-07 12:36:40

路由器連接路由器

2009-12-31 10:28:20

VPN配置實(shí)例

2011-04-13 11:27:28

EIGRP路由

2011-08-16 11:22:09

EIGRP幀中繼

2011-08-09 13:30:17

騰達(dá)無線路由器路由器無線
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號