Network requirements – H3C Technologies H3C S10500 Series Switches User Manual

Page 379

Advertising
background image

364

[SwitchA-Vlan-interface100] ripng 1 enable

[SwitchA-Vlan-interface100] quit

# Configure three static routes—with next hop 11::2—and ensure that they are active.

[SwitchA] ipv6 route-static 20:: 32 11::2

[SwitchA] ipv6 route-static 30:: 32 11::2

[SwitchA] ipv6 route-static 40:: 32 11::2

# Configure a routing policy.

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

[SwitchA] route-policy static2ripng deny node 0

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

[SwitchA-route-policy] quit

[SwitchA] route-policy static2ripng permit node 10

[SwitchA-route-policy] quit

# Enable RIPng and apply the routing policy to static route redistribution.

[SwitchA] ripng

[SwitchA-ripng-1] import-route static route-policy static2ripng

2.

Configure Switch B.

# Configure the IPv6 address for VLAN-interface 100.

[SwitchB] ipv6

[SwitchB] interface vlan-interface 100

[SwitchB-Vlan-interface100] ipv6 address 10::2 32

# Enable RIPng on VLAN-interface 100.

[SwitchB-Vlan-interface100] ripng 1 enable

[SwitchB-Vlan-interface100] quit

# Enable RIPng.

[SwitchB] ripng

# Display RIPng routing table information.

[SwitchB-ripng-1] display ripng 1 route

Route Flags: A - Aging, S - Suppressed, G - Garbage-collect

----------------------------------------------------------------

Peer FE80::7D58:0:CA03:1 on Vlan-interface 100

Dest 10::/32,

via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 18 Sec

Dest 20::/32,

via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 8 Sec

Dest 40::/32,

via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 3 Sec

Applying a routing policy to filter received BGP routes

Network requirements

As shown in

Figure 118

:

All the switches run BGP. Switch C establishes eBGP connections with other switches.

Configure a routing policy on Switch D to reject routes from AS 200.

Advertising