Skip to content
Ask AI

OSPFv3 Configuration

[Command]

show ipv6 ospf6

[Purpose]

Display OSPFv3 details

[View]

System view

[Use Cases]

sonic# show ipv6 ospf6

[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]

sonic# show ipv6 ospf6 database detail

[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]

ParameterDescription
A.B.C.DIP address

[View]

System view

[Use Cases]

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

[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]

sonic# show ipv6 ospf6 database self-originated

[Command]

**show ipv6 ospf6 interface ** [ethernet interface_name |vlan vlan_id |link- aggregation lag_id ]

[Purpose]

To see OSPF interface configuration like costs.

[Parameter]

ParameterDescription
interface_nameEthernet interface name (0..54)
vlan_idVLAN id (1..4094)
lag_idLink-aggregation interface number

[View]

System view

[Use Cases]

sonic# show ipv6 ospf6 interface ethernet 1

[Command]

show ipv6 ospf6 neighbor

[Purpose]

Show state and chosen (backup) DR of neighbor.

[View]

System view

[Use Cases]

sonic# show ipv6 ospf6 neighbor

[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]

sonic# show ipv6 ospf6 interface traffic

[Command]

show ipv6 route ospf6

[Purpose]

This command shows internal routing table

[View]

System view

[Use Cases]

sonic# show ipv6 route ospf6

[Command]

show ipv6 ospf6 redistribute

[Purpose]

Show the routes which are redistributed by the router.

[View]

System view

[Use Cases]

sonic# show ipv6 ospf6 redistribute

[Command]

show ipv6 ospf6 route X:X::X:X*/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]

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

[Command]

**show ipv6 ospf6 interface ** [ethernet interface_name |vlan vlan_id |link- aggregation lag_id ] prefix ** [detail|X:X::X:X | X:X::X:X/M [match|detail]]

[Purpose]

This command shows the prefixes present in the interface routing table. Interface name can also be given.

[Parameter]

ParameterDescription
interface_nameEthernet interface name (0..54)
vlan_idVLAN id (1..4094)
lag_idLink-aggregation interface number

[View]

System view

[Use Cases]

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

[Command]

ospf6 router-id A.B.C.D

[Purpose]

This sets the router-ID of the OSPF6 process..

[Parameter]

ParameterDescription
A.B.C.DOSPF6 router-id in IP address format

[View]

OSPF view

[Use Cases]

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

[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]

ParameterDescription
delay_timetime (msec) (0..600000)
init_hold_timeinital time (msec) (0..600000)
max_hold_timemaxtime (msec) (0..600000)

[View]

OSPF view

[Use Cases]

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

[Command]

auto-cost reference-bandwidth bandwidth

no auto-cost reference-bandwidth bandwidth

[Purpose]

This command configures the auto-cost reference broadband for OSPFv3.

[Parameter]

ParameterDescription
bandwidthThe reference bandwidth in terms of Mbits per second (1..4294967)

[View]

OSPF view

[Use Cases]

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

[Command]

area { A.B.C.D | area_id } range X:X::X:X*/M* [advertise| not-advertise |cost metric ]

no area { A.B.C.D | area_id } range X:X::X:X*/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]

ParameterDescription
X:X::X:X*/M*IPv6 prefix
A.B.C.DOSPF router-id
metricadvertised metric for this range (0..16777215)

[View]

OSPF view

[Use Cases]

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

[Command]

ipv6 ospf6 cost COST no ipv6 ospf6 cost COST

[Purpose]

Set link cost for the specified interface.

[Parameter]

ParameterDescription
COSTCost (1..65535)

[View]

Interface view

[Use Cases]

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

[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]

ParameterDescription
intervalSeconds (1..65535)
A.B.C.DAddress of interface

[View]

Interface view

[Use Cases]

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

[Command]

ipv6 ospf6 dead-interval interval

no ipv6 ospf6 dead-interval interval

[Purpose]

Set interface’s router dead Interval. Default value is 40.

[Parameter]

ParameterDescription
intervalSeconds (1..65535)

[View]

Interface view

[Use Cases]

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

[Command]

ipv6 ospf6 transmit-delay interval

no ipv6 ospf6 transmit-delay interval

[Purpose]

Set number of seconds for infTransDelay value.

[Parameter]

ParameterDescription
intervalSeconds (1..65535)

[View]

Interface view

[Use Cases]

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

[Command] ipv6 ospf6 priority priority

no ipv6 ospf6 priority priority

[Purpose]

Set router priority integer value.

[Parameter]

ParameterDescription
priorityPriority (0..255)

[View]

Interface view

[Use Cases]

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

[Command]

ipv6 ospf6 retransmit-interval interval

no ipv6 ospf6 retransmit-interval interval

[Purpose]

Set number of seconds for rxmtInterval timer value

[Parameter]

ParameterDescription
intervalSeconds (1..65535)

[View]

Interface view

[Use Cases]

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

ipv6 ospf6 network {broadcast|point-to-point}

Section titled “ipv6 ospf6 network {broadcast|point-to-point}”

[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]

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

[Command]

ipv6 ospf6 mtu-ignore no ipv6 ospf6 mtu-ignore

[Purpose]

Ignore MTU when establish OSPFv3.

[View]

Interface view

[Use Cases]

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

[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]

ParameterDescription
route_mapPointer to route-map entries

[View]

OSPF view

[Use Cases]

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