OSPF Configuration 149
Perform the following configuration in System View.
By default, OSPF TRAP function is disabled, so the switch does not send TRAP
packets when any OSPF process is abnormal. The configuration is valid to all OSPF
processes if you do not specify a process ID.
For detailed configuration of SNMP TRAP, refer to “System Management" on .
Resetting the OSPF Process
If the undo ospf command is executed on a router and then the ospf command
is used to restart the OSPF process, the previous OSPF configuration is lost. With
the
reset ospf command, you can restart the OSPF process without losing the
previous OSPF configuration.
Perform the following configuration in User View.
Resetting the OSPF process can immediately clear the invalid LSAs, make the
modified Router ID effective or re-elect the DR and BDR.
Displaying and
Debugging OSPF
After the above configuration, execute display command in any view to display
the operation of the OSPF configuration, and to verify the effect of the
Tab le 160 Enabling/disabling OSPF TRAP function
Operation Command
Enable OSPF
TRAP function
snmp-agent trap enable ospf [
process_id
] [
ifstatechange | virifstatechange | nbrstatechange |
virnbrstatechange | ifcfgerror | virifcfgerror |
ifauthfail | virifauthfail | ifrxbadpkt |
virifrxbadpkt | txretransmit | viriftxretransmit |
originatelsa | maxagelsa | lsdboverflow |
lsdbapproachoverflow ]
Disable OSPF
TRAP function
undo snmp-agent trap enable ospf [
process_id
] [
ifstatechange | virifstatechange | nbrstatechange |
virnbrstatechange | ifcfgerror | virifcfgerror |
ifauthfail | virifauthfail | ifrxbadpkt |
virifrxbadpkt | txretransmit | viriftxretransmit |
originatelsa | maxagelsa | lsdboverflow |
lsdbapproachoverflow ]
Tab le 161 Resetting the OSPF process
Operation Command
Reset the OSPF process reset ospf [ statistics ] { all |
process_id
}