Configuring ospf preference, Configuring ospf route redistribution – H3C Technologies H3C SecPath F1000-E User Manual
Page 429
404
Item F1000-A-EI/E-SI/S-AI
F1000-E
F5000-A5 Firewall
module
Default value
8
8
16
8
Configuring OSPF preference
A router may run multiple routing protocols, and each protocol is assigned a preference. When the
routing protocols find routes to the same destination, the route found by the protocol with the highest
preference is selected as the best route.
To configure OSPF preference:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter OSPF view.
ospf [ process-id | router-id router-id
| vpn-instance vpn-instance-name ] * N/A
3.
Configure a preference for
OSPF.
preference [ ase ] [ route-policy
route-policy-name ] value
Optional.
By default, the preference of
OSPF internal routes is 10,
and the preference of OSPF
external routes is 150.
Configuring OSPF route redistribution
1.
Configure route redistribution into OSPF.
On a router running OSPF and other routing protocols, you can configure OSPF to redistribute
routes from other protocols such as RIP, BGP, static, and direct routes, and advertise them in
Type-5 LSAs or Type-7 LSAs.
By filtering redistributed routes, OSPF translates only permitted routes into Type-5 LSAs or Type-7
LSAs for advertisement.
To configure OSPF route redistribution:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter OSPF view.
ospf [ process-id | router-id router-id
| vpn-instance vpn-instance-name ] * N/A
3.
Configure OSPF to redistribute
routes from another protocol.
import-route protocol [ process-id |
all-processes | allow-ibgp ] [ cost
cost | type type | tag tag |
route-policy route-policy-name ] *
Not configured by default.
4.
Configure OSPF to filter
redistributed routes before
advertisement.
filter-policy { acl-number | ip-prefix
ip-prefix-name } export [ protocol
[ process-id ] ]
Optional.
Not configured by default.
NOTE:
Only active routes can be redistributed. You can use the display ip routing-table protocol command to
view route state information.
2.
Configure OSPF to redistribute a default route.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer