beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 389

background image

373

[PE1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] network 1.1.0.0 0.0.255.255

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

[PE1]

3.

Configure PE 2:

system-view

[PE2] ipv6

[PE2] mpls lsr-id 3.3.3.3

[PE2] mpls

[PE2-mpls] lsp-trigger all

[PE2-mpls] quit

[PE2] mpls ldp

[PE2-mpls-ldp] quit

[PE2] interface Pos 2/1/3

[PE2-Pos2/1/3] ip address 1.1.1.2 16

[PE2-Pos2/1/3] mpls

[PE2-Pos2/1/3] mpls ldp

[PE2-Pos2/1/3] quit

[PE2] interface Pos 2/1/2

[PE2-Pos2/1/2] ipv6 address auto link-local

[PE2-Pos2/1/2] quit

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 3.3.3.3 32

[PE2-LoopBack0] ipv6 address 3::3/128

[PE2-LoopBack0] quit

# Configure IBGP, enable the peer’s 6PE capabilities, and redistribute IPv6 direct and static
routes.

[PE2] bgp 65100

[PE2-bgp] peer 2.2.2.2 as-number 65100

[PE2-bgp] peer 2.2.2.2 connect-interface loopback 0

[PE2-bgp] ipv6-family

[PE2-bgp-af-ipv6] import-route direct

[PE2-bgp-af-ipv6] import-route static

[PE2-bgp-af-ipv6] peer 2.2.2.2 enable

[PE2-bgp-af-ipv6] peer 2.2.2.2 label-route-capability

[PE2-bgp-af-ipv6] quit

[PE2-bgp] quit

# Configure the static route to CE 2.

[PE1] ipv6 route-static 4::4 128 Pos2/1/2

# Configure OSPF for LSP establishment.

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0

[PE1-ospf-1-area-0.0.0.0] network 1.1.0.0 0.0.255.255

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

[PE1]