< Home

peer (OSPF)

Function

The peer command sets an IP address and a DR priority for the adjacent switch on an NBMA network.

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

By default, the IP address and DR priority for the adjacent switch on an NBMA network are not set.

Format

peer ip-address [ dr-priority priority ]

undo peer ip-address

Parameters

Parameter Description Value
ip-address Specifies an IP address for the adjacent switch. The value is in dotted decimal notation.
dr-priority priority Sets a DR priority for the adjacent switch. The value of the priority is an integer that ranges from 0 to 255. By default, it is 1.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

On an NBMA network (such as an X.25 or FR network), the entire network can be fully meshed based on the mapping configuration. This means that there is a virtual link between any two devices. In this case, the network running OSPF can be considered as a broadcast network where a DR or a BDR can be selected. However, you must run the peer command to manually specify an IP address and a DR priority for an adjacent switch. This is necessary because it is impossible to find the adjacent devices dynamically by broadcasting Hello packets.

Example

# Set the IP address of the adjacent switch to 10.1.1.1 on an NBMA network.

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