For example, to configure the redistribution of all IPv6 static and RIPng, enter the following commands.
device(config-ospf6-router)# redistribute static
device(config-ospf6-router)# redistribute rip
Syntax:
[no] redistribute
{
bgp
|
connected
|
rip
|
static
[
metric
number
|
metric-type
type
]}
The
bgp
,
connected
,
rip
, and
static
keywords specify the route source.
The
metric
number
parameter specifies the metric used for the redistributed route. If a value is not specified for this option, and the value
for the
default-metric
command is set to 0, its default metric, then routes redistributed from the various routing protocols will have the
metric value of the protocol from which they are redistributed.
The
metric-type
type
parameter specifies an OSPF metric type for the redistributed route. You can specify external type 1 or external
type 2. If a value is not specified for this option, the device uses the value specified by the
metric-type
command.
For example, to configure a route map and use it for redistribution of routes into OSPFv3, enter commands such as the following.
device(config)# ipv6 route 2001:db8:1::/32 2001:db8:343e::23
device(config)# ipv6 route 2001:db8:2::/32 2001:db8:343e::23
device(config)# ipv6 route 2001:db8:3::/32 2001:db8:343e::23 metric 5
device(config)# route-map abc permit 1
device(config-routemap abc)# match metric 5
device(config-routemap abc)# set metric 8
device(config-routemap abc)# ipv6 router ospf
device(config-ospf6-router)# redistribute static route-map abc
The commands in this example configure some static IPv6 routes and a route map, and use the route map for redistributing the static
IPv6 routes into OSPFv3.
The
ipv6 route
commands configure the static IPv6 routes.
The
route-map
command begins configuration of a route map called "abc". The number indicates the route map entry (called the
"instance") you are configuring. A route map can contain multiple entries. The software compares packets to the route map entries in
ascending numerical order and stops the comparison once a match is found.
NOTE
The default action rule for route-map is to deny all routes that are not explicitly permitted.
The
match
command in the route map matches on routes that have 5 for their metric value (cost). The
set
command changes the metric
in routes that match the route map to 8.
The
redistribute
command configures the redistribution of static IPv6 routes into OSPFv3, and uses route map "abc" to control the
routes that are redistributed. In this example, the route map allows a static IPv6 route to be redistributed into OSPF only if the route has a
metric of 5, and changes the metric to 8 before placing the route into the OSPF route redistribution table.
Syntax:
[no] redistribute
{
bgp
|
connected
|
rip
|
static
[
route-map
map-name
]}
The
bgp
,
connected
,
isis
,
ip
, and
static
keywords specify the route source.
The
route-map
map-name
parameter specifies the route map name. The following match parameters are valid for OSPFv3
redistribution:
•
match ipv6 address
|
next-hop
acl-number
•
match metric
number
•
match tag
tag-value
The following set parameters are valid for OSPFv3 redistribution:
•
set ipv6 next-hop
ipv6 address
•
set metric
[+ | - ]
number
|
none
Configuring OSPFv3
FastIron Ethernet Switch Layer 3 Routing
302
53-1003627-04
Summary of Contents for FastIron SX 1600
Page 2: ...FastIron Ethernet Switch Layer 3 Routing 2 53 1003627 04 ...
Page 16: ...FastIron Ethernet Switch Layer 3 Routing 16 53 1003627 04 ...
Page 20: ...FastIron Ethernet Switch Layer 3 Routing 20 53 1003627 04 ...
Page 142: ...FastIron Ethernet Switch Layer 3 Routing 142 53 1003627 04 ...
Page 150: ...FastIron Ethernet Switch Layer 3 Routing 150 53 1003627 04 ...
Page 200: ...FastIron Ethernet Switch Layer 3 Routing 200 53 1003627 04 ...
Page 214: ...FastIron Ethernet Switch Layer 3 Routing 214 53 1003627 04 ...
Page 350: ...FastIron Ethernet Switch Layer 3 Routing 350 53 1003627 04 ...
Page 476: ...FastIron Ethernet Switch Layer 3 Routing 476 53 1003627 04 ...
Page 588: ...FastIron Ethernet Switch Layer 3 Routing 588 53 1003627 04 ...