Configure OSPF redistribution
The current release allows both connected routes and static routes redistributed into the OSPF Domain.
The following are the summary steps for configuring OSPF redistribution:
- Configuring prefix-list
- Configuring route-map
- Configuring redistribute
Step 1: Configuring redistribute
CLI Command | Description |
---|---|
config prefix-list edit <prefix-name> config rule edit <id> set action [permit | deny] set prefix <X.X.X.X/Y> set ge 0 set le 0 next |
Configure the
|
Example configuration:
ForitExtender# config router
config prefix-list
edit local-nets
config rule
edit 10
set action permit
set prefix 192.168.201.0/24 set ge 0
set le 0
next
end
next
edit static-routes
config rule
edit 10
set action deny
set prefix 192.168.203.0/24 set ge 0
set le 0
next
edit 20
set action permit
set prefix 192.168.202.0/24 set ge 0
set le 0 next
end
Step 2: Configuring route-map
CLI Command | Description |
---|---|
config route-map edit <route-map name> config rule edit <id> set action [permit | deny] set match-ip-address <prefix-list> |
Configure
|
Example configuration:
ForitExtender# config router
config route-map
edit redist-local-connected
config rule
edit 10
set action permit
set match-ip-address local-nets
end
edit redist-static
config rule
edit 10
set action permit
set match-ip-address static-routes
Step 3: Configuring redistribution
CLI Command | Description |
---|---|
config router ospf config redistribute config [connected | static] set status [enable | disable] set metric-type [1 | 2] set metric <value> set route-map <route-map name> |
Configure router OSPF redistribute.
|
Example configuration:
ForitExtender# config router ospf
config redistribute
config connected
set status enable
set metric-type 2
set metric 10
set routemap redist-local-connected
end
config static
set status enable
set metric-type 2
set metric 10
set routemap redist-static