Install guide
Filtering IP Routes 2-39
Software Version 2.7.5
C613-10454-00 REV A
This community list consists of those routes with the community attribute
value set to 2:7. All other routes are excluded from the community list.
5. On Router or Switch B, use the community list in a route map.
add ip routemap=mapin entry=1 match communitylist=1
add ip routemap=mapin entry=2 action=exclude
6. On Router or Switch B, apply the route map to updates from the peer (Router
or Switch A).
set bgp peer=10.0.0.2 sendcommunity=yes inroutemap=mapin
Filtering When Importing Routes from BGP
to OSPF
This example supposes that you want to import the route 192.168.72.0 into the
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.