设为首页收藏本站language 语言切换
查看: 2446|回复: 3
收起左侧

[原创] MPLS基础配置

[复制链接]
发表于 2016-8-16 15:44:06 | 显示全部楼层 |阅读模式
RIB ---路由表         --show ip route
FIB ---CEF表(路由表)--show ip cef detail
LIB ---标签信息库     --show mpls ldp binding
LFIB---标签转发信息库 --show mpls forwarding-table
                      --show mpls ip binding
                        //查看LIB(in use)
                      --show mpls label range
                      --show mpls ldp neighbor
                      --show mpls interface
                      --show mpls ldp discovery(detail)
                      --show mpls ldp parameters
(config)#ip cef  (must)
         mpls label range 100 199  (option)//定义标签范围,默认从16开始
         mpls ldp router-id loopback 0 (force) --(option)//定义LDProuter-id
(config)#inter f0/0
(config-if)#mpls ip  (must)
(config)#mpls label protocol tdp (默认LDP)

(config)#mpls ldp discovery hello interval 5 //修改hello发现时间
(config)#mpls ldp discovery hello holdtime 15 //发现阶段hello保持时间
(config)#mpls ldp discovery targeted-hello ?
  accept    Accept targeted hellos
  holdtime  LDP discovery Targeted Hello holdtime   默认90s
  interval  LDP discovery Targeted Hello interval   默认10s

R1#clear mpls ldp neighbor *  清除LDP邻居关系
(config)#mpls ldp loop-detection //打开LDP的放环机制,默认关闭
(config)#mpls ldp neighbor 1.1.1.1 password cisco //LDP-MD5认证
目的LDP的配置:
1. (config)#mpls ldp neighbor 2.2.2.2 targeted ldp
2. (config)#mpls ldp discovery targeted-hello accept from cisco
   ip access-list standard cisco
    permit 1.1.1.1
通过LDP控制标签通告
1. no mpls ldp advertise-labels
2. mpls ldp advertise-labels for aaa (匹配的前缀) to bbb(LDP peer)
   写ACL做匹配
   Standard IP access list aaa
    10 permit 3.3.3.3 (8 matches)
    20 permit 4.4.4.4 (7 matches)------;前缀
   Standard IP access list bbb
    10 permit 2.2.2.2 (3 matches)------;LDP peer
MPLS LDP 入站标签捆绑过滤
1. (config)#mpls ldp neighbor 3.3.3.3 labels accept ccc
    Standard IP access list ccc   ---匹配的是路由(前缀)
    10 permit 3.3.3.3 (6 matches)  
    30 permit 5.5.5.5 (1 match)
    20 permit 34.1.1.0 (3 matches)
MPLS 自动配置
1. router ospf 100
      mpls ldp autoconfig area 0 (不需要在接口上打 mpls ip)
MPLS LDP-IGP同步
1. router ospf 100
      mpls ldp sync (被动down生效)


logo _meitu_1.jpg
发表于 2020-7-30 17:48:57 | 显示全部楼层
感谢楼主分享
地板 2020-7-30 17:48:57 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-14 03:55 , Processed in 0.110510 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表