当前位置: 首页 > wzjs >正文

陕西网页设计培训北京网站优化效果

陕西网页设计培训,北京网站优化效果,商丘软件开发,excel做网页放进网站BGP 一、简述二、常用命令总结三、实验 一、简述 二、常用命令总结 display bgp peer #查看 BGP 对等体 display bgp routing-table #查看 BGP 路由表#在R1上通过 network 命令发布路由 [R1]bgp 64513 [R1-bgp] network 10.1.1.1 24#在R2上将路由的下一跳地址修改为自身 [R2]…

BGP

  • 一、简述
  • 二、常用命令总结
  • 三、实验

一、简述

二、常用命令总结

display bgp peer #查看 BGP 对等体
display bgp routing-table	#查看 BGP 路由表#在R1上通过 network 命令发布路由
[R1]bgp 64513
[R1-bgp] network 10.1.1.1 24#在R2上将路由的下一跳地址修改为自身
[R2]bgp 64512
[R2-bgp] peer 10.0.3.3 next-hop-local	#向对等体10.0.3.3宣告自己知道的路由时,告诉它将路由的下一跳都改为我R2。
[R2-bgp] peer 10.0.4.4 next-hop-local

三、实验

背景
你是公司的网络管理员。公司的网络采用了 BGP 协议作为路由协议。公司的网络由多个自治系统组成,不同的分支机构使用了不同的 AS 号,现在你需要完成公司网络的搭建工作。在公司总部使用了 OSPF 作为 IGP,公司内部不同分支机构使用的是私有的 BGP AS 号。在完成网络搭建以后,你还需要观察 BGP 路由信息的传递。

拓扑
在这里插入图片描述

配置
R1

[V200R003C00]
#sysname R1
#
interface GigabitEthernet0/0/0ip address 10.0.1.1 255.255.255.0 
#
interface LoopBack0ip address 1.1.0.1 255.255.255.255 
#
interface LoopBack1ip address 1.1.1.1 255.255.255.0 
#
bgp 64513						#创建区域64513router-id 1.1.0.1				#和ospf类似,设置router-idpeer 2.2.0.2 as-number 64512 	#有个EBGP对等体,在区域64512peer 2.2.0.2 ebgp-max-hop 2 	#与这个对等体最大跳数设为2peer 2.2.0.2 connect-interface LoopBack0	#与这个对等体连接用LoopBack0接口#ipv4-family unicast	#默认的undo synchronization	#默认的network 1.1.1.0 255.255.255.0 peer 2.2.0.2 enable	#默认的
#
ip route-static 2.2.0.2 255.255.255.255 10.0.1.2
#
return

R2

[V200R003C00]
#sysname R2
#
interface GigabitEthernet0/0/0ip address 10.0.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1ip address 10.0.2.2 255.255.255.0 
#
interface LoopBack0ip address 2.2.0.2 255.255.255.255 
#
bgp 64512router-id 2.2.0.2peer 1.1.0.1 as-number 64513 peer 1.1.0.1 ebgp-max-hop 2 peer 1.1.0.1 connect-interface LoopBack0peer 3.3.0.3 as-number 64512 peer 3.3.0.3 connect-interface LoopBack0peer 4.4.0.4 as-number 64512 peer 4.4.0.4 connect-interface LoopBack0#ipv4-family unicastundo synchronizationpeer 1.1.0.1 enablepeer 3.3.0.3 enablepeer 3.3.0.3 next-hop-local peer 4.4.0.4 enablepeer 4.4.0.4 next-hop-local 
#
ospf 1 router-id 2.2.0.2 area 0.0.0.0 network 2.2.0.2 0.0.0.0 network 10.0.2.2 0.0.0.0 
#
ip route-static 1.1.0.1 255.255.255.255 10.0.1.1
#
return

R3

[V200R003C00]
#sysname R3
#
interface GigabitEthernet0/0/1ip address 10.0.2.3 255.255.255.0 
#
interface GigabitEthernet0/0/2ip address 10.0.3.3 255.255.255.0 
#
interface LoopBack0ip address 3.3.0.3 255.255.255.255 
#
bgp 64512router-id 3.3.0.3peer 2.2.0.2 as-number 64512 peer 2.2.0.2 connect-interface LoopBack0peer 4.4.0.4 as-number 64512 peer 4.4.0.4 connect-interface LoopBack0#ipv4-family unicastundo synchronizationpeer 2.2.0.2 enablepeer 4.4.0.4 enable
#
ospf 1 router-id 3.3.0.3 area 0.0.0.0 network 3.3.0.3 0.0.0.0 network 10.0.2.3 0.0.0.0 network 10.0.3.3 0.0.0.0 
#
return

R4

[V200R003C00]
#sysname R4
#
interface GigabitEthernet0/0/0ip address 10.0.4.4 255.255.255.0 
#
interface GigabitEthernet0/0/2ip address 10.0.3.4 255.255.255.0 
#
interface LoopBack0ip address 4.4.0.4 255.255.255.255 
#
bgp 64512router-id 4.4.0.4peer 2.2.0.2 as-number 64512 peer 2.2.0.2 connect-interface LoopBack0peer 3.3.0.3 as-number 64512 peer 3.3.0.3 connect-interface LoopBack0peer 5.5.0.5 as-number 64514 peer 5.5.0.5 ebgp-max-hop 2 peer 5.5.0.5 connect-interface LoopBack0#ipv4-family unicastundo synchronizationpeer 2.2.0.2 enablepeer 2.2.0.2 next-hop-local peer 3.3.0.3 enablepeer 3.3.0.3 next-hop-local peer 5.5.0.5 enable
#
ospf 1 router-id 4.4.0.4 area 0.0.0.0 network 4.4.0.4 0.0.0.0 network 10.0.3.4 0.0.0.0 
#
ip route-static 5.5.0.5 255.255.255.255 10.0.4.5
#
return

R5

[V200R003C00]
#sysname R5
#
interface GigabitEthernet0/0/0ip address 10.0.4.5 255.255.255.0 
#
interface LoopBack0ip address 5.5.0.5 255.255.255.255 
#
interface LoopBack1ip address 5.5.1.5 255.255.255.0 
#
bgp 64514router-id 5.5.0.5peer 4.4.0.4 as-number 64512 peer 4.4.0.4 ebgp-max-hop 2 peer 4.4.0.4 connect-interface LoopBack0#ipv4-family unicastundo synchronizationnetwork 5.5.1.0 255.255.255.0 peer 4.4.0.4 enable
#
ip route-static 4.4.0.4 255.255.255.255 10.0.4.4
#
return

总结

  • R2、 R3、 R4 之间基于 Loopback0 接口建立全互联的 IBGP 对等体关系:R2与R3、R2与R4;R3与R2、R3与R4;R4与R2、R4与R3。
  • 默认情况下, EBGP 连接允许的最大跳数为 1,这导致 EBGP 对等体之间只能使用直连链路建立 EBGP 对等体关系, 为使用环回口作为更新源需要手动修改 EBGP 连接允许的最大跳数(直连1个、环回口1个,共2个EBGP对等体连接)。
  • R3 上已经学习到 R1、 R5 上发布的 BGP 路由, 但是都是非有效路由, 这是因为它们的下一跳在 R3 上都不可达, 为此可以在 R2、 R4 上通过 next-hop-local 命令修改下一跳地址为 R2、 R4 的更新源地址。(R2告诉R3,将自己发给它的BGP路由的下一跳都改为R2自己,R4同理
  • 通过本次实验,有了更多理解,EBGP和IBGP之间通过对等体有一个大框架的路由,可以使用networkimport-route将本AS内路由导入bgp路由,进而在某一路由器下,ip路由表获得了bgp提供的一些路由。
    例如,本实验,在R1上通过bgp路由表导入ip路由的只有R5的loopback1,只有这两个的loopback1之间能ping通,而R1的ip路由表中没有到R3、R4的路由,所以无法ping通。
http://www.dtcms.com/wzjs/266148.html

相关文章:

  • 雨发建设集团有限公司网站网络推广和运营的区别
  • mysql做网站怎么查看数据免费建站平台哪个好
  • 域名怎么进入网址优化大师的优化项目有哪7个
  • 网站建设 意见征集seo的方式包括
  • 企业网站建设分为那几个阶段百度直播间
  • 凯里网站建设公司哪家好新手小白怎么学做运营
  • 廊坊网站设计国际新闻最新消息10条
  • 河津市城乡建设局网站佣金高的推广平台
  • 隐藏wordpress css 的调用路径seo专业技术培训
  • 微信辅助做任务网站怎么推广公众号让人关注
  • 建网站用什么服务器怎么开通网站
  • 网站建设所出现的问题短视频培训机构
  • 护栏板销售网站怎么做营销推广的平台
  • 做愛的网站動漫哪家公司做推广优化好
  • 宁夏建设工程招标投标管理中心网站无锡百度快速优化排名
  • 图片链接怎么生成沈阳seo优化排名公司
  • 北京市政府网站首都之窗怎么做市场推广
  • 网站因该怎么做参考文献精准客户数据采集软件
  • 西安网站建设小程序seo推广收费标准
  • 免费做效果图的网站账户竞价托管公司
  • shuwon-成都网站建设-成都网站制作-成都网络公司-蜀美网络平台推广方案模板
  • 做网站是买服务器还是买cdn淘宝指数查询入口
  • 龙岗汤坑社区网站建设什么是seo站内优化
  • 搭建网站开发网站环境山西太原百度公司
  • 沈阳建站模板展示营销渠道策略
  • 做影视网站代理犯法吗域名交易平台
  • 北京道路优化沈阳关键词优化报价
  • 青岛网站优化外呼系统电销
  • 泰州网站推广见效快竞价点击软件工具
  • 商业网站制作教程seo营销推广全程实例