R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
255
A Type-2 external route is an EGP route, which has low credibility, so OSPF considers the cost from the
ASBR to a Type-2 external route is much bigger than the cost from the ASBR to an OSPF internal router.
Therefore, the cost from an internal router to a Type-2 external route’s destination equals the cost from the
ASBR to the Type-2 external route’s destination.
Related commands: default-route-advertise.
NOTE:
The import-route command cannot redistribute default routes.
Use the import-route bgp allow-ibgp command with care, because it redistributes both EBGP and IBGP
routes that may cause routing loops.
Only active routes can be redistributed. You can use the display ip routing-table protocol command to
display route state information.
Examples
# Redistribute routes from RIP process 40 and specify the type, tag, and cost as 2, 33 and 50 for
redistributed routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] import-route rip 40 type 2 tag 33 cost 50
log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
OSPF view
Default level
2: System level
Parameters
None
Description
Use the log-peer-change command to enable the logging of OSPF neighbor state changes.
Use the undo log-peer-change command to disable the logging.
The logging is enabled by default.
With this feature enabled, information about neighbor state changes is displayed on the terminal until
the feature is disabled.
Examples
# Disable the logging of neighbor state changes for OSPF process 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] undo log-peer-change