R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide
402
Figure 112 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPFv3 to make sure that Router A and Router C are reachable to each other. (Details
not shown.)
3. Configure IPv6 BGP on Router A:
# Establish two IBGP connections between Router A and Router C.
<RouterA> system-view
[RouterA] bgp 200
[RouterA-bgp] ipv6-family
[RouterA-bgp-af-ipv6] network 1200:: 64
[RouterA-bgp-af-ipv6] peer 3002::2 as-number 200
[RouterA-bgp-af-ipv6] peer 2002::2 as-number 200
[RouterA-bgp-af-ipv6] quit
# When the two links between Router A and Router C are both up, Router C adopts the link Router
A<—>Router B<—>Router C to exchange packets with network 1200::0/64. (Set a higher MED
value for route 1200::0/64 sent to peer 2002::2 on Router A.)
{ Create IPv6 ACL 2000 to permit 1200::0/64 to pass.
[RouterA] acl ipv6 number 2000
[RouterA-acl6-basic-2000] rule permit source 1200::0 64
[RouterA-acl6-basic-2000] quit
{ Create two route policies, apply_med_50 and apply_med_100. Policy apply_med_50 sets the
MED for route 1200::0/64 to 50. Policy apply_med_100 sets that to 100.
[RouterA] route-policy apply_med_50 permit node 10
[RouterA-route-policy] if-match ipv6 address acl 2000
[RouterA-route-policy] apply cost 50
[RouterA-route-policy] quit
[RouterA] route-policy apply_med_100 permit node 10
[RouterA-route-policy] if-match ipv6 address acl 2000
[RouterA-route-policy] apply cost 100
[RouterA-route-policy] quit
{ Apply routing policy apply_med_50 to routes outgoing to peer 3002::2, and apply routing
policy apply_med_100 to routes outgoing to peer 2002::2.
GE2/1/1
2001::1/64
GE2/1/2
2002::2/64
Router A Router C
AS 200
Router D
GE2/1/1
2001::2/64
GE2/1/2
2002::1/64
GE2/1/2
3001::1/64
GE2/1/2
3001::2/64
GE2/1/1
3002::1/64
GE2/1/1
3002::2/64
Router B
AS 100 AS 300
1200::0/64