database-filter peer (OSPF view)

Use database-filter peer to filter LSAs for the specified P2MP neighbor.

Use undo database-filter peer to restore the default.

Syntax

database-filter peer ip-address { all | { ase [ acl ipv4-acl-number ] | nssa [ acl ipv4-acl-number ] | summary [ acl ipv4-acl-number ] } * }

undo database-filter peer ip-address

Default

The LSAs for the specified P2MP neighbor are not filtered.

Views

OSPF view

Predefined user roles

network-admin

Parameters

ip-address: Specifies a P2MP neighbor by its IP address.

all: Filters all LSAs except the Grace LSAs.

ase: Filters Type-5 LSAs.

nssa: Filters Type-7 LSAs.

summary: Filters Type-3 LSAs.

acl ipv4-acl-number: Specifies an IPv4 ACL by its number in the range of 2000 to 3999.

Usage guidelines

On an P2MP network, a router might have multiple OSPF neighbors with the P2MP type. Use this command to prevent the router from sending LSAs to the specified neighbor.

To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using one of the following methods:

The source keyword specifies the link state ID of an LSA and the destination keyword specifies the subnet mask of the LSA. For the mask configuration to take effect, specify a contiguous subnet mask.

If the specified neighbor has already received an LSA, the LSA still exists in the LSDB of the neighbor after you execute the command.

Examples

# Filter all LSAs (except the Grace LSAs) for the P2MP neighbor with the IP address 121.20.20.121.

<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] database-filter peer 121.20.20.121 all

# Configure advanced ACL 3000 to filter Type-3 LSAs for the P2MP neighbor with the IP address 121.20.20.121.

<Sysname> system-view
[Sysname] acl advanced 3000
[Sysname-acl-ipv4-adv-3000]rule 10 deny ip source 121.20.0.0 0 destination 255.255.0.0 0
[Sysname-acl-ipv4-adv-3000] rule 100 permit ip
[Sysname-acl-ipv4-adv-3000] quit
[Sysname] ospf 1
[Sysname-ospf-1] database-filter peer 121.20.20.121 summary acl 3000

Related commands

ospf database-filter