Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 285

Syntax: [no] distribute-list { acl-name | acl-number } in
The distribute-list command is applied globally to all interfaces on the router where it is executed.
Configuring an OSPF distribution list using route maps
You can manage an OSPF Distribution List using route maps that apply match operations as defined by
an ACL or an IP prefix list. Additionally, you can also use other options available within the route maps
and ACLs to further control the contents of the routes that OSPF provides to the IP route table. This
section describes an example where an OSPF distribute list uses a route map to specify an OSPF
Admin Distance for routes identified by an IP Prefix list.
To configure an OSPF distribution list using route maps:
• Configure a route map that identifies the routes you want to manage
• Optionally configure an OSPF Admin Distance to apply to the OSPF routes
• Configure an OSPF distribution list that uses the route map as input
In the following example, the first two commands identify two routes using the ip prefix-list test1
command. Next, a route-map is created that uses the prefix-list test1 to identify the two routes and
the set distance command to set the OSPF Admin Distance of those routes to 200. A distribute-list is
then configured under the OSPF configuration that uses the route map titled “setdistance” as input.
device(config)# ip prefix-list test1 seq 5 permit 10.100.1.0/24
device(config)# ip prefix-list test1 seq 10 permit 10.100.2.0/24
device(config)# route-map setdistance permit 1
device(config-routemap setdistance)# match ip address prefix-list test1
device(config-routemap setdistance)# set distance 200
device(config-routemap setdistance)# exit
device(config)# router ospf
device(config-ospf-router)# area 0
device(config-ospf-router)# area 1
device(config-ospf-router)# distribute-list route-map setdistance in
device(config-ospf-router)# exit
Once this configuration is implemented, the routes identified by the ip prefix-list command and
matched in the route map will have their OSPF Admin Distance set to 200. This is displayed in the
output from the show ip route command, as shown in the following.
device# show ip route
Type Codes - B:BGP D:Connected O:OSPF R:RIP S:Static; Cost - Dist/Metric
BGP Codes - i:iBGP e:eBGP
OSPF Codes - i:Inter Area 1:External Type 1 2:External Type 2
Destination Gateway Port
Cost Type Uptime
1 10.0.0.2/32 10.1.1.2 ve 100
110/501 O 1h3m
2 10.102.1.0/24 10.1.1.2 ve 100 110/2
Routes 2 and 3 demonstrate the actions of the example configuration as both display an OSPF Admin
Distance value of 200. Note that the value is applied to both OSPF learned routes that match the route-
map configuration: internal (route 2) and external (route 3). The other OSPF internal route (route 4) that
does not match the route-map continues to have the default OSPF admin distance of 110.
The following is an example of the distribute-list command applied with route-map “setdistance” set as
the input.
device(config-ospf-router)# distribute-list route-map setdistance in
Syntax: [no] distribute-list route-map routemap-name in
The routemap-name variable specifies the name of the route map being used to define the OSPF
Distribute List.
The distribute-list command is applied to all OSPF LSAs on the router where it is executed.
Configuring an OSPF distribution list using route maps
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
285
53-1003087-04