BGP综合实验
BGP综合实验
地址划分如下:
BGP综合实验
步骤:
1.给路由器配置IP地址和环回
2.在AS2区域内启OSPF
BGP综合实验
BGP综合实验
BGP综合实验
BGP综合实验
BGP综合实验
BGP综合实验
3.BGP建邻
BGP综合实验
BGP综合实验
BGP综合实验
BGP综合实验

BGP综合实验
4.宣告路由
(1)在R1上宣告1的环回
[R1-bgp]network 10.1.1.0 24
(2)在R2,R7上宣告
首先改OSPF的网络类型,使学习到的环回都为/25位的(R2-R7设备都要改)
[R2-bgp]int lo0
[R2-LoopBack0]ospf network-type broadcast
然后在R2,R7上分别宣告R2-R7的环回
BGP综合实验
BGP综合实验
(3)在R8上宣告8的环回
[R8-bgp]network 10.1.2.0 24

(4)在R2,R7上修改下一跳为本地
[R2-bgp]peer 172.16.1.1 next-hop-local
[R2-bgp]peer 172.16.2.1 next-hop-local
[R7-bgp]peer 172.16.1.129 next-hop-local
[R7-bgp]peer 172.16.2.129 next-hop-local

(5)在R3,R6上做反射器
[R3-bgp]peer 172.16.0.129 reflect-client
[R6-bgp]peer 172.16.3.1 reflect-client

5.减少路由条目数量(把AS2的路由汇总)
R2:
[R2]bgp 64512
[R2-bgp]aggregate 172.16.0.0 16 detail-suppressed
R7:
[R7]bgp 64513
[R7-bgp]aggregate 172.16.0.0 16 detail-suppressed
BGP综合实验
BGP综合实验
BGP综合实验
BGP综合实验
6.R1与R8的一个环回不能宣告而需要通信,建立Tunnel
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 192.168.3.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre
[R1-Tunnel0/0/0]source 10.1.1.1
[R1-Tunnel0/0/0]destination 10.1.2.1
[R1]ip route-static 192.168.2.0 24 Tunnel 0/0/0

[R8]interface Tunnel 0/0/0
[R8-Tunnel0/0/0]ip address 192.168.3.2 24
[R8-Tunnel0/0/0]tunnel-protocol gre
[R8-Tunnel0/0/0]source 10.1.2.1
[R8-Tunnel0/0/0]destination 10.1.1.1
[R8]ip route-static 192.168.1.0 24 Tunnel 0/0/0
BGP综合实验
BGP综合实验
7.检测
BGP综合实验
BGP综合实验
BGP综合实验

相关文章: