R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

102
Examples
# Filter received routes using ACL 2000.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 2000 import
# Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter
received routes.
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 0
[Sysname-acl-adv-3000] rule 100 deny ip
[Sysname-acl-adv-3000] quit
[Sysname] ospf 100
[Sysname-ospf-100] filter-policy 3000 import
graceful-restart (OSPF view)
Use graceful-restart to enable OSPF Graceful Restart capability.
Use undo graceful-restart to disable OSPF Graceful Restart capability.
Syntax
graceful-restart [ ietf | nonstandard ]
undo graceful-restart
Default
OSPF Graceful Restart capability is disabled.
Views
OSPF view
Default command level
2: System level
Parameters
ietf: Enables the IETF GR capability.
nonstandard: Enables the non-IETF GR capability.
Usage guidelines
Do not configure OSPF NSR on a device that acts as the GR restarter. The graceful-restart command and
the ospf non-stop-routing command are mutually exclusive and cannot be configured on a device at the
same time.
Enable Opaque LSA advertisement and reception with the opaque-capability enable command before
enabling the IETF GR capability for OSPF.