3Com 5500-SI Switch User Manual


 
OSPF Configuration 253
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 configuration.
Execute the
debugging command in User View to debug the OSPF module.
Table 250 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 ]
Table 251 Resetting the OSPF process
Operation Command
Reset the OSPF process reset ospf [ statistics ] { all | process_id }
Table 252 Displaying and debugging OSPF
Operation Command
Display the brief information of the
OSPF routing process
display ospf [ process_id ] brief
Display OSPF statistics display ospf [ process_id ] cumulative
Display LSDB information of OSPF display ospf [ process_id ] [ area_id ]
lsdb [ brief | [ asbr | ase | network |
nssa | router | summary ] [ ip_address ] [
originate-router ip_address |
self-originate ] ]
Display OSPF peer information display ospf [ process_id ] peer [ brief ]
Display OSPF next hop information display ospf [ process_id ] nexthop