< Home

peer (OSPF)

Function

The peer command sets the IP addresses and the designated router (DR) priority for the adjacent router on an NBMA network.

The undo peer command cancels the IP address of the adjacent router on an NBMA network.

Format

peer ip-address [ dr-priority priority ]

undo peer ip-address

Parameters

Parameter Description Value
ip-address

Specifies the IP address for the adjacent router.

The value is in dotted decimal notation.
dr-priority priority

Sets the priority for the adjacent router to select a DR.

The value of the priority is an integer ranging from 0 to 255. The default value is 1.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In an NBMA network (such as an X.25 or FR network), the entire network can be fully meshed based on the mapping configuration. That means that there is a virtual link between any two routers. In this case, the network running OSPF can be considered as a broadcast network where a DR or a BDR can be selected. You need, however, manually specify the IP address and the DR priority for the adjacent router using the peer command, because it is impossible to find the adjacent router dynamically by broadcasting the Hello packet.

Example

# Set the IP address of the adjacent router to 1.1.1.1 in an NBMA network.

<sysname> system-view
[sysname] ospf 100
[sysname-ospf-100] peer 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >