
The following commands specify an IPv6 prefix list called filterOspfRoutesVe that denies route 2001:db8:3::/64.
device(config)# ipv6 prefix-list filterOspfRoutesVe seq 5 deny 2001:db8:3::/64
device(config)# ipv6 prefix-list filterOspfRoutesVe seq 10 permit ::/0 ge 1 le 128
The following commands configure a distribution list that applies the filterOspfRoutesVe prefix list to routes pointing to virtual interface
10.
device(config)# ipv6 router ospf
device(config-ospf6-router)# distribute-list prefix-list filterOspfRoutesVe in ve 10
After this distribution list is configured, route 2001:db8:3::/64, pointing to virtual interface 10, would be omitted from the OSPFv3 route
table.
device# show ipv6 ospf route
Current Route count: 4
Intra: 3 Inter: 0 External: 1 (Type1 0/Type2 1)
Equal-cost multi-path: 0
Destination Options Area Cost Type2 Cost
Next Hop Router Outgoing Interface
*IA 2001:db8:1::/64 --------- 10.0.0.1 0 0
:: ve 10
*E2 2001:db8:2::/64 --------- 0.0.0.0 10 0
fe80::2e0:52ff:fe00:10 ve 10
*IA 2001:db8:4::/64 --------- 0.0.0.0 10 0
:: ve 11
*E2 2001:db8:5::/64 --------- 0.0.0.0 10 0
fe80::2e0:52ff:fe00:10 ve 10
Configuring an OSPFv3 distribution list using a route map as input
The following commands configure a route map that matches internal routes.
device(config)# route-map allowInternalRoutes permit 10
device(config-routemap allowInternalRoutes)# match route-type internal
The following commands configure a distribution list that applies the allowInternalRoutes route map globally to OSPFv3 routes.
device(config)# ipv6 router ospf
device(config-ospf6-router)# distribute-list route-map allowinternalroutes in
Syntax:
[no] distribute-list
route-map
name
in
After this distribution list is configured, the internal routes would be included, and the external routes would be omitted from the OSPFv3
route table.
device# show ipv6 ospf route
Current Route count: 3
Intra: 3 Inter: 0 External: 0 (Type1 0/Type2 0)
Equal-cost multi-path: 0
Destination Options Area Cost Type2 Cost
Next Hop Router Outgoing Interface
*IA 2001:db8:3001::/64 --------- 10.0.0.1 0 0
:: ve 10
*IA 2001:db8:3015::/64 V6E---R-- 0.0.0.0 11 0
fe80::2e0:52ff:fe00:10 ve 10
*IA 2001:db8:3020::/64 --------- 0.0.0.0 10 0
:: ve 11
Configuring OSPFv3
FastIron Ethernet Switch Layer 3 Routing
306
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 ...