---
title: OSPFv3 Configuration
slug: enterprise-v5p2/ospfv3-configuration
createdAt: 2025-12-05T03:46:40.747Z
---



### <font color="#1d50a2">show ipv6 ospf6</font>

**\[Command]**
**show ipv6 ospf6**

**\[Purpose]**
Display OSPFv3 details

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6
```

### <font color="#1d50a2">show ipv6 ospf6 database</font>

**\[Command]**
**show ipv6 ospf6 database \[detail|dump|internal]**
**show ipv6 ospf6 database \[router|network|inter-prefix|inter-router|as-external|group-membership|type-7|link|intra-prefix]\[detail|dump|internal]**

**\[Purpose]**
This command shows LSAs present in the LSDB.

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 database detail
```

### <font color="#1d50a2">show ipv6 ospf6 database adv-router</font>

**\[Command]**
**show ipv6 ospf6 database adv-router** *A.B.C.D* **linkstate-id** *A.B.C.D*

**\[Purpose]**
The LSAs additinally can also be filtered with the linkstate-id and advertising-router fields

**\[Parameter]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| *A.B.C.D*     | IP address      |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 database network adv-router 1.1.1.1 linkstate-id 1.1.1.1
```

### <font color="#1d50a2">show ipv6 ospf6 database self-originated</font>

**\[Command]**
**show ipv6 ospf6 database self-originated**

**\[Purpose]**
This command is used to filter the LSAs which are originated by the present router.

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 database self-originated
```

### <font color="#1d50a2">show ipv6 ospf6 interface</font>

**\[Command]**
**show ipv6 ospf6 interface** \[**ethernet** *interface\_name* **|vlan** *vlan\_id* **|link- aggregation** *lag\_id* **]**

**\[Purpose]**
To see OSPF interface configuration like costs.

**\[Parameter]**

| **Parameter**     | **Description**                   |
| ----------------- | --------------------------------- |
| *interface\_name* | Ethernet interface name (0..54)   |
| *vlan\_id*        | VLAN id (1..4094)                 |
| *lag\_id*         | Link-aggregation interface number |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 interface ethernet 1
```

### <font color="#1d50a2">show ipv6 ospf6 neighbor</font>

**\[Command]**
**show ipv6 ospf6 neighbor**

**\[Purpose]**
Show state and chosen (backup) DR of neighbor.

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 neighbor
```

### <font color="#1d50a2">show ipv6 ospf6 interface traffic</font>

**\[Command]**
**show ipv6 ospf6 interface traffic**

**\[Purpose]**
Show counts of different packets that have been received and transmitted by the interfaces

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 interface traffic
```

### <font color="#1d50a2">show ipv6 route ospf6</font>

**\[Command]**
**show ipv6 route ospf6**

**\[Purpose]**
This command shows internal routing table

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 route ospf6
```

### <font color="#1d50a2">show ipv6 ospf6 redistribute</font>

**\[Command]**
**show ipv6 ospf6 redistribute**

**\[Purpose]**
Show the routes which are redistributed by the router.

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 redistribute
```

### <font color="#1d50a2">show ipv6 ospf6 route</font>

**\[Command]**
**show ipv6 ospf6 route** *X\:X\::X*:&#x58;*/M* **match \[detail]**

**\[Purpose]**
The additional match option will match the given address to the destination of the routes, and return the result accordingly.

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 route 1::1/64 match detail
```

### <font color="#1d50a2">show ipv6 ospf6 interface prefix</font>

