ospfv3 network-type

Function

The ospfv3 network-type command sets the network type for an OSPFv3 interface.

The undo ospfv3 network-type command restores the default network type.

By default, the network type of an interface is determined by the physical interface. For details, see "IP Routing" > "OSPFv3 Configuration" > "Configuring OSPFv3 Attributes on Different Types of Networks" > "Configuring the Network Type for an OSPFv3 Interface" in the Configuration Guide.

Format

ospfv3 network-type { broadcast | nbma | p2mp [ non-broadcast ] | p2p } [ instance instance-id ]

undo ospfv3 network-type [ broadcast | nbma | p2mp [ non-broadcast ] | p2p ] [ instance instance-id ]

Parameters

Parameter Description Value
broadcast

Sets the network type to broadcast.

-

nbma

Sets the network type to NBMA.

-

p2mp

Sets the network type to point-to-multipoint.

-

non-broadcast

Sets the network type to point-to-multipoint non-broadcast.

-

p2p

Sets the network type to point-to-point.

-

instance instance-id

Specifies the instance ID of an interface.

The value is an integer ranging from 0 to 255.

Views

100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

The command cannot be run on null interfaces.

The network types of two OSPFv3 interfaces on the both ends of a link must be identical. Otherwise, the two interfaces cannot set up a neighbor relationship.

Prerequisites

OSPFv3 has been enabled using the ospfv3 area command in the interface view.

Example

# Set network type of GigabitEthernet 0/1/0 to NBMA.
<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] ospfv3 1 area 0
[~HUAWEI-GigabitEthernet0/1/0] ospfv3 network-type nbma
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >