To enable the OSPF sham-hello function, run the sham-hello enable command. After the command is run, the device can maintain neighbor relationships through not only Hello packets but also LSU and LSAck packets, which strengthens OSPF neighbor relationships.