ESR service routers. ESR-Series. Functionality description. Version 1.12.0
198
6.4.2 Configuration example
Objective:
Assign mpls tags only to FEC 10.10.0.0/24
Solution:
On ESR_A and ESR_B create an object-group ADV_LABELS of type network and add a subnet 10.10.0.0/24 to it.
On ESR_B we also add 192.168.2.0/24.
ESR_A
esr(config)# object-group network ADV_LABELS
esr(config-object-group-network)# ip prefix
10.10
.
0.0
/
24
ESR_B
esr(config)# object-group network ADV_LABELS
esr(config-object-group-network)# ip prefix
10.10
.
0.0
/
24
esr(config-object-group-network)# ip prefix
192.168
.
2.0
/
24
Apply the created object-group on both routers.
ESR_A
и
ESR_B
esr(config)# mpls
esr(config-ldp)# ldp
esr(config-ldp)# advertise-labels ADV_LABELS
Check:
On ESR_B make sure that the label is assigned to addresses from the subnet 10.10.0.0/24
esr# sh mpls ldp bindings 10.10.0.1/32
10.10.0.1/32
local label: exp-null
remote label: 75 lsr: 172.16.0.1