beautypg.com

Verifying the configuration, Displaying and maintaining ldp, Ldp configuration examples – H3C Technologies H3C S12500-X Series Switches User Manual

Page 53

background image

42

# On Switch D, create an IP prefix list prefix-to-a that denies subnet 21.1.1.0/24. Switch D uses

this list to filter FEC-label mappings to be advertised to Switch A.

[SwitchD] ip prefix-list prefix-to-a index 10 deny 21.1.1.0 24

[SwitchD] ip prefix-list prefix-to-a index 20 permit 0.0.0.0 0 less-equal 32

# On Switch D, create an IP prefix list peer-a that permits 1.1.1.9/32. Switch D uses this list to

filter peers.

[SwitchD] ip prefix-list peer-a index 10 permit 1.1.1.9 32

# On Switch D, create an IP prefix list prefix-to-c that denies subnet 11.1.1.0/24. Switch D uses
this list to filter FEC-label mappings to be advertised to Switch C.

[SwitchD] ip prefix-list prefix-to-c index 10 deny 11.1.1.0 24

[SwitchD] ip prefix-list prefix-to-c index 20 permit 0.0.0.0 0 less-equal 32

# On Switch D, create an IP prefix list peer-c that permits subnet 3.3.3.9/32. Switch D uses this
list to filter peers.

[SwitchD] ip prefix-list peer-c index 10 permit 3.3.3.9 32

# On Switch D, configure a label advertisement policy, so Switch D does not advertise label
mappings for FEC 21.1.1.0/24 to Switch A, and does not advertise label mappings for FEC

11.1.1.0/24 to Switch C.

[SwitchD] mpls ldp

[SwitchD-ldp] advertise-label prefix-list prefix-to-a peer peer-a

[SwitchD-ldp] advertise-label prefix-list prefix-to-c peer peer-c

[SwitchD-ldp] quit

Verifying the configuration

# Execute the display mpls ldp lsp command on each switch to view the LDP LSP information.

[SwitchA] display mpls ldp lsp

Status Flags: * - stale, L - liberal

Statistics:

FECs: 2 Ingress LSPs: 1 Transit LSPs: 1 Egress LSPs: 1

FEC In/Out Label Nexthop OutInterface

11.1.1.0/24 1277/-

-/1151(L)

-/1277(L)

21.1.1.0/24 -/1276 10.1.1.2 Vlan-int2

1276/1276 10.1.1.2 Vlan-int2

[SwitchB] display mpls ldp lsp

Status Flags: * - stale, L - liberal

Statistics:

FECs: 2 Ingress LSPs: 2 Transit LSPs: 2 Egress LSPs: 0

FEC In/Out Label Nexthop OutInterface

11.1.1.0/24 -/1277 10.1.1.1 Vlan-int2

1277/1277 10.1.1.1 Vlan-int2

21.1.1.0/24 -/1149 20.1.1.2 Vlan-int3

1276/1149 20.1.1.2 Vlan-int3

[SwitchC] display mpls ldp lsp

Status Flags: * - stale, L - liberal

Statistics: