zoukankan      html  css  js  c++  java
  • Lab 1 MPLS标签交换过程

    Topology:

    实验目的:理解MPLS标签交换的过程。

    Step 1、配置各台路由器的IP地址,并且使用Ping命令确认各路由器的直连口的互通性。

    R1:

    s0/0:12.1.1.1/24

    lo 0:1.1.1.1/32

    R2:

    lo 0:2.2.2.2/32

    s0/0:12.1.1.2/24

    s0/2:32.1.1.2/24

    R3:

    lo 0:3.3.3.3/32

    s0/0:23.1.1.3/24

    s0/1:34.1.1.3/24

    R4:

    lo 0:4.4.4.4/32

    s0/0:34.1.1.4/24

    s0/1:45.1.1.4/24

    R5:

    lo 0:5.5.5.5/32

    s0/0:45.1.1.5/24

     

    Step 2、路由器之间运行IGP。

    R1:

    router ospf 100

     router-id 1.1.1.1

     log-adjacency-changes

     network 1.1.1.1 0.0.0.0 area 0

     network 12.1.1.1 0.0.0.0 area 0

     

    R2:

    router ospf 100

     router-id 2.2.2.2

     log-adjacency-changes

     network 2.2.2.2 0.0.0.0 area 0

     network 12.1.1.2 0.0.0.0 area 0

     network 23.1.1.2 0.0.0.0 area 0

     

    R3:

    router ospf 100

     router-id 3.3.3.3

     log-adjacency-changes

     network 3.3.3.3 0.0.0.0 area 0

     network 23.1.1.3 0.0.0.0 area 0

     network 34.1.1.3 0.0.0.0 area 0

     

    R4:

    router ospf 100

     router-id 4.4.4.4

     log-adjacency-changes

     network 4.4.4.4 0.0.0.0 area 0

     network 34.1.1.4 0.0.0.0 area 0

     network 45.1.1.4 0.0.0.0 area 0

     

    R5:

    router ospf 100

     router-id 5.5.5.5

     log-adjacency-changes

     network 5.5.5.5 0.0.0.0 area 0

     network 45.1.1.5 0.0.0.0 area 0

     

    Step 3、在各路由器上配置mpls。

    R1(config)#mpls label range 1000 1999

    R1(config)#mpls label protocol ldp

    R1(config)#mpls ldp router-id lo 0

    R1(config)#int s0/0

    R1(config-if)#mpls ip

    R1(config-if)#exit

    R1(config)#ip cef

     

    R2(config)#mpls label protocol ldp

    R2(config)#mpls label range 2000 2999

    R2(config)#mpls ldp router-id lo 0

    R2(config)#

    R2(config)#ip cef

    R2(config)#

    R2(config)#int s0/0

    R2(config-if)#mpls ip

    R2(config-if)#int s0/2

    R2(config-if)#mpls ip

     

    R3(config)#mpls label protocol ldp

    R3(config)#mpls label range 3000 3999

    R3(config)#mpls ldp router-id lo 0

    R3(config)#

    R3(config)#ip cef

    R3(config)#int s0/0

    R3(config-if)#mpls ip

    R3(config-if)#int s0/1

    R3(config-if)#mpls ip

     

    R4(config)#mpls label protocol ldp

    R4(config)#mpls label range 4000 4999

    R4(config)#mpls ldp router-id lo 0

    R4(config)#ip cef

    R4(config)#int s0/0

    R4(config-if)#mpls ip

    R4(config-if)#int s0/1

    R4(config-if)#mpls ip

     

    R5(config)#mpls label protocol ldp

    R5(config)#mpls label range 5000 5999

    R5(config)#mpls ldp router-id lo 0

    R5(config)#ip cef

    R5(config)#

    R5(config)#int s0/0

    R5(config-if)#mpls ip

     

    Step 4、理解标签交换过程。

    以去5.5.5.5路由为例。

     

    R1#sh mpls ip binding

      5.5.5.5/32

            in label:     1004     

            out label:    2004      lsr: 2.2.2.2:0        inuse

     

    #R1为5.5.5.5分配标签:1004,出标签:2004。

     

    R2#sh mpls ip binding

      5.5.5.5/32

            in label:     2004     

            out label:    1004      lsr: 1.1.1.1:0      

            out label:    3003      lsr: 3.3.3.3:0        inuse

     

    #R2为5.5.5.5分配标签:2004,出标签:3004。

     

    R3#sh mpls ip binding

      5.5.5.5/32

            in label:     3003     

            out label:    2004      lsr: 2.2.2.2:0      

            out label:    4003      lsr: 4.4.4.4:0        inuse

     

    #R3为5.5.5.5分配标签:3003,出标签:4003。

     

    R4#sh mpls ip binding

      5.5.5.5/32

            in label:     4003     

            out label:    3003      lsr: 3.3.3.3:0      

            out label:    imp-null  lsr: 5.5.5.5:0        inuse

     

    #R4为5.5.5.5分配标签:4003,出标签:POP。

     

    R5#sh mpls ip binding

      5.5.5.5/32

            in label:     imp-null 

            out label:    4003      lsr: 4.4.4.4:0 

     

    结论:

    1)show mpls ldp binding,这个是Lib表,保存所有的标签,不管有用没用都保存,只要有人给它发,它就保存。

    2)R1#sh mpls forwarding-table 查看lfib表,lfib表仅存有用的标签。

     

  • 相关阅读:
    idea websitehttp://www.youyur.com/
    chromium project相关页面
    WebKit Remote Debugging
    天兰尾货
    GitCookbook from google chromium
    ocr识别
    Google发布Chrome官方扩展DOM Snitch 可发现网页代码漏洞
    WebKit2 High Level Document ¶
    Phantom JS: an alternative to Selenium
    Python Extension
  • 原文地址:https://www.cnblogs.com/cyrusxx/p/12824039.html
Copyright © 2011-2022 走看看