R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
315
sour-wildcard command to deny/permit a route with the specified destination, or with the rule [ rule-id ]
{ deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command to
deny/permit a route with the specified destination and mask. The source keyword specifies the
destination address of a route and the destination keyword specifies the subnet mask of the route (the
subnet mask must be valid; otherwise, the configuration is ineffective).
Examples
# Filter incoming routes using ACL2000.
<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
incoming 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
host-advertise
Syntax
host-advertise ip-address cost
undo host-advertise ip-address
View
OSPF area view
Default level
2: System level
Parameters
ip-address: IP address of a host
cost: Cost of the route, in the range of 1 to 65535.
Description
Use host-advertise to advertise a host route.
Use undo host-advertise to remove a host route.
No host route is advertised by default.
Examples
# A d v e r t i s e r o u t e 1.1.1.1 w i t h a c o s t o f 10 0 .
<Sysname> system-view
[Sysname] ospf 100