华三怎么和华为下面查询的效果一样,能看到router ID那些纤细信息
<HUAWEI> display bgp routing-table verbose
Total Number of Routes: 1
BGP local router ID : 10.0.12.2
Local AS number : 100
Paths: 1 available, 1 best, 1 select, 0 best-external, 0 add-path
BGP routing table entry information of 10.0.3.0/24:
Label information (Received/Applied): 48130/48122
From: 10.0.23.3 (10.0.23.3)
Route Duration: 0d00h13m31s
Direct Out-interface: Eth-trunk1
Relay Tunnel Out-Interface: Eth-trunk1
Original nexthop: 10.0.23.3
Qos information : 0x0
AS-path 200, origin igp, MED 0, pref-val 1, valid, external, best, select, pre 255
Advertised to such 1 peers:
10.1.1.1
<Sysname> display bgp routing-table ipv4 10.2.1.0 24
BGP local router ID: 192.168.100.1
Local AS number: 100
Paths: 2 available, 1 best
BGP routing table information of 10.2.1.0/24:
Imported route.
Original nexthop: 10.2.1.1
OutLabel : NULL
Ext-Community : <HostRoute>, <IP Mobility: Flag 0, SeqNum 3>, <Tag: Type 0x83cf,
Value 10>
RxPathID : 0x0
TxPathID : 0x0
AS-path : (null)
Origin : igp
Attribute value : MED 0, pref-val 0, pre 0
State : valid, local, best, delay, bgp-rib-only
Originator : 176.1.1.2
Cluster list : 80
IP precedence : N/A
QoS local ID : N/A
Traffic index : N/A
Tunnel policy : NULL
Rely tunnel IDs : N/A
From : 10.2.1.2 (192.168.100.2)
Rely nexthop : not resolved
Original nexthop: 10.2.1.2
OutLabel : NULL
RxPathID : 0x0
TxPathID : 0x0
AS-path : 200
Origin : igp
Attribute value : MED 0, pref-val 0, pre 255
State : external
IP precedence : N/A
QoS local ID : N/A
Traffic index : N/A
Tunnel policy : NULL
Rely tunnel IDs : N/A
Deny reason : Filter policy
华三(H3C)与华为 BGP 详细信息查询命令对照
你想要华三设备查询出和华为 display bgp routing-table verbose 效果一致的 BGP 详细信息(包含 Router ID、本地 AS、路由详细属性、下一跳、AS 路径、优选信息、发布对等体等),直接用华三专属的 BGP 详细路由查询命令即可,我给你整理完全对应、可直接复制使用的命令。
一、华三 等价于 华为 display bgp routing-table verbose 的命令
华三核心命令(IPv4 单播)
bash
运行
display bgp routing-table verbose
✅ 完全等效:华三这条命令和华为同名命令输出格式、核心字段高度一致,能看到:
BGP 本地 Router ID
本地 AS 号
路由详细信息(网段、下一跳、来源对等体、路由时长)
出接口、原始下一跳、AS 路径、Origin、MED、优先级
最优路由、有效路由、发布给哪些对等体
二、华三 必用 BGP 详细信息查询命令(全覆盖你要的字段)
1. 查看全局 BGP 概要 + Router ID(对应华为头部信息)
bash
运行
display bgp peer
输出直接包含:
BGP local router ID: X.X.X.X
Local AS number: XXX
2. 查看单条路由完整详细信息(最接近你给的华为示例)
bash
运行
# 查看指定网段的BGP详细路由(最精准,和你示例100%匹配)
display bgp routing-table 10.0.3.0 24 verbose
3. 查看所有 BGP 路由详细信息(等价华为整条命令)
bash
运行
display bgp routing-table verbose
三、华三 VS 华为 命令 & 输出对照
表格
功能 华为命令 华三等价命令 输出效果
查看 BGP 全局信息(Router ID / 本地 AS) display bgp peer display bgp peer 完全一致
查看所有 BGP 路由详细信息 display bgp routing-table verbose display bgp routing-table verbose 字段一致
查看指定网段 BGP 详细路由 display bgp routing-table 10.0.3.0 24 verbose display bgp routing-table 10.0.3.0 24 verbose 1:1 匹配
四、华三执行 display bgp routing-table verbose 关键输出(和你示例对应)
plaintext
BGP local router ID: 10.0.12.2 # 本地Router ID
Local AS number: 100 # 本地AS号
BGP routing table entry of 10.0.3.0/24:
From : 10.0.23.3 (10.0.23.3) # 来源对等体+Router ID
State : Valid, External, Best # 有效/外部/最优
Age : 0d00h13m31s # 路由时长
Out interface : Eth-Trunk1 # 出接口
Original nexthop: 10.0.23.3 # 原始下一跳
AS-path : 200 # AS路径
Origin : igp # 起源类型
MED : 0 # MED值
PrefVal : 1 # 本地优先级
Advertised to 1 peer: # 已发布的对等体
10.1.1.1
总结
华三直接用:display bgp routing-table verbose → 和华为命令同名、同效果
精准查单条路由:display bgp routing-table 网段 掩码 verbose
输出包含:Router ID、本地 AS、下一跳、AS 路径、最优路由、发布对等体,完全满足你的需求
暂无评论
display bgp routing-table verbose 那样包含 Router ID、AS号等详细信息的 BGP 路由表,对应的命令是:display bgp routing-table ipv4 verbosedisplay bgp routing-table ipv4:这是查看 BGP IPv4 单播路由表的基础命令。verbose:加上这个关键字后,设备就会输出该路由条目的全部详细信息,包括你关心的本地 Router ID、AS 号、路由的起源、MED、本地优先级、下一跳、AS-Path 等属性。display bgp peer ipv4 verbosedisplay bgp peer ipv4 <邻居IP地址> verboseBGP local router ID、remote router ID(远端邻居的 Router ID)、Local AS number 以及 remote AS 等丰富的交互细节。暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论