**\[Command]**
**show ipv6 ospf6 interface** \[**ethernet** *interface\_name* **|vlan** *vlan\_id* **|link- aggregation** *lag\_id* ] **prefix** \[**detail**|*X\:X\::X*:X | *X\:X\::X*:&#x58;*/M* **\[match|detail]]**

**\[Purpose]**
This command shows the prefixes present in the interface routing table. Interface name can also be given.

**\[Parameter]**

| **Parameter**     | **Description**                   |
| ----------------- | --------------------------------- |
| *interface\_name* | Ethernet interface name (0..54)   |
| *vlan\_id*        | VLAN id (1..4094)                 |
| *lag\_id*         | Link-aggregation interface number |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ipv6 ospf6 interface ethernet 1 prefix 1::1/64 match
```

### <font color="#1d50a2">ospf6 router-id</font>

**\[Command]**
**ospf6 router-id** *A.B.C.D*

**\[Purpose]**
This sets the router-ID of the OSPF6 process..

**\[Parameter]**

| **Parameter** | **Description**                      |
| ------------- | ------------------------------------ |
| *A.B.C.D*     | OSPF6 router-id in IP address format |

**\[View]**
OSPF view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# router ospf6
sonic(config-router)# ospf6 router-id 1.1.1.1
```

### <font color="#1d50a2">timers throttle spf</font>

**\[Command]**
**timers throttle spf** *delay\_time init\_hold\_time max\_hold\_time*
**no timers throttle spf** *delay\_time init\_hold\_time max\_hold\_time*

**\[Purpose]**
This command sets the initial delay, the initial-holdtime and the maximum-holdtime.

**\[Parameter]**

| **Parameter**      | **Description**                |
| ------------------ | ------------------------------ |
| *delay\_time*      | time (msec) (0..600000)        |
| *init\_hold\_time* | inital time (msec) (0..600000) |
| *max\_hold\_time*  | maxtime (msec) (0..600000)     |

**\[View]**
OSPF view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# router ospf6
sonic(config-router)# timers throttle spf 1 2 3
```

### <font color="#1d50a2">auto-cost reference-bandwidth</font>

**\[Command]**
**auto-cost reference-bandwidth** *bandwidth*
**no auto-cost reference-bandwidth** *bandwidth*

**\[Purpose]**
This command configures the auto-cost reference broadband for OSPFv3.

**\[Parameter]**

| **Parameter** | **Description**                                                   |
| ------------- | ----------------------------------------------------------------- |
| *bandwidth*   | The reference bandwidth in terms of Mbits per second (1..4294967) |

**\[View]**
OSPF view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# router ospf6
sonic(config-router)# auto-cost reference-bandwidth 2
```

### <font color="#1d50a2">area</font>

**\[Command]**
**area \{** *A.B.C.D* | *area\_id* **} range** *X\:X\::X*:&#x58;*/M* \[**advertise| not-advertise |cost** *metric* **]**
**no area \{** *A.B.C.D* | *area\_id* **} range** *X\:X\::X*:&#x58;*/M* \[**advertise| not-advertise |cost** *metric* **]**

**\[Purpose]**
Summarize a group of internal subnets into a single Inter-Area-Prefix LSA. This command can only be used at the area boundary (ABR router)

**\[Parameter]**

| **Parameter**         | **Description**                                |
| --------------------- | ---------------------------------------------- |
| *X\:X\::X*:&#x58;*/M* | IPv6 prefix                                    |
| *A.B.C.D*             | OSPF router-id                                 |
| *metric*              | advertised metric for this range (0..16777215) |

**\[View]**
OSPF view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# router ospf6
sonic(config-router)# area 1.1.1.1 range 1::1/64 advertise
```

### <font color="#1d50a2">ipv6 ospf6 cost</font>

**\[Command]**
**ipv6 ospf6 cost** *COST*
**no ipv6 ospf6 cost** *COST*

**\[Purpose]**
Set link cost for the specified interface.

**\[Parameter]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| *COST*        | Cost (1..65535) |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 cost 12
```

### <font color="#1d50a2">ipv6 ospf6 hello-interval</font>

**\[Command]**
**ipv6 ospf6 hello-interval** *interval* \[ *A.B.C.D* ]
**no ipv6 ospf6 hello-interval** *interval* \[ *A.B.C.D* ]

**\[Purpose]**
Sets interface’s hello interval. Default value is 10

**\[Parameter]**

| **Parameter** | **Description**      |
| ------------- | -------------------- |
| *interval*    | Seconds (1..65535)   |
| *A.B.C.D*     | Address of interface |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ip ospf hello-interval 2 1.1.1.1
```

### <font color="#1d50a2">ipv6 ospf6 dead-interval</font>

**\[Command]**
**ipv6 ospf6 dead-interval** *interval*
**no ipv6 ospf6 dead-interval** *interval*

**\[Purpose]**
Set interface’s router dead Interval. Default value is 40.

**\[Parameter]**

| **Parameter** | **Description**    |
| ------------- | ------------------ |
| *interval*    | Seconds (1..65535) |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 dead-interval 2
```

### <font color="#1d50a2">ipv6 ospf6 transmit-delay</font>

**\[Command]**
**ipv6 ospf6 transmit-delay** *interval*
**no ipv6 ospf6 transmit-delay** *interval*

**\[Purpose]**
Set number of seconds for infTransDelay value.

**\[Parameter]**

| **Parameter** | **Description**    |
| ------------- | ------------------ |
| *interval*    | Seconds (1..65535) |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 retransmit-interval 2
```

### <font color="#1d50a2">ipv6 ospf6 priority</font>

**\[Command]**
**ipv6 ospf6 priority** *priority*
**no ipv6 ospf6 priority** *priority*

**\[Purpose]**
Set router priority integer value.

**\[Parameter]**

| **Parameter** | **Description**   |
| ------------- | ----------------- |
| *priority*    | Priority (0..255) |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 priority 12
```

### <font color="#1d50a2">ipv6 ospf6 retransmit-interval</font>

**\[Command]**
**ipv6 ospf6 retransmit-interval** *interval*
**no ipv6 ospf6 retransmit-interval** *interval*

**\[Purpose]**
Set number of seconds for rxmtInterval timer value

**\[Parameter]**

| **Parameter** | **Description**    |
| ------------- | ------------------ |
| *interval*    | Seconds (1..65535) |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 retransmit-interval 2
```

### <font color="#1d50a2">ipv6 ospf6 network \{broadcast|point-to-point\}</font>

**\[Command]**
**ipv6 ospf6 network \{broadcast|point-to-point}**
**no ipv6 ospf6 network \{broadcast|point-to-point}**

**\[Purpose]**
Set explicitly network type for specified interface

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 network broadcast
```

### <font color="#1d50a2">ipv6 ospf6 mtu-ignore</font>

**\[Command]**
**ipv6 ospf6 mtu-ignore**
**no ipv6 ospf6 mtu-ignore**

**\[Purpose]**

Ignore MTU when establish OSPFv3.

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ipv6 ospf6 mtu-ignore
```

### <font color="#1d50a2">redistribute</font>

**\[Command]**
**redistribute** \{**babel|bgp|connected|eigrp|isis|kernel|openfabric|ospf|rip|sharp|static|table**} \[**route-map** *route\_map* **]**
**no redistribute** \{**babel|bgp|connected|eigrp|isis|kernel|openfabric|ospf|rip|sharp|static|table**} \[**route-map** *route\_map* **]**

**\[Purpose]**
Redistribute routes of the specified protocol or kind into OSPFv3, with the metric type and metric set if specified, filtering the routes using the given route-map if specified.

**\[Parameter]**

| **Parameter** | **Description**              |
| ------------- | ---------------------------- |
| *route\_map*  | Pointer to route-map entries |

**\[View]**
OSPF view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# router ospf6
sonic(config-router)# redistribute static route-map test
```

