摘要 |
<p>Embodiments of the present invention relate to a method and a device for establishing a router neighbor. The method includes: obtaining a first discovery protocol Hello message sent by a neighbor router, where the first Hello message carries identification information and priority information of the neighbor router; and determining whether to add the relevant information of the neighbor router into the neighbor list of a local end router, according to the priority information of the neighbor router, and/or priority information of the local end router, and/or whether the identification information of the neighbor router is identification information of an opposite end device of a virtual link configured for the local end router. The embodiments of the present invention ensure that a small device can establish neighbor relationships with a DR and a BDR on a network and that the small device's OSPF function is normal.</p> |