NMT Data Mining & Big Data

BGP基础配置实验02

2021-08-15
NMt
RS
 

在BGP最简单的实验基础上增加了一定的难度

@@@@

实验拓扑图

实验步骤

根据需求可以看到这个实验只需要在R5、R6上有对方的路由条目即可,不需要数据流量真的能够到达。

这样的一个需求说明:在中间的65000的AS中只需要建立R1和R4之间的IBGP邻居关系,R2和R3上并不需要开启BGP协议。

理清思路之后就可以开始配置:

AR1:

interface LoopBack0
 ip address 1.1.1.1 255.255.255.255
 isis enable 1
#
interface GigabitEthernet0/0
 ip address 12.0.0.1 255.255.255.0
 isis enable 1
#
interface GigabitEthernet0/1
 ip address 14.0.0.1 255.255.255.0
 isis enable 1
#
interface GigabitEthernet0/2
 ip address 11.0.0.1 255.255.255.0
 isis enable 1
#
isis 1
 network-entity 49.0001.0000.0000.0001.00
#
bgp 65000
 peer 4.4.4.4 as-number 65000
 peer 4.4.4.4 connect-interface LoopBack0
 peer 11.0.0.5 as-number 65001
 #
 address-family ipv4 unicast
  network 1.1.1.1 255.255.255.255
  peer 4.4.4.4 enable
  peer 4.4.4.4 next-hop-local
  peer 11.0.0.5 enable
#

AR2:

#
interface LoopBack0
 ip address 2.2.2.2 255.255.255.255
 isis enable 1
#
interface GigabitEthernet0/0
 ip address 12.0.0.2 255.255.255.0
 isis enable 1
#
interface GigabitEthernet0/1
 ip address 13.0.0.2 255.255.255.0
 isis enable 1
#
isis 1
 network-entity 49.0001.0000.0000.0002.00
#

AR3:

#
interface LoopBack0
 ip address 3.3.3.3 255.255.255.255
 isis enable 1
#
interface GigabitEthernet0/0
 ip address 15.0.0.3 255.255.255.0
 isis enable 1
#
interface GigabitEthernet0/1
 ip address 14.0.0.3 255.255.255.0
 isis enable 1
#
isis 1
 network-entity 49.0001.0000.0000.0003.00
#

AR4:

interface LoopBack0
 ip address 4.4.4.4 255.255.255.255
 isis enable 1
#
interface GigabitEthernet0/0
 ip address 15.0.0.4 255.255.255.0
 isis enable 1
#
interface GigabitEthernet0/1
 ip address 13.0.0.4 255.255.255.0
 isis enable 1
#
interface GigabitEthernet0/2
 ip address 16.0.0.4 255.255.255.0
 isis enable 1
#
bgp 65000
 peer 1.1.1.1 as-number 65000
 peer 1.1.1.1 connect-interface LoopBack0
 peer 16.0.0.6 as-number 65002
 #
 address-family ipv4 unicast
  network 4.4.4.4 255.255.255.255
  peer 1.1.1.1 enable
  peer 1.1.1.1 next-hop-local
  peer 16.0.0.6 enable
#
isis 1
 network-entity 49.0001.0000.0000.0004.00
#

AR5:

#
interface LoopBack0
 ip address 5.5.5.5 255.255.255.255
#
interface GigabitEthernet0/0
 ip address 11.0.0.5 255.255.255.0
#
bgp 65001
 peer 11.0.0.1 as-number 65000
 #
 address-family ipv4 unicast
  import-route direct
  network 5.0.0.0 255.0.0.0
  peer 11.0.0.1 enable
#

AR6:

#
interface LoopBack0
 ip address 6.6.6.6 255.255.255.255
#
interface GigabitEthernet0/0
 ip address 16.0.0.6 255.255.255.0
#
bgp 65002
 peer 16.0.0.4 as-number 65000
 #
 address-family ipv4 unicast
  import-route direct
  network 6.0.0.0 255.0.0.0
  peer 16.0.0.4 enable
#

转载请注明:南梦婷的博客 » 点击阅读原文


Comments

Content