HCIP-BGP选路实验

实验拓扑

HCIP-BGP选路实验_第1张图片

实验需求

全网可达

实验思路

配置IP地址

配置路由协议

建立BGP邻居关系

重发布

优化线路

实验步骤

配置IP地址

以R1为例

[Huawei]sys r1
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
Jan 26 2024 16:29:40-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/1]int l0
[r1-LoopBack0]ip address 1.1.1.1 32

配置路由协议

OSPF

R1为例

[r1]ospf 1 router-id 1.1.1.1 
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network  0.0.0.0 255.255.255.255

RIP

以R6为例

[r6]rip 1
[r6-rip-1]version 2
[r6-rip-1]network 67.0.0.0
[r6-rip-1]network 6.0.0.0

建立BGP邻居关系

以R1为例

[r1]bgp 64512
[r1-bgp]router-id 1.1.1.1
[r1-bgp]confederation id 100	
[r1-bgp]peer 2.2.2.2 as-number 64512
[r1-bgp]peer 2.2.2.2 connect-interface l0

重发布

以R5为例

[r5-bgp]import-route ospf 1

优化线路

以r5为例

[r5-bgp]peer 4.4.4.4 next-hop-local 

你可能感兴趣的:(网络,实验,HCIP,网络)