Configuring Ipv6 Prefix-list

Overview

Function Introduction

Routing Policy is the technology for modifying route information to change traffic route. IPv6 Prefix list is a kind of route policies that used to control and modify routing information. A IPv6 prefix list is identified by list name and contains one or more ordered entries which are processed sequentially. Each entry provides a matched range for network prefix and has a unique sequence number in the list. In the matching process switch will check entries orderly. If an entry matches conditions, this process would finish.

Principle Description

N/A

Configuration

Basic Configuration

step 1 Enter the configure mode

Switch# configure terminal

step 2 Create IPv6 Prefix list

Switch(config)# ipv6 prefix-list test seq 1 deny 2001:db8::1/32 le 48
Switch(config)# ipv6 prefix-list test permit any
Switch(config)# ipv6 prefix-list test description this ipv6 prefix

list is fot test

Switch(config)# ipv6 prefix-list test permit 2001:abc::1/32 le 48

step 3 Exit the configure mode

Switch(config)# end

step 4 Validation

Switch# show ipv6 prefix-list detail
Prefix-list list number: 1
Prefix-list entry number: 3
Prefix-list with the last deletion/insertion: test
ipv6 prefix-list test:
Description: this ipv6 prefix list is fot test
count: 3, range entries: 0, sequences: 1 - 10
seq 1 deny 2001:db8::1/32 le 48 (hit count: 0, refcount: 0)
seq 5 permit any (hit count: 0, refcount: 0)
seq 10 permit 2001:abc::1/32 le 48 (hit count: 0, refcount: 0)

Used by RIPng

step 1 Enter the configure mode

Switch# configure terminal

step 2 Create IPv6 Prefix list

Switch(config)# ipv6 prefix-list aa seq 11 deny 2001:db8::1/32 le 48
Switch(config)# ipv6 prefix-list aa permit any

Step 3 Apply the IPv6 Prefix list

Switch(config)# router ipv6 rip
Switch(config-router) distribute-list prefix aa out
Switch(config-router) exit

step 4 Exit the configure mode

Switch(config)# end

step 5 Validation

Switch# show ipv6 prefix-list
ipv6 prefix-list aa: 2 entries
seq 11 deny 1:db8::1/32 le 48
seq 15 permit any
Switch# show running-config
Building configuration\...
...
ipv6 prefix-list aa seq 11 deny 1:db8::1/32 le 48
ipv6 prefix-list aa seq 15 permit any
...
router ipv6 rip
distribute-list prefix aa out

Used by Route-map

step 1 Enter the configure mode

Switch# configure terminal

step 2 Create IPv6 Prefix list

Switch(config)# ipv6 prefix-list ripng_pre_1 seq 11 permit

fe80::a8f0:d8ff:fe7d:c501/128

Switch(config)# ipv6 prefix-list ripng_pre_1 permit any

step 3 Apply the IPv6 Prefix list to the route map

Switch(config)# route-map ripng_rmap permit
Switch(config-route-map) match ipv6 address prefix-list ripng_pre_1
Switch(config-route-map) set local-preference 200
Switch(config-route-map) exit

step 4 Apply the route map to the RIPng instance

Switch(config)# router ipv6 rip
Switch(config-router) redistribute static route-map ripng_rmap
Switch(config-router) exit

step 5 Exit the configure mode

Switch(config)# end

step 6 Validation

Switch# show route-map
route-map ripng_rmap, permit, sequence 10
Match clauses:
ipv6 next-hop prefix-list ripng_pre_1
Set clauses:
ipv6 next-hop local fe80::1
Switch# show running-config
Building configuration\...
...
ipv6 prefix-list ripng_pre_1 seq 11 permit

fe80::a8f0:d8ff:fe7d:c501/128

ipv6 prefix-list ripng_pre_1 seq 15 permit any

| ! | !

route-map ripng_rmap permit 10
match ipv6 next-hop prefix-list ripng_pre_1
set ipv6 next-hop local fe80::1

| !

router ipv6 rip
redistribute static route-map ripng_rmap

|

ipv6 route 2001:dbc::/64 fe80::a8f0:d8ff:fe7d:c501 eth-0-9

| !

Switch# show ipv6 rip database
S 2001:dbc::/64 fe80::1 eth-0-9 1 0

Application cases {application-cases-92}

N/A