第一范文网 - 专业文章范例文档资料分享平台

1304032005-丁希宝-网络工程-实验六-BGP属性实验

来源:用户分享 时间:2025/6/11 9:12:55 本文由杳然 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

计算机科学与技术系

实 验 报 告

专业名称 网络工程 课程名称 网络工程实验 项目名称 BGP属性实验

班 级 13级网络工程二班

学 号 1304032005 姓 名 丁希宝 实验日期 2015.11.17

实验六 BGP属性实验

一、实验目的

1、学会配置基本的BGP配置。

2、了解BGP学习路由过程以及传递过程 3、掌握bgp的属性以及传递过程 二、实验工具

电脑,IOU软件模拟器 三、实验拓扑

四、实验要求

1、使用合适的网段进行网络规划

2、每台设备运行BGP路由协议,并建立邻居关系 3、在IBGP邻居关系下改变下一跳,使下一跳可达 4、更改源更新为回环口

5、在R6上做3个回环口6.6.6.6/32 7.7.7.7/32 8.8.8.8/32 6、在R2上做route-map来进行控制属性实现路径控制

五、实验配置及结果 1、路由器的基本配置

R1的基本配置

R1(config)#int s0/0

R1(config-if)#ip address 192.168.12.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#int s0/1

R1(config-if)#ip address 192.168.13.1 255.255.255.0 R1(config-if)#no sh R1(config-if)#int lo0

R1(config-if)#ip address 1.1.1.1 255.255.255.255 R1(config)#router ospf 100

R1(config-router)#network 192.168.12.0 0.0.0.255 area 0 R1(config-router)#network 192.168.13.0 0.0.0.255 area 0 R1(config-router)#network 1.1.1.1 0.0.0.0 area 0 R1(config)#router bgp 100

R1(config-router)#bgp router-id 1.1.1.1

R1(config-router)#neighbor 2.2.2.2 remote-as 100 R1(config-router)#neighbor 2.2.2.2 update-source lo0 R1(config-router)#neighbor 2.2.2.2 next-hop-self R1(config-router)#neighbor 3.3.3.3 remote-as 100 R1(config-router)#neighbor 3.3.3.3 update-source lo0 R1(config-router)#neighbor 3.3.3.3 next-hop-self

R2的配置

R2(config)#int s0/0

R2(config-if)#ip address 192.168.12.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#int s0/1

R2(config-if)#ip address 192.168.24.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#int lo0

R2(config-if)#ip address 2.2.2.2 255.255.255.255 R2(config)#router ospf 100

R2(config-router)#router-id 2.2.2.2

R2(config-router)#network 192.168.12.0 0.0.0.255 area 0 R2(config-router)#network 2.2.2.2 0.0.0.0 area 0 R2(config)#router bgp 100

R2(config-router)#bgp router-id 2.2.2.2

R2(config-router)#neighbor 1.1.1.1 remote-as 100 R2(config-router)#neighbor 1.1.1.1 update-source lo0

R2(config-router)#neighbor 1.1.1.1 next-hop-self

R2(config-router)#neighbor 192.168.24.4 remote-as 200 R2(config-router)#neighbor 192.168.24.4 next-hop-self R2(config-router)#neighbor 192.168.24.4 ebgp-multihop

R3的配置

R3(config)#int s0/1

R3(config-if)#ip address 192.168.13.3 255.255.255.0 R3(config-if)#no sh R3(config-if)#int s0/0

R3(config-if)#ip address 192.168.35.3 255.255.255.0 R3(config-if)#no sh R3(config-if)#int lo0

R3(config-if)#ip address 3.3.3.3 255.255.255.255 R3(config)#router ospf 100

R3(config-router)#router-id 3.3.3.3

R3(config-router)#network 192.168.13.0 0.0.0.255 area 0 R3(config-router)#network 3.3.3.3 0.0.0.0 area 0 R3(config)#router bgp 100

R3(config-router)#bgp router-id 3.3.3.3

R3(config-router)#neighbor 1.1.1.1 remote-as 100 R3(config-router)#neighbor 1.1.1.1 update-source lo0 R3(config-router)#neighbor 1.1.1.1 next-hop-self

R3(config-router)#neighbor 192.168.35.5 remote-as 300 R3(config-router)#neighbor 192.168.35.5 next-hop-self R3(config-router)#neighbor 192.168.35.5 ebgp-multihop

R4的配置

R4(config)#int s0/1

R4(config-if)#ip address 192.168.24.4 255.255.255.0 R4(config-if)#no sh R4(config-if)#int s0/0

R4(config-if)#ip address 192.168.46.4 255.255.255.0 R4(config-if)#no sh R4(config-if)#int lo0

R4(config-if)#ip address 4.4.4.4 255.255.255.255 R4(config)#router bgp 200

R4(config-router)#bgp router-id 4.4.4.4

R4(config-router)#neighbor 192.168.24.2 remote-as 100 R4(config-router)#neighbor 192.168.24.2 next-hop-self R4(config-router)#neighbor 192.168.24.2 ebgp-multihop R4(config-router)#neighbor 192.168.46.6 remote-as 400

R4(config-router)#neighbor 192.168.46.6 next-hop-self R4(config-router)#neighbor 192.168.46.6 ebgp-multihop

1304032005-丁希宝-网络工程-实验六-BGP属性实验.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c285x54xw9968ub00wpnr_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top