首页/网络/BGP 与广域网速查/华为 VPN 实例配置:RD/RT 与接口绑定
MPLS 与专线70 条

华为 VPN 实例配置:RD/RT 与接口绑定

华为用 ip vpn-instance 定义实例,route-distinguisher 与 vpn-target 对应 RD 与 RT;接口用 ip binding vpn-instance 绑定,路由表按实例独立。

BGP 与广域网速查网络更新于 2026-10-12
定义ip vpn-instance CUST-A
RDroute-distinguisher 65001:1
RTvpn-target 65001:1 export-extcommunity / import-extcommunity
绑定接口下 ip binding vpn-instance CUST-A

配置示例

配置示例
system-view
 ip vpn-instance CUST-A
  route-distinguisher 65001:1
  vpn-target 65001:1 export-extcommunity
  vpn-target 65001:1 import-extcommunity
#
interface GigabitEthernet0/0/2.100
 ip binding vpn-instance CUST-A
 ip address 10.10.2.1 24
#
display ip vpn-instance CUST-A verbose

易错点

  • 绑定前接口已有地址:绑定后地址失效,注意配置顺序
  • vpn-target 方向写错:路由只进不出或只出不进

数据来源与参考

  • 华为: VPN 实例配置指南
  • RFC 4364: BGP/MPLS IP VPNs
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