News
发布日期:2023-04-28 浏览次数:1128 来源:崔志鹏
在HCIE培训(Datacom)学习中,什么是活动路由通告?WOLFLAB
WOLFLAB官方微信:17316362402,关注【WOLFLAB网络技术实验室】HCIE培训(Datacom)课程循环开班中,联系网站客服预约免费试听!
active-route-advertise //只有提交路由表成功的路由才会传递给邻居,该命令对自身发布的路由无效。
注意:该命令跟bgp-rib-only互斥
场景:R1发布192.168.1.0/24和192.168.2.0/24两条路由
R2
ip route-static 192.168.1.0 255.255.255.0 NULL0
bgp 100
peer 1.1.12.1 as-number 100
peer 1.1.23.3 as-number 300
#
ipv4-family unicast
undo synchronization
active-route-advertise
peer 1.1.12.1 enable
peer 1.1.23.3 enable
此时查看R2的BGP表:
[Huawei]dis bgp routing-table 192.168.1.0
BGP local router ID : 1.1.12.2
Local AS number : 100
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 192.168.1.0/24:
From: 1.1.12.1 (1.1.12.1)
Route Duration: 00h24m48s
Relay IP Nexthop: 0.0.0.0
Relay IP Out-Interface: GigabitEthernet0/0/0
Original nexthop: 1.1.12.1
Qos information : 0x0
AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, intern
al, best, select, pre 255
Not advertised to any peer yet
[Huawei]dis bgp routing-table 192.168.2.0
BGP local router ID : 1.1.12.2
Local AS number : 100
Paths: 1 available, 1 best, 1 select
BGP routing table entry information of 192.168.2.0/24:
From: 1.1.12.1 (1.1.12.1)
Route Duration: 00h25m00s
Relay IP Nexthop: 0.0.0.0
Relay IP Out-Interface: GigabitEthernet0/0/0
Original nexthop: 1.1.12.1
Qos information : 0x0
AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, intern
al, best, select, active, pre 255
Advertised to such 1 peers:
1.1.23.3
注意:可以看到192.168.2.0这条路由是active的,此时R2只将192.168.2.0这条路由传递给R3。
HCIE培训(Datacom)课程循环开班,联系WOLFLAB预约免费试听
我们提供:
CCNA|CCNP|EI CCIE;HCIA|HCIP|HCIE Datacom|VMware等培训