0
点赞
收藏
分享

微信扫一扫

HuaWei ❀ 配置BGP的基本功能

配置BGP的基本功能

如下图所示,需要在所有路由器之间运行BGP协议,R1、R2之间建立EBGP连接,R2、R3、R4之间建立IBGP连接;
HuaWei ❀ 配置BGP的基本功能_路由表

接口IP地址配置:

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
配置类似,不做阐述;

配置BGP协议:

[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.1.1.2 as-number 2

[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 12.1.1.1 as-number 1
配置类似,不做阐述;

查看BGP对等体建立关系:

[r2]display bgp peer (verbose 详细信息)

发布BGP路由:

[r1]bgp 1
[r1-bgp]ipv4-family unicast
[r1-bgp-af-ipv4]network 1.1.1.1 255.255.255.0
或者
[r1-bgp-af-ipv4]import-route direct
(引入直连路由)

查看BGP路由表:

[r1]display bgp  routing-table


举报

相关推荐

0 条评论