MPLS标签分发控制

2019-01-26  本文已影响0人  singed

查看mpls forwarding-table

R2#sh mpls forwarding-table 
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop    
Label      Label      or Tunnel Id     Switched      interface              
16         Pop Label  150.1.1.1/32     12492         Et0/0      150.1.12.1  
17         Pop Label  150.1.4.4/32     83900         Se1/0      point2point 
18         17         150.1.3.3/32     79571         Et0/0      150.1.12.1  
19         Pop Label  150.1.13.0/24    0             Et0/0      150.1.12.1

限制标签交换

no mpls ldp advertise-labels
mpls ldp advertise-labels for 20
!
access-list 20 permit 150.1.3.3 log
access-list 20 permit 150.1.4.4 log
access-list 20 deny   any

再次查看mpls forwarding-table

R2#sh mpls forwarding-table 
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop    
Label      Label      or Tunnel Id     Switched      interface              
16         No Label   150.1.1.1/32     15413         Et0/0      150.1.12.1  
17         Pop Label  150.1.4.4/32     66995         Se1/0      point2point 
18         17         150.1.3.3/32     945           Et0/0      150.1.12.1  
19         No Label   150.1.13.0/24    0             Et0/0      150.1.12.1
上一篇下一篇

猜你喜欢

热点阅读