附录25 BGP邻居建立与路由发布_h3c_v3.6-b03d01

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

IGP:OSPF 1 Area 0
10.10.1.10/30
S1/0 AS10 内部路由器 RT5、RT6 不运行 BGP S1/0
RT5
E0/1
Si 10.10.1.13/30
L0:10.10.0.5/32 E0/0
E0/1
RT6
10.10.1.14/30
Si
E0/0 L0:10.10.0.6/32
[RT2] display bgp routing-table
[RT3] display bgp routing-table
[RT4] display bgp routing-table
(5) 查看各设备全局路由表
[RT1] display ip routing-table
[RT2] display ip routing-table
undo network 10.10.0.0 255.255.0.0 import-route ospf 1 import-route direct
[RT2] undo ip route-static 10.10.0.0 255.255.0.0 NULL0 bgp 10
undo network 10.10.0.0 255.255.0.0 import-route ospf 1 import-route direct
Static 60 0
NextHop 0.0.0.0
Interface NULL0
[RT1] display bgp routing-table
Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale
[RT2] bgp 10 [RT2-bgp] peer 10.10.0.1 next-hop-local
[RT1] display bgp routing-table
[RT2] display bgp routing-table
[RT1] bgp 10 [RT1-bgp] peer 10.10.0.2 next-hop-local
[RT2] router id 10.10.0.2 ospf 1
area 0 network 10.10.0.2 0.0.0.0 network 10.10.1.0 0.0.0.255
import-route direct cost 1000 type 1 //边界网段发布:重发布直连路由至 IGP default-route-advertise always cost 2000 type 1
则需要运行 IGP。(如果 AS 边界接口启动了 IGP,必须配置被动接口;禁止在 AS 间
建立 IGP 邻居,禁止将 AS 内部 IGP 拓扑通告给其他 AS,AS 间的路由传播通过 BGP。)
(3) AS 40 的 IGP 配置及调测
本实验 AS 40 只有一台设备 RT4,故无需运行 IGP;如果 AS 40 中还有其他设备,
[RT5]
[RT6] RT1、RT2、RT5、RT6:
display ospf peer
//每台 2 个 FULL 邻居,网络类型 p2p,无 DR、BDR 选举。
display ip routing-table
(2) AS 30 的 IGP 配置及调测
本实验 AS 30 只有一台设备 RT3,故无需运行 IGP;如果 AS 30 中还有其他设备,
[RT1] display bgp routing-table // 全局路由表中的 IGP 路由发布至 BGP 时,自动将该路由的 metric 赋给 BGP MED。
[RT1] ip route-static 10.10.0.0 255.255.0.0 NULL0 bgp 10
network 10.10.0.0 255.255.0.0
[RT1] display ip routing-table
Destination/Mask Proto Pre Cost
10.10.0.0/16
命令参考: reset bgp all :清除 bgp 邻居,重建 bgp 连接,重新收敛 bgp。 refresh bgp all <import|export> :不清除 bgp 邻居,在现有 bgp 邻居上刷新路由。
25.1.5. BGP 配置及调测(路由发布:静态注入)
(1) AS 10 路由发布
peer 10.10.13.2 as-number 30
[RT2]
bgp 10 undo synchronization undo summary automatic
// 关同步(非同步状态) // 关自动汇总
peer 10.10.0.1 as-number 10
peer 10.10.0.1 connect-interface LoopBack0
[RT1] router id 10.10.0.1 ospf 1
area 0 network 10.10.0.1 0.0.0.0 network 10.10.1.0 0.0.0.255 network 10.10.13.0 0.0.0.3
silent-interface Serial5/0 // 边界网段发布:network 至 IGP + 被动接口 default-route-advertise always cost 2000 type 1
peer 10.30.34.2 as-number 40
[RT4]
bgp 40 undo synchronization undo summary automatic
// 关同步(非同步状态) // 关自动汇总
peer 10.20.24.1 as-number 10
peer 10.30.34.1 as-number 30
[RT1] display bgp routing-table
[RT2] display bgp routing-table
4
实验 25 BGP 邻居建立与路由发布
25.1.8. BGP 配置及调测(路由发布:动态注入)
(1) 纯动态注入(重发布 IGP 路由至 BGP)
[RT1] undo ip route-static 10.10.0.0 255.255.0.0 NULL0 bgp 10
EBGP
G0/0
G0/1
L0:10.40.0.1/32
RT3
RT4
Si 10.30.34.1/30 10.30.34.2/30 Si
S5/0 10.10.13.2/30
EBGP
S5/0 10.20.24.2/30
EBGP
Βιβλιοθήκη Baidu
10.10.13.1/30 S5/0
AS10:10.10.0.0/16
IBGP
10.20.24.1/30 S0/0
network 10.10.0.0 255.255.0.0
注意:network 命令只发布路由,不建立邻居! (2) AS 30 路由发布
[RT3] ip route-static 10.30.0.0 255.255.0.0 NULL0 bgp 30
network 10.30.0.0 255.255.0.0
(1) RT1、RT2、RT3、RT4、RT5、RT6 的基本信息和 Loopback 0 接口配置。 (2) RT3、RT4、RT5、RT6 的业务接口配置。 (3) RT1—RT2、RT1—RT5、RT2—RT6、RT5—RT6 的链路调测。 (4) RT1—RT3、RT2—RT4、RT3—RT4 的链路调测。
RT1 Si
L0:10.10.0.1/32
G0/1 10.10.1.1/30
G0/1 10.10.1.2/30
RT2
Si
L0:10.10.0.2/32
S5/2 IGP 发布 0.0.0.0/0 IGP 发布 0.0.0.0/0 S5/2
10.10.1.5/30
AS 10
10.10.1.9/30
10.10.1.6/30
则需要运行 IGP。
25.1.4. BGP 配置及调测(邻居建立)
(1) BGP 邻居配置
[RT1]
bgp 10 undo synchronization undo summary automatic
// 关同步(非同步状态) // 关自动汇总
peer 10.10.0.2 as-number 10
peer 10.10.0.2 connect-interface LoopBack0
Origin : i - IGP, e - EGP, ? - incomplete
Network
NextHop
MED
LocPrf PrefVal Path/Ogn
*> 10.10.0.0/16
0.0.0.0
0
0
i
[RT2] // 理论上,只要在 RT1 上发布即可,RT2 上也发布该路由是为了备份 RT1 故障。 ip route-static 10.10.0.0 255.255.0.0 NULL0 bgp 10
[RT5] display ip routing-table
[RT6] display ip routing-table
[RT3] display ip routing-table
[RT4] display ip routing-table
25.1.6. BGP 配置及调测(数据转发及路由分析)
(1) 测试全网连通性(ping) (2) 测试全网路径(traceroute) (3) 数据转发分析:PC5(10.10.5.10)访问 PC4(10.40.4.10)的过程 (4) BGP 路由选择与路由通告分析 (5) 思考题:RT1 的 OSPF 没有配置 silent-interface Serial5/0,以至于 RT1 与 RT3 之间建立
peer 10.20.24.2 as-number 40
2
实验 25 BGP 邻居建立与路由发布
[RT3]
bgp 30 undo synchronization undo summary automatic
// 关同步(非同步状态) // 关自动汇总
peer 10.10.13.1 as-number 10
实验25 BGP 邻居建立与路由发布(H3C)
25.1. 组网一:BGP 邻居建立与路由发布
25.1.1. 组网需求
AS30:10.30.0.0/16
AS40:10.40.0.0/16
AS 30 10.30.3.1/24
10.40.4.1/24 AS 40
G0/0
L0:10.30.0.1/32
G0/1
了 OSPF 邻居,有何危害?
25.1.7. BGP 配置及调测(BGP Next-hop 问题)
(1) 思考题:RT2 的 OSPF 没有配置 import-route direct,RT1 是否能正确学习 BGP 路由? (2) IBGP 邻居常规配置:peer <邻居 IP 或邻居组名> next-hop-local
注意:neighbor 命令只建立邻居,不发布路由! (2) 查看 BGP 邻居状态
[RT1] display bgp peer verbose
[RT1] display bgp peer
[RT2] display bgp peer
[RT3] display bgp peer
[RT4] display bgp peer
10.10.5.1/24
10.10.6.1/24
所有 BGP 路由器都关同步(非同步状态)、关自动汇总。 AS10 的内部路由器 RT5、RT6 不运行 BGP;RT5、RT6 通过 AS10 的边界路由器 RT1、 RT2 发布的 IGP 缺省路由到达 AS 外部。
图25.1 实验拓扑(组网一)
25.1.2. 链路连通性调测
3
蓝狐高级网络工程师系列教材——网络工程实验指南(第二卷)
(3) AS 40 路由发布
[RT4] ip route-static 10.40.0.0 255.255.0.0 NULL0 bgp 40
network 10.40.0.0 255.255.0.0
(4) 查看各设备 BGP 表
[RT1] display bgp routing-table
1
蓝狐高级网络工程师系列教材——网络工程实验指南(第二卷)
25.1.3. IGP 配置及调测
(1) AS 10 的 IGP(OSPF 1 Area 0)配置及调测 将 RT1—RT2、RT1—RT5、RT2—RT6、RT5—RT6 的网络类型都配置为点对点。 将 RT1—RT2、RT1—RT5、RT2—RT6、RT5—RT6 的 OSPF Cost 都配置为 100。
相关文档
最新文档