1、BGP路由传递原则实验一:BGP路由传递原则实验目标:掌握BGP的路由传递原则实验TOP:基本配置R101!0203hostnameR10405!0607no ip domain lookup0809!1011interface Loopback01213ip address 1.1.1.1 255.255.255.01415!1617interface Loopback101819ip address 10.10.10.10 255.255.255.02021ip ospf network point-to-point2223!2425interface Serial1/02627ip ad
2、dress 12.1.1.1 255.255.255.02829!3031interface Serial1/13233ip address 13.1.1.1 255.255.255.03435!3637router ospf 103839router-id1.1.1.14041network 10.10.10.0 0.0.0.255 area 04243network 12.1.1.0 0.0.0.255 area 04445network 13.1.1.0 0.0.0.255 area 04647!4849router bgp 650015051no synchronization5253
3、bgp router-id1.1.1.15455network 1.1.1.0 mask 255.255.255.05657neighbor 12.1.1.2 remote-as 650015859neighbor 13.1.1.3 remote-as 650016061no auto-summary6263!R201!0203hostnameR20405!0607no ip domain lookup0809!1011interface Loopback01213ip address 2.2.2.2 255.255.255.01415!1617interface Loopback101819
4、ip address 20.20.20.20 255.255.255.02021ip ospf network point-to-point2223!2425interface Serial1/02627ip address 24.2.2.2 255.255.255.02829!3031interface Serial1/13233ip address 12.1.1.2 255.255.255.03435!3637router ospf 103839router-id2.2.2.24041network 12.1.1.0 0.0.0.255 area 04243network 20.20.20
5、.0 0.0.0.255 area 04445network 24.2.2.0 0.0.0.255 area 04647!4849router bgp 650015051no synchronization5253bgp router-id2.2.2.25455network 2.2.2.0 mask 255.255.255.05657neighbor 12.1.1.1 remote-as 650015859neighbor 24.2.2.4 remote-as 650016061no auto-summary6263!R301!0203hostnameR30405!0607no ip dom
6、ain lookup0809!1011interface Loopback01213ip address 3.3.3.3 255.255.255.01415!1617interface Loopback101819ip address 30.30.30.30 255.255.255.02021ip ospf network point-to-point2223!2425interface Serial1/12627ip address 13.1.1.3 255.255.255.02829!3031interface Serial1/03233ip address 34.3.3.3 255.25
7、5.255.03435!3637router ospf 103839router-id3.3.3.34041network 13.1.1.0 0.0.0.255 area 04243network 30.30.30.0 0.0.0.255 area 04445network 34.3.3.0 0.0.0.255 area 04647!4849router bgp 650015051no synchronization5253bgp router-id3.3.3.35455network 3.3.3.0 mask 255.255.255.05657neighbor 13.1.1.1 remote
8、-as 650015859neighbor 34.3.3.4 remote-as 650016061no auto-summary6263!R401!0203hostnameR40405!0607no ip domain lookup0809!1011interface Loopback01213ip address 4.4.4.4 255.255.255.01415!1617interface Loopback101819ip address 40.40.40.40 255.255.255.02021ip ospf network point-to-point2223!2425interfa
9、ce Serial1/02627ip address 24.2.2.4 255.255.255.02829!3031interface Serial1/13233ip address 34.3.3.4 255.255.255.03435!3637Interface Serial1/23839Ip address 45.4.4.4 255.255.255.04041!4243Interface Serial1/34445Ip address 46.4.4.4 255.255.255.04647!4849router ospf 105051router-id4.4.4.45253network 4
10、0.40.40.0 0.0.0.255 area 05455network 24.2.2.0 0.0.0.255 area 05657network 34.3.3.0 0.0.0.255 area 05859!6061router bgp 650016263no synchronization6465bgp router-id4.4.4.46667network 4.4.4.0 mask 255.255.255.06869neighbor 24.2.2.2 remote-as 650017071neighbor 34.3.3.3 remote-as 650017273neighbor 45.4
11、.4.5 remote-as 650027475neighbor 46.4.4.6 remote-as 650037677no auto-summary7879!R501!0203Hostname R50405!0607no ip domain lookup0809!1011interface Loopback01213ip address 5.5.5.5 255.255.255.01415!1617interface Serial1/01819ip address 45.4.4.5 255.255.255.02021!2223router bgp 650022425no synchroniz
12、ation2627bgp router-id5.5.5.52829network 5.5.5.0 mask 255.255.255.03031neighbor 45.4.4.4 remote-as 650013233no auto-summary3435!R601!0203hostnameR60405!0607interface Loopback00809ip address 6.6.6.6 255.255.255.01011!1213interface Serial1/01415ip address 46.4.4.6 255.255.255.01617!1819router bgp 6500
13、32021no synchronization2223bgp router-id6.6.6.62425network 6.6.6.0 mask 255.255.255.02627neighbor 46.4.4.4 remote-as 650012829no auto-summary3031!批注:路由器接口默认是关闭的,所以应将对应的接口开启基本配置完成之后,我们开始检查BGP对等体关系是否正常建立R1#show ip bgp summaryBGP router identifier 1.1.1.1, local AS number 65001BGP table version is 4, m
14、ain routing table version 43 network entries using 303 bytes of memory3 path entries using 144 bytes of memory2 BGP path attribute entries using 120 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 567 total bytes of
15、 memoryBGP activity 3/0 prefixes, 3/0 paths, scan interval 60 secsNeighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd12.1.1.2 4 65001 10 10 4 0 0 00:05:28 113.1.1.3 4 65001 9 9 4 0 0 00:04:42 1R1#/R1此时已经正常与R2和R3建立iBGP对等体关系R2#show ip bgp summaryBGP router identifier 2.2.2.2, local AS n
16、umber 65001BGP table version is 4, main routing table version 45 network entries using 505 bytes of memory5 path entries using 240 bytes of memory4 BGP path attribute entries using 240 bytes of memory2 BGP AS-PATH entries using 48 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0
17、 BGP filter-list cache entries using 0 bytes of memoryBGP using 1033 total bytes of memoryBGP activity 5/0 prefixes, 5/0 paths, scan interval 60 secsNeighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd12.1.1.1 4 65001 11 11 4 0 0 00:06:13 124.2.2.4 4 65001 11 9 4 0 0 00:04:51 3R2#/R2此时
18、已经正常与R1和R4建立iBGP对等体关系R3#show ip bgp summaryBGP router identifier 3.3.3.3, local AS number 65001BGP table version is 4, main routing table version 45 network entries using 505 bytes of memory5 path entries using 240 bytes of memory4 BGP path attribute entries using 240 bytes of memory2 BGP AS-PATH en
19、tries using 48 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 1033 total bytes of memoryBGP activity 5/0 prefixes, 5/0 paths, scan interval 60 secsNeighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd13.1.1.1 4 65001 10 10 4 0 0 00:05:53 134.3.3.4 4 65001 12 10 4 0 0 00:05:16 3R3#/R3此时已经正常与R1和R4建立iBGP对等体关系R4#show ip bgp summaryBGP router identifier 4.4.4.4, local AS number 65001BGP table version is 6, main
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1