基本的帧模式MPLS配置

实验拓扑图

实验拓扑图

 

1.IP地址配置、环回接口、运营商区域配置OSPF ,CE到PE静态路由,查看路由表。

2.开启CEF,默认启用。

3.全局和接口配置MPLS,指定协议;

4.检验配置。

 

show mpls interfaces

P#show mpls interfaces
Interface              IP            Tunnel   Operational
Serial1/0              Yes (ldp)     No       Yes        
Serial1/1              Yes (ldp)     No       Yes        

 

show mpls ldp neighbor

 

P#show mpls ldp neighbor
    Peer LDP Ident: 10.1.1.1:0; Local LDP Ident 10.1.1.2:0
        TCP connection: 10.1.1.1.646 - 10.1.1.2.32393
        State: Oper; Msgs sent/rcvd: 99/99; Downstream
        Up time: 01:17:15
        LDP discovery sources:
          Serial1/0, Src IP addr:
10.1.10.1
        Addresses bound to peer LDP Ident:
          192.168.1.2     10.1.10.1       10.1.1.1       
    Peer LDP Ident: 10.1.1.3:0; Local LDP Ident 10.1.1.2:0
        TCP connection: 10.1.1.3.19548 - 10.1.1.2.
646
        State: Oper; Msgs sent/rcvd: 97/100; Downstream
        Up time: 01:16:35
        LDP discovery sources:
          Serial1/1, Src IP addr: 10.1.20.2
        Addresses bound to peer LDP Ident:
          10.1.20.2       172.16.1.1      10.1.1.3       

show mpls ldp bindings


P#show mpls ldp bindings
  tib entry: 10.1.1.1/32, rev 8
        local binding:  tag: 17
        remote binding: tsr: 10.1.1.1:0, tag:
imp-null
        remote binding: tsr: 10.1.1.3:0, tag: 18
  tib entry: 10.1.1.2/32, rev 4
        local binding:  tag: imp-null
        remote binding: tsr: 10.1.1.1:0, tag: 16
        remote binding: tsr: 10.1.1.3:0, tag: 17
  tib entry: 10.1.1.3/32, rev 6
        local binding:  tag: 16
        remote binding: tsr: 10.1.1.1:0, tag: 17
        remote binding: tsr: 10.1.1.3:0, tag: imp-null
  tib entry: 10.1.10.0/24, rev 2
        local binding:  tag: imp-null
        remote binding: tsr: 10.1.1.1:0, tag: imp-null
        remote binding: tsr: 10.1.1.3:0, tag: 16
  tib entry: 10.1.20.0/24, rev 10
        local binding:  tag: imp-null
        remote binding: tsr: 10.1.1.1:0, tag: 18
        remote binding: tsr: 10.1.1.3:0, tag: imp-null
  tib entry: 172.16.1.0/24, rev 15
        local binding:  tag: 19
        remote binding: tsr: 10.1.1.3:0, tag: imp-null
        remote binding: tsr: 10.1.1.1:0, tag: 19
  tib entry: 172.16.2.0/24, rev 17
        remote binding: tsr: 10.1.1.3:0, tag: 20
  tib entry: 192.168.1.0/24, rev 14
        local binding:  tag: 18
        remote binding: tsr: 10.1.1.1:0, tag: imp-null
        remote binding: tsr: 10.1.1.3:0, tag: 19
  tib entry: 192.168.2.0/24, rev 16
        remote binding: tsr: 10.1.1.1:0, tag: 20

show mpls forwarding-table


P#show mpls forwarding-table
Local  Outgoing    Prefix            Bytes tag        Outgoing            Next Hop   
tag    tag or VC   or Tunnel Id    switched         interface             
16     Pop tag     10.1.1.3/32           0                 Se1/1                point2point 
17     Pop tag     10.1.1.1/32           0                 Se1/0                point2point 
18     Pop tag     192.168.1.0/24     4976           Se1/0                point2point 
19     Pop tag     172.16.1.0/24       1752           Se1/1                point2point 
 

 

show mpls ldp parameters


P#show mpls ldp parameters
Protocol version: 1
Downstream label generic region: min label: 16; max label: 100000
Session hold time: 180 sec; keep alive interval: 60 sec
Discovery hello: holdtime: 15 sec; interval: 5 sec
Discovery targeted hello: holdtime: 90 sec;
interval: 10 sec
Downstream on Demand max hop count: 255
Downstream on Demand Path Vector Limit: 255
LDP for targeted sessions
LDP initial/maximum backoff: 15/120 sec
LDP loop detection: off

 

还有相应的debug命令,可以看到LDP的交互信息(标签的传播)。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值