通过本节你可以了解到怎么读取BGP表,了解BGP路由是沿着哪条路径学习到的,对于网络的troubleshooting 很有用
BGP将学习到的所有前缀都存储在 BGP 表中,通过你将学习如何阅读它,我们从一个简单的拓扑开始,然后快速浏览一下完整的 Internet 路由表。
配置
hostname R1
!
interface fastEthernet0/0
ip address 192.168.12.1 255.255.255.0
!
interface fastEthernet0/1
ip address 192.168.13.1 255.255.255.0
!
router bgp 1
neighbor 192.168.12.2 remote-as 2
neighbor 192.168.13.3 remote-as 3
!
end
hostname R2
!
interface fastEthernet0/0
ip address 192.168.12.2 255.255.255.0
!
interface fastEthernet0/1
ip address 192.168.24.2 255.255.255.0
!
router bgp 2
neighbor 192.168.12.1 remote-as 1
neighbor 192.168.24.4 remote-