华为交换机MPLS配置代码示例
开启MPLS功能
mpls lsr-id 10.0.0.1
配置MPLS LSR ID
mpls label protocol ldp
配置标签分配协议为LDP
interface gigabitethernet 0/0/1 mpls enable
开启接口的MPLS功能
mpls ldp remote-peer 10.0.0.2
配置远程LDP对等体地址
mpls ldp autoconfig
开启LDP自动配置
mpls ldp session protection
开启LDP会话保护
mpls ldp advertise-label all
配置LDP向远程对等体广告标签
mpls ldp igp sync
开启LDP与IGP同步
mpls ip
开启MPLS IP功能
interface loopback 0 mpls ip
开启Loopback接口的MPLS IP功能
interface gigabitethernet 0/0/2 mpls ip
开启接口的MPLS IP功能
interface gigabitethernet 0/0/3 mpls ip
开启接口的MPLS IP功能
interface gigabitethernet 0/0/4 mpls ip
开启接口的MPLS IP功能
interface gigabitethernet 0/0/5 mpls ip
开启接口的MPLS IP功能
mpls oam
开启MPLS OAM功能
原文地址: https://www.cveoy.top/t/topic/nEs4 著作权归作者所有。请勿转载和采集!