beautypg.com

Routing policy configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 951

background image

926

Routing policy configuration examples

Applying a routing policy to IPv6 route redistribution

Network requirements

In

Figure 405

, both SecPath A and SecPath B run RIPng.

Enable RIPng and configure three static routes on SecPath A

On SecPath A, enable static route redistribution into RIPng and apply a routing policy to permit
routes 20::/32 and 40::/32 and deny route 30::/32.

Display RIPng routing table information on SecPath B to verify the configuration.

Figure 405 Network diagram

Configuration procedure

1.

Configure SecPath A:
# Configure IPv6 addresses for interfaces GigabitEthernet 0/1 and GigabitEthernet 0/2.

system-view

[SecPathA] ipv6

[SecPathA] interface GigabitEthernet 0/1

[SecPathA-GigabitEthernet0/1] ipv6 address 10::1 32

[SecPathA-GigabitEthernet0/1] quit

[SecPathA] interface GigabitEthernet 0/2

[SecPathA-GigabitEthernet0/2] ipv6 address 11::1 32

[SecPathA-GigabitEthernet0/2] quit

# Enable RIPng on GigabitEthernet 0/1.

[SecPathA] interface GigabitEthernet 0/1

[SecPathA-GigabitEthernet0/1] ripng 1 enable

[SecPathA-GigabitEthernet0/1] quit

# Configure three static routes on SecPath A.

[SecPathA] ipv6 route-static 20:: 32 GigabitEthernet 0/2

[SecPathA] ipv6 route-static 30:: 32 GigabitEthernet 0/2

[SecPathA] ipv6 route-static 40:: 32 GigabitEthernet 0/2

# Configure a routing policy.

[SecPathA] ip ipv6-prefix a index 10 permit 30:: 32

[SecPathA] route-policy static2ripng deny node 0

[SecPathA-route-policy] if-match ipv6 address prefix-list a

[SecPathA-route-policy] quit

[SecPathA] route-policy static2ripng permit node 10