1、实验拓扑
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配置
interface Serial0/0
ip address 12.1.1.2 255.255.255.0
router bgp 2
no synchronization
bgp router-id 2.2.2.2
neighbor 12.1.1.1 remote-as 1
no auto-summary
3、配置MD5认证
配置MD5认证前
在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