RIP+OSPF+BGP配置(思科+华为)
本文最后更新于 2025年4月27日 晚上
| 协议 | 思科(Cisco) | 华为(Huawei) |
|---|---|---|
| RIP | router ripversion 2network <network>no auto-summary |
rip 1version 2network <network>undo auto-summary |
| OSPF | router ospf <process-id>network <network> <wildcard-mask> area <area-id>router-id <router-id> |
ospf <process-id>network <network> <wildcard-mask>router-id <router-id>area <area-id> |
| BGP | router bgp <asn>network <network> mask <subnet-mask>neighbor <ip-address> remote-as <asn> |
bgp <asn>network <network> <subnet-mask>peer <ip-address> as-number <asn> |
说明:
RIP(Routing Information Protocol)
- 思科:通过
router rip启用 RIP,并配置 RIP 版本和网络,通常需要禁用auto-summary。 - 华为:通过
rip <instance-id>启用 RIP,配置类似于思科,但命令稍有不同,使用undo auto-summary来禁用自动汇总功能。
- 思科:通过
OSPF(Open Shortest Path First)
- 思科:需要通过
router ospf <process-id>启动 OSPF 路由进程,配置网络并指定所属区域。router-id可选,通常用于避免自动选取路由器 ID。 - 华为:配置
ospf <process-id>启动 OSPF,指定网络和区域,router-id配置也可选。
- 思科:需要通过
BGP(Border Gateway Protocol)
- 思科:使用
router bgp <asn>启用 BGP,配置网络、邻居关系以及AS号等。 - 华为:在
bgp <asn>配置下启用 BGP,使用network配置网络,peer配置邻居 IP 和 AS 号。
- 思科:使用
RIP+OSPF+BGP配置(思科+华为)
https://xinhaojin.github.io/2024/11/22/RIP+OSPF+BGP配置(思科+华为)/