30 | set ospf | Patch Release Note |
Configuration This example supposes that you want to import the route 192.168.72.0 into the example OSPF routing domain, but no other routes. This route is received on the
gateway router as a BGP route. The following steps show the sequence of commands to use in this scenario.
1.Set up the IP filter:
add ip filter=300 source=192.168.72.0 smask=255.255.255.255 action=include
2.Set up OSPF BGP import parameters:
set ospf bgpimport=on bgpfilter=300 bgplimit=1
3.Check that BGP has added the route to the IP route table: show ip route=192.168.72.0
The route should be visible in the output of the command.
4.Check that OSPF has imported the route: show ospf lsa=192.168.72.0
The output should show that there is an AS external LSA with this ID.
Command Reference
This section contains details about the commands used to configure the BGP route import feature.
Only the syntax for the BGP route import feature is shown here. For the full syntax of these commands, see the Software Reference on the Documentation and Tools
set ospf
Syntax SET OSPF [BGPFilter={NOne300...399}] [BGPImport={ONOFFTrueFalseYESNO}] [BGPLimit=1...300]
Description This command sets general OSPF routing configuration parameters. Use this command to configure the importing of BGP routes into OSPF. See Table 10 on page 30 for details about each parameter.
Table 10: Parameters for the BGP route import feature in the set ospf command.
Parameter |
| Option/Range | Description |
|
|
|
|
BGPFilter | NOne | No filters are defined so all routes from BGP will be imported into OSPF. The default | |
|
|
| is none. |
|
|
|
|
| 300...399 | The route filter that will be used when importing BGP routes into OSPF. Route filters | |
|
|
| are created with the add ip filter command. If a route filter is defined, the entries |
|
|
| for the filter will include or exclude routes for importation. If routes have not been |
|
|
| included by a previous entry, they will be excluded from the import. |
|
|
| |
BGPImport | ONTrueYES | Importing BGP routes into OSPF is enabled. | |
|
|
|
|
|
| OFFFalseNO | Importing BGP routes into OSPF is disabled. The default is off. |
Patch