RD sets are used to match the RD attributes of VPN routes.
If only paragraph editing is used as an example, the corresponding line editing is similar. To use the line editing mode, perform the operations described in paragraph editing.
For detailed set and route-filter configuration steps, see Configuration Procedures of Sets and Route-Filters Using the Paragraph Editing Mode. For detailed description about XPL clauses, see XPL Paragraph Editing Clauses.
Objective |
Configure an RD set to match the VPN routes carrying the RD (100:1, 200:1, or 300:*) in the format of 2-byte AS number in dotted notation:4-byte user-defined number. |
Configuration Example |
<HUAWEI> edit xpl rd-list rd-list1
xpl rd-list rd-list1
100:1,
200:1,
regular 300:*
end-list
The RD set contains three elements and can match VPN routes carrying RD 100:1 or 200:1 or an RD beginning with 300. |
Objective |
Configure a route-filter to allow only the VPN routes carrying the RDs contained in the set named rd-list1 to match the route-filter. |
Reference Example |
<HUAWEI> edit xpl route-filter r1
xpl route-filter r1
if rd in rd-list1 then
approve
else
refuse
endif
end-filter
The route-filter references the set named rd-list1 and allows only the VPN routes carrying the RDs contained in the set to match the route-filter. |