目录
- 实验条件
- 网络拓朴
- 实验目的
- 开始配置
- 配置动态路由协议
- 配置BGP
- 检查邻居配置
实验条件
网络拓朴
实验目的
将R1配置成Listen状态,自动接收来自其它路由器的建邻居请求、建立邻居
开始配置
配置动态路由协议
这里用EIGRP来配置,保证网络的可达性,事实上面的拓扑结构来说,不需要配置动态路由协议,他们本身就是同一个网络。
R1:
router eigrp 1router-id 1.1.1.1network 10.1.1.0 0.0.0.255R2:
router eigrp 1router-id 2.2.2.2network 10.1.1.0 0.0.0.255
R3:
router eigrp 1router-id 3.3.3.3network 10.1.1.0 0.0.0.255
配置BGP
R1:
R1#show run | s router bgp
router bgp 1bgp router-id 1.1.1.1bgp log-neighbor-changesbgp listen range 10.1.1.0/24 peer-group CCIE!最大允许建立的邻居数bgp listen limit 105neighbor CCIE peer-groupneighbor CCIE remote-as 1neighbor CCIE next-hop-self
R2#show run | s router bgp
router bgp 1bgp router-id 2.2.2.2neighbor 10.1.1.1 remote-as 1neighbor 10.1.1.1 next-hop-self
R3#show run | s router bgp
router bgp 1bgp router-id 3.3.3.3neighbor 10.1.1.1 remote-as 1neighbor 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 1Neighbor 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: 1BGP peergroup CCIE listen range group members: 10.1.1.0/24 Total dynamically created neighbors: 2/(105 max), Subnet ranges: 1R1(config-router)#