uttflying:IBGP和EBGP基本配置|@|1.实验目的|@||@|通过本实验可以掌握:|@|① 启动BGP路由进程;|@|② BGP进程中通告网络;|@|③ IBGP邻居配置;|@|④ EBGP邻居配置; |@|⑤ BGP路由更新源配置;|@|⑥ Next-hop-self配置;|@|⑦ BGP路由汇总配置;|@|⑧ BGP路由调试。|@||@|2.拓扑结构|@||@||@||@||@|3.实验步骤|@||@|因为本实验中IBGP的路由器(R1,R2和R3)形成互连(Full Mesh)的邻居关系,所以路由器R1、R2和R3均关闭同步。IBGP路由器之间运行的IGP是EIGRP,为了提供BGP建立邻居关系的TCP连接和BGP下一跳可达。|@|⑴ 步骤1:配置路由器R1|@|R1(config)#router eigrp 1|@|R1(config-router)#net 1.1.1.0 255.255.255.0|@|R1(config-router)#net 12.12.12.0 0.0.0.255 |@|R1(config-router)#no au|@|R1(config-router)#exit|@|R1(config)#router bgp 100 //启动BGP进程|@|R1(config-router)#no synchronizatio //关闭同步 |@|R1(config-router)#bgp router-id 1.1.1.1 //配置BGP路由器ID |@|R1(config-router)#neighbor 2.2.2.2 remote-as 100 //指定邻居路由器及所在的AS|@|R1(config-router)#neighbor 2.2.2.2 update-source lo0 //指定更新源|@|R1(config-router)#neighbor 3.3.3.3 remote-as 100 |@|R1(config-router)#neighbor 3.3.3.3 update-source lo0|@|R1(config-router)#network 1.1.1.0 mask 255.255.255.0 //通告网关|@|R1(config-router)#no auto-summary //关闭自动汇总 |@|⑵ 步骤2:配置路由器R2 |@|R2(config)#router eigrp 1|@|R2(config-router)#net 2.2.2.0 255.255.255.0|@|R2(config-router)#net 12.12.12.0 0.0.0.255|@|R2(config-router)#net 23.23.23.0 0.0.0.255|@|R2(config-router)#no auto-summary |@|R2(config-router)#exit|@|R2(config)#router bgp 100|@|R2(config-router)#bgp router-id 2.2.2.2|@|R2(config-router)#neighbor 1.1.1.1 remote-as 100|@|R2(config-router)#neighbor 1.1.1.1 update-source lo0|@|R2(config-router)#neighbor 3.3.3.3 remote-as 100|@|R2(config-router)#neighbor 3.3.3.3 update-source lo0|@|⑶ 步骤3:配置路由器R3|@|R3(config)#router eigrp 1|@|R3(config-router)#no auto-summary|@|R3(config-router)#network 3.3.3.0 255.255.255.0|@|R3(config-router)#net 23.23.23.0 0.0.0.255|@|R3(config-router)#exit|@|R3(config)#router bgp 100|@|R3(config-router)#bgp router-id 3.3.3.3|@|R3(config-router)#neighbor 1.1.1.1 remote-as 100|@|R3(config-router)#neighbor 1.1.1.1 update-source lo0|@|R3(config-router)#neighbor 1.1.1.1 next-hop-self //配置下一跳自我,即对从EBGP邻居转入的路由,在通告给IBGP邻居的同时,强迫路由器通告自己是发送BGP更新的下一跳,而不是EBGP邻居。|@|R3(config-router)#neighbor 2.2.2.2 remote-as 100|@|R3(config-router)#neighbor 2.2.2.2 update-source lo0|@|R3(config-router)#neighbor 34.34.34.4 remote-as 200|@|R3(config-router)#neighbor 2.2.2.2 next-hop-self|@|⑷ 步骤4:配置路由器R4|@|R4(config)#router bgp 200|@|R4(config-router)#bgp router-id 4.4.4.4|@|R4(config-router)#neighbor 34.34.34.3 remote-as 100|@|R4(config-router)#network 4.4.0.0 mask 255.255.255.0|@|R4(config-router)#network 4.4.1.0 mask 255.255.255.0|@|R4(config-router)#network 4.4.2.0 mask 255.255.255.0|@|R4(config-router)#network 4.4.3.0 mask 255.255.255.0|@|R4(config-router)#net 4.4.0.0 mask 255.255.252.0 //用network做路由汇总通告|@|R4(config-router)#exit |@|R4(config)#ip route 4.4.0.0 255.255.252.0 null 0 //在IGP表中构造该汇总路由,否则不能用network通告。|@||@||@|4.实验调试|@||@|⑴ show tcp brief|@|该命令用来查看TCP连接信息摘要。 |@||@|R3#show tcp brief |@|TCB Local Address Foreign Address (state)|@|62E7976C 3.3.3.3.179 1.1.1.1.11002 ESTAB|@|62E827F8 3.3.3.3.11001 2.2.2.2.179 ESTAB|@|62E8196C 34.34.34.3.179 34.34.34.4.11000 ESTAB|@||@||@|(2) show ip bgp neighbors|@|该命令用来查看邻居的TCP和BGP连接的详细信息。|@||@|R3#show ip bgp neighbors 34.34.34.4 |@|BGP neighbor is 34.34.34.4, remote AS 200, external link |@|BGP version 4, remote router ID 4.4.4.4|@|BGP state = Established, up for 00:36:59 |@|Last read 00:00:59, hold time is 180, keepalive interval is 60 seconds|@|Neighbor capabilities: |@|Route refresh: advertised and received(old & new) |@| |@||@|
python生成随机密码包含大小写_python 生成随机密码
最新推荐文章于 2023-04-13 09:45:08 发布