华为MPLS BGP 配置
以下是华为MPLS BGP配置的示例:
- 配置MPLS
mpls mpls ldp mpls lsr-id 1.1.1.1 interface gigabitethernet 0/0/1 mpls mpls ldp
- 配置BGP
bgp 65000 peer 2.2.2.2 as-number 65000 peer 2.2.2.2 enable peer 2.2.2.2 connect-interface gigabitethernet 0/0/2 peer 2.2.2.2 password cipher xxx peer 2.2.2.2 route-policy export test peer 2.2.2.2 vpn-instance vpn1 ipv4-family vpn-instance vpn1 import-route direct import-route static import-route ospf import-route bgp
- 配置VPN实例
ip vpn-instance vpn1 route-distinguisher 65000:1 route-target export 65000:1 route-target import 65000:1
- 配置BGP路由策略
route-policy test permit node 10 if-match ip-prefix 10.0.0.0/8 apply community 65000:1 apply label 10001 route-policy test permit node 20 apply community 65000:2 apply label 10002
以上是一个简单的华为MPLS BGP配置示例。需要根据具体网络情况进行调整和修改
原文地址: https://www.cveoy.top/t/topic/dnDY 著作权归作者所有。请勿转载和采集!