天天看點

41、BGP配置實驗之MD5認證

1、實驗拓撲

<a href="http://s5.51cto.com/wyfs02/M01/77/68/wKiom1ZnnNjiCTkFAAAu9stFKCg893.png" target="_blank"></a>

2、基礎配置

R1配置

interface Serial0/0

 ip address 12.1.1.1 255.255.255.0

router bgp 1

 no synchronization

 bgp router-id 1.1.1.1

 neighbor 12.1.1.2 remote-as 2

R2配置

 ip address 12.1.1.2 255.255.255.0

router bgp 2

 bgp router-id 2.2.2.2

 neighbor 12.1.1.1 remote-as 1

 no auto-summary

3、配置MD5認證

配置MD5認證前

<a href="http://s1.51cto.com/wyfs02/M01/77/67/wKioL1Znnf3CDkkfAAAhEAVNch8420.png" target="_blank"></a>

<a href="http://s5.51cto.com/wyfs02/M00/77/67/wKioL1Znnf7xxoRtAAAhEy49SRk957.png" target="_blank"></a>

在R1上單邊配置MD5認證

R1(config)#router bgp 1

R1(config-router)#neighbor 12.1.1.2 password cisco

R2(config)#router bgp 2

R2(config-router)#neighbor 12.1.1.1 password cisco

<a href="http://s5.51cto.com/wyfs02/M01/77/67/wKioL1Znny2C1nodAAAikLfQWPs172.png" target="_blank"></a>

      本文轉自開源殿堂 51CTO部落格,原文連結:http://blog.51cto.com/kaiyuandiantang/1721047,如需轉載請自行聯系原作者