• MPLS静态LSP配置


    拓扑图

    IP地址规划

     R1:利用OSPF跑通内网路由,再全局使能MPLS,接口激活MPLS,配置静态LSP

    sy 
    sy R1 
    ospf 1 
    area 0 
    network 1.1.1.1 0.0.0.0 
    network 12.0.0.0 0.0.0.255
    q
    mpls lsr-id 1.1.1.1
    mpls 
    q
    int g0/0/0
    mpls 
    q
    static-lsp ingress to3 destination 3.3.3.3 255.255.255.255 nexthop 12.0.0.2 out-label100
    static-lsp egress  to1 incoming-interface g0/0/0 in-label 201

    R2:同R1

    sy 
    sy R2 
    ospf 1 
    area 0 
    network 2.2.2.2 0.0.0.0 
    network 12.0.0.0 0.0.0.255
    network 23.0.0.0 0.0.0.255
    q
    mpls lsr-id 2.2.2.2
    mpls 
    q
    int g0/0/0
    mpls 
    int g0/0/1
    mpls 
    q
    static-lsp transit to3 incoming-interface GigabitEthernet0/0/0 in-label 100 nexthop 23.0.0.3 out-label 200
    static-lsp transit to1 incoming-interface GigabitEthernet0/0/1 in-label 101 nexthop 12.0.0.1 out-label 201

    R3:同R1

    sy 
    sy R3
    ospf 1 
    area 0 
    network 3.3.3.3 0.0.0.0 
    network 23.0.0.0 0.0.0.255
    q
    mpls lsr-id 3.3.3.3
    mpls 
    q
    int g0/0/1
    mpls 
    q
    static-lsp egress to3 incoming-interface GigabitEthernet0/0/1 in-label 200
    static-lsp ingress to1 destination 1.1.1.1 255.255.255.255 nexthop 23.0.0.2 out-label 101

    查看mpls lsp

     

     在R1上测试

  • 相关阅读:
    魔法跳舞链 51Nod
    反射
    JDBC---后端服务器与数据库交互的桥梁
    多线程
    IO流
    继承与重写
    java.util包
    多态
    Java.lang包
    异常
  • 原文地址:https://www.cnblogs.com/dachang/p/13955705.html
Copyright © 2020-2023  润新知