目录
- 实验条件
- 网络拓朴
- 实验目的
- 开始配置
- 配置动态路由协议
- 配置BGP
- 检查邻居配置
实验条件
网络拓朴
实验目的
将R1配置成Listen状态,自动接收来自其它路由器的建邻居请求、建立邻居
开始配置
配置动态路由协议
这里用EIGRP来配置,保证网络的可达性,事实上面的拓扑结构来说,不需要配置动态路由协议,他们本身就是同一个网络。
R1:
router eigrp 1
router-id 1.1.1.1
network 10.1.1.0 0.0.0.255
R2:
router eigrp 1
router-id 2.2.2.2
network 10.1.1.0 0.0.0.255
R3:
router eigrp 1
router-id 3.3.3.3
network 10.1.1.0 0.0.0.255
配置BGP
R1:
R1#show run | s router bgp
router bgp 1
bgp router-id 1.1.1.1
bgp log-neighbor-changes
bgp listen range 10.1.1.0/24 peer-group CCIE
!最大允许建立的邻居数
bgp listen limit 105
neighbor CCIE peer-group
neighbor CCIE remote-as 1
neighbor CCIE next-hop-self
R2#show run | s router bgp
router bgp 1
bgp router-id 2.2.2.2
neighbor 10.1.1.1 remote-as 1
neighbor 10.1.1.1 next-hop-self
R3#show run | s router bgp
router bgp 1
bgp router-id 3.3.3.3
neighbor 10.1.1.1 remote-as 1
neighbor 10.1.1.1 next-hop-self
检查邻居配置
R1上:自动与R2和R3分别形成了IBGP邻居关系
R1(config-router)#do show ip bgp summary
BGP router identifier 1.1.1.1, local AS number 1
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
*10.1.1.2 4 1 5 5 1 0 0 00:01:43 0
*10.1.1.3 4 1 4 3 1 0 0 00:01:31 0
* Dynamically created based on a listen range command
Dynamically created neighbors: 2, Subnet ranges: 1
BGP peergroup CCIE listen range group members:
10.1.1.0/24
Total dynamically created neighbors: 2/(105 max), Subnet ranges: 1
R1(config-router)#