MPLS 配置命令详解:从基础到高级应用
以下是一些基本的 MPLS 配置命令,从基础配置到高级应用,涵盖 LDP、RSVP、VPN 和 BGP 等核心功能:
- 配置 MPLS:
Router(config)# mpls label protocol ldp
- 配置 LDP:
Router(config)# router ldp
Router(config-router)# address-family ipv4
Router(config-router-af)# discovery hello holdtime 60
- 配置 MPLS 接口:
Router(config)# interface interface-name
Router(config-if)# mpls ip
- 配置 RSVP:
Router(config)# router rsvp
Router(config-router-rsvp)# interface interface-name
- 配置 VPN:
Router(config)# ip vrf vrf-name
Router(config-vrf)# rd route-distinguisher
Router(config-vrf)# route-target export/import route-target
- 配置 BGP:
Router(config)# router bgp as-number
Router(config-router)# neighbor neighbor-address remote-as as-number
Router(config-router)# address-family ipv4 vrf vrf-name
Router(config-router-af)# neighbor neighbor-address activate
原文地址: https://www.cveoy.top/t/topic/oFOA 著作权归作者所有。请勿转载和采集!