IGP-路由起源于同一AS域内,用 show ip bgp时由I代表 EGP-路由通过 Exterior Gateway Protocol学得,用 show ip bgp时由 代表。 Incomplete--路由起源未知或通过其他方式学得,用?表示 1. External BGP peering 例 Router a in asio interface ethernet 5/0 222.222.10.2255.255.255.24 router bgp 100 network220.220.8.0mask255.255.255 neighbor 222. 222. 10. l remote-as 101 neighbor 222. 222. 10.1 distribute-list 180 in neighbor 222. 222. 10. 1 distribute-list 181 out Router b in ashol interface ethernet 1/0/0 ip address222.222.10.1255.255.255.240 network220.220.16.0mask255.255.240.0 neighbor 222. 222. 10. 2 remote-as 100 neighbor 222. 222 10.2 distribute-list 150 in neighbor 222. 222 10.2 distribute-list 151 out 2. stable iBGP peering (peering to loopback address peer with loopback address iBGP session is not dependent on a single interface loopback interface does not go down ever 例 router a. interface loopback 0 ip address215.10.7.1255.255.255.255 ter bgp 100 network220.220.1.0 igbor 215 10.7.2 remote-as 100 neighbor 215 10.7.2 update-source loopback 0 neighbor 215. 10. 7.3 remote-as 100 nelIGP---路由起源于同一 AS 域内,用 show ip bgp 时由 I 代表 EGP---路由通过 Exterior Gateway Protocol 学得,用 show ip bgp 时由 e 代表。 Incomplete---路由起源未知或通过其他方式学得,用?表示 1. External BGP peering 例: Router A in AS100 interface ethernet 5/0 ip address 222.222.10.2 255.255.255.240 router bgp 100 network 220.220.8.0 mask 255.255.255.0 neighbor 222.222.10.1 remote-as 101 neighbor 222.222.10.1 distribute-list 180 in neighbor 222.222.10.1 distribute-list 181 out Router B in AS101 interface ethernet 1/0/0 ip address 222.222.10.1 255.255.255.240 router bgp 101 network 220.220.16.0 mask 255.255.240.0 neighbor 222.222.10.2 remote-as 100 neighbor 222.222.10.2 distribute-list 150 in neighbor 222.222.10.2 distribute-list 151 out 2. stable iBGP peering(peering to loopback address) .peer with loopback address .iBGP session is not dependent on a single interface .loopback interface does not go down ever 例: router A: interface loopback 0 ip address 215.10.7.1 255.255.255.255 router bgp 100 network 220.220.1.0 neighbor 215.10.7.2 remote-as 100 neighbor 215.10.7.2 update-source loopback 0 neighbor 215.10.7.3 remote-as 100 neighbor 215.10.7.3 update-source loopback 0