BGP综合实验

1.划分IP地址

172.16.0.0/24 ——30 骨干

172.16.1.0/24 ——32 建邻环回

172.16.2.0——172.16.7.0/24 用户网段

R7上的配置

2.①在AS2区域启动ospf协议

[r7]ospf 1 router-id 7.7.7.7

[r7-ospf-1]area 0

[r7-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

②将用户网段从32位改为24位,将环回接口改为broadcast

[r7]int LoopBack 1

[r7-LoopBack1]ospf network-type broadcast

3.启动bgp协议

[r2]bgp 64512

[r2-bgp]router-id 2.2.2.2

[r2-bgp]confederation id 2

[r2-bgp]confederation peer-as 64513

bgp邻居表

4.解决水平分割

R3

[r3]bgp 64512   

[r3-bgp]peer 172.16.2.1 reflect-client

R6

[r6]bgp 64513

[r6-bgp]peer 172.16.7.1 reflect-client

5、在r2上做防环处理,汇总以及路由宣告

[r2]ip route-static 172.16.0.0 21 NULL 0  

[r2]bgp 64512

[r2-bgp]network 172.16.0.0 21

6、建立r1r8GRE,实现两个环回的通讯

[r1]int t0/0/0

[r1-Tunnel0/0/0]ip a 192.168.10.1 24 

[r1-Tunnel0/0/0]tunnel-protocol gre 

[r1-Tunnel0/0/0]source 10.0.0.1

[r1-Tunnel0/0/0]destination 11.0.0.1 

[r1]ip route-static 192.168.1.0 24 99.0.0.2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值