BGP综合实验

实验要求:

实验过程:

1.配置IP地址:

[R1-LoopBack0]ip address 1.1.1.1 24

[R1-GigabitEthernet0/0/0]ip address 12.1.1.1 24

 

[R8-LoopBack0]ip add 8.8.8.8 24

[R8-GigabitEthernet0/0/0]ip add 78.1.1.8 24

2.在R2-R7上启用ospf

[R2]ospf 1

[R2-ospf-1]area 0

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

[R2]interface LoopBack 1

[R2-LoopBack1]ospf network-type broadcast

3.完成BGP联邦设置

 

 

 [R4]

[R4]bgp 64512

[R4-bgp]confederation id 2

[R4-bgp]peer 172.16.0.3 as-number 64512

[R4-bgp]peer 172.16.0.3 connect-interface LoopBack 0

[R4-bgp]peer 172.16.0.3 next-hop-local

[R4-bgp]

[R4-bgp]peer 172.16.0.7 as-number 64513

[R4-bgp]peer 172.16.0.7 ebgp-max-hop 2

 

[R5]bgp 64513

[R5-bgp]confederation id 2

[R5-bgp]confederation peer-as 64512

[R5-bgp]peer 172.16.0.2 connect-interface LoopBack 0

[R5-bgp]peer 172.16.0.2 ebgp-max-hop 2              

[R5-bgp]peer 172.16.0.2 as-number 64512

[R5-bgp]     

[R5-bgp]peer 172.16.0.6 as-number 64513

[R5-bgp]peer 172.16.0.6 next-hop-local

[R5-bgp]peer 172.16.0.6 connect-interface LoopBack 0

 

[R6]bgp 64513

[R6-bgp]confederation id 2

 

[R6-bgp]peer 172.16.0.5 as-number 64513

[R6-bgp]peer 172.16.0.5 connect-interface LoopBack 0

[R6-bgp]peer 172.16.0.5 next-hop-local

[R6-bgp]

[R6-bgp]peer 172.16.0.7 as-number 64513

[R6-bgp]peer 172.16.0.7 next-hop-local

[R6-bgp]peer 172.16.0.7 connect-interface LoopBack 0

 

 

[R7]bgp 64513

[R7-bgp]confederation id 2r

[R7-bgp]confederation peer-as 64512

[R7-bgp]peer 172.16.0.4 as-number 64512

[R7-bgp]peer 172.16.0.4 connect-interface LoopBack 0

[R7-bgp]peer 172.16.0.4 ebgp-max-hop 2

[R7-bgp]

[R7-bgp]peer 172.16.0.6 as-number 64513

[R7-bgp]peer 172.16.0.6 connect-interface LoopBack 0       

[R7-bgp]peer 172.16.0.6 next-hop-local

[R7-bgp]

[R7-bgp]peer 78.1.1.8 as-number 3

[R8]bgp 3

[R8-bgp]peer 78.1.1.7 as-number 2

 4.在R3和R6上完成反射器设置

[R6]bgp 64513

[R6-bgp]peer 172.16.0.7 reflect-client

5.宣告

 6.在R2和R7上使用重发布实现实验要求1

7.AS2网段地址172.16.0.0/16减少路由条目数量

[R2]bgp 64512

[R2-bgp]aggregate 172.16.0.0 21 detail-suppressed

[R7]bgp 64513

[R7-bgp]aggregate 172.16.0.0 21 detail-suppressed

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值