[c-nsp] ospf distance
Manu Chao
linux.yahoo at gmail.com
Thu Mar 19 04:26:48 EDT 2009
I want to change OSPF administrative distance for ospf-external-type-2-only
routes from a specific OSPF neighbor only.
option 1: changing distance using distance command
I know it is possible to change OSPF distance using "distance command" for a
neighbor globally or using standard ACL BUT it is not possible to
restrict-to-ospf-external only ;(
option 2:changing distance using distribute-list command
I try to use distribute-list in with a route-map BUT it is not possible to
set distance inside a route-map :(
I need help. Is it possible? Is there any hint?
Thanks for your help.
My config look like as follow:
option 1:
router ospf 1
router-id 1.1.1.1
distance 19 2.2.2.2 0.0.0.0 ospf-e2-only
!
ip access-list standard ospf-e2-only
permit ?
Router(config-std-nacl)#permit ?
Hostname or A.B.C.D Address to match
any Any source host
host A single host address
--> NOT POSSIBLE TO SPECIFY OSPF EXTERNAL E2 ROUTES :(
option 2:
router ospf 1
router-id 1.1.1.1
distribute-list set-distance-to-ospf-external-2-only in
route-map set-distance-to-ospf-external-2-only
match route-type match route-type external type-2
set ?
Router(config-route-map)#set ?
as-path Prepend string for a BGP AS-path attribute
automatic-tag Automatically compute TAG value
clns OSI summary address
comm-list set BGP community list (for deletion)
community BGP community attribute
dampening Set BGP route flap dampening parameters
default Set default information
extcommunity BGP extended community attribute
interface Output interface
ip IP specific information
ipv6 IPv6 specific information
level Where to import route
local-preference BGP local preference path attribute
metric Metric value for destination routing protocol
metric-type Type of metric for destination routing protocol
mpls-label Set MPLS label for prefix
nlri BGP NLRI type
origin BGP origin code
tag Tag value for destination routing protocol
traffic-index BGP traffic classification number for accounting
vrf Define VRF name
weight BGP weight for routing table
--> NOT POSSIBLE TO CHANGE DISTANCE IN A ROUTE-MAP :(
Thanks in advance
Manu
More information about the cisco-nsp
mailing list