Ospfv3

This scenario shows how to configure the OSPFv3 protocol and monitor its status using the SNMP protocol.

../../../_images/topology20.svg

Test OSPFv3

Description

Test to check route availability using OSPFv3

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 ipv6 disable-forwarding
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.1
set protocols ospfv3 parameters router-id 10.0.0.1
set service snmp community 'COMMUNITY2TEST!'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces dummy dum0 address '20::1/64'
set interfaces ethernet eth0 address '10::1/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.1
set interfaces ethernet eth0 ipv6 router-advert interval 2
set protocols ospfv3 parameters router-id 10.0.0.2
set protocols ospfv3 redistribute connected route-map INTERNAL
set protocols route-map INTERNAL rule 1 action permit
set protocols route-map INTERNAL rule 1 match interface dum0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 10::1 from DUT0:

admin@DUT0$ ping 10::1 count 1 size 56 timeout 1
Show output
PING 10::1(10::1) 56 data bytes
64 bytes from 10::1: icmp_seq=1 ttl=64 time=4.05 ms

--- 10::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.045/4.045/4.045/0.000 ms

Step 4: Run command protocols ospfv3 show neighbor at DUT0 and check if output matches the following regular expressions:

10.0.0.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
10.0.0.2          1    00:00:38     Init/DROther         00:00:01 eth0[Waiting]

Step 5: Run command protocols ospfv3 show neighbor at DUT1 and check if output matches the following regular expressions:

10.0.0.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
10.0.0.1          1    00:00:39   Twoway/DROther         00:00:00 eth0[Waiting]

Step 6: Run command protocols ipv6 show route at DUT0 and check if output matches the following regular expressions:

20::/64
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIPng, O - OSPFv3, I - IS-IS, B - BGP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

K>* ::/0 [0/1024] via fe80::dcad:beff:feef:6c10, eth0, weight 1, 00:00:49
O   10::/64 [110/10] is directly connected, eth0, weight 1, 00:00:10
K>* 10::/64 [0/256] is directly connected, eth0, weight 1, 00:00:49
O>* 20::/64 [110/20] via fe80::dcad:beff:feef:6c10, eth0, weight 1, 00:00:04
C>* fe80::/64 is directly connected, eth0, weight 1, 00:00:52

Step 7: Ping IP address 20::1 from DUT0:

admin@DUT0$ ping 20::1 count 1 size 56 timeout 1
Show output
PING 20::1(20::1) 56 data bytes
64 bytes from 20::1: icmp_seq=1 ttl=64 time=0.347 ms

--- 20::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.347/0.347/0.347/0.000 ms

Step 8: Run command service snmp walk local-agent v1 COMMUNITY2TEST! oid 1.3.6.1.2.1.191 at DUT0 and check if output matches the following regular expressions:

OSPFV3-MIB::ospfv3NbrAddress\.[^=]+= Hex-STRING:[ A-Z0-9]+
OSPFV3-MIB::ospfv3NbrPriority\.[^=]+= INTEGER: 1
OSPFV3-MIB::ospfv3NbrState\.[^=]+= INTEGER: full\(8\)
OSPFV3-MIB::ospfv3NbrEvents\.[^=]+= Counter32: \d+
OSPFV3-MIB::ospfv3IfState\.[^=]+= INTEGER: (backup|other)+DesignatedRouter\((6|7)+\)
OSPFV3-MIB::ospfv3IfAdminStatus\.[^=]+= INTEGER: enabled\(1\)
OSPFV3-MIB::ospfv3IfAreaId\.[^=]+= Gauge32: 1
OSPFV3-MIB::ospfv3AreaBdrRtrStatus\.[^=]+= INTEGER: false\(2\)
OSPFV3-MIB::ospfv3AreaBdrRtrCount\.[^=]+= Gauge32: 0
OSPFV3-MIB::ospfv3AreaAsBdrRtrCount\.[^=]+= Gauge32: 1
Show output
OSPFV3-MIB::ospfv3RouterId.0 = Gauge32: 167772161
OSPFV3-MIB::ospfv3AdminStatus.0 = INTEGER: enabled(1)
OSPFV3-MIB::ospfv3VersionNumber.0 = INTEGER: version3(3)
OSPFV3-MIB::ospfv3AreaBdrRtrStatus.0 = INTEGER: false(2)
OSPFV3-MIB::ospfv3ASBdrRtrStatus.0 = INTEGER: false(2)
OSPFV3-MIB::ospfv3AsScopeLsaCount.0 = Gauge32: 1
OSPFV3-MIB::ospfv3AsScopeLsaCksumSum.0 = Gauge32: 4478
OSPFV3-MIB::ospfv3OriginateNewLsas.0 = Counter32: 0
OSPFV3-MIB::ospfv3RxNewLsas.0 = Counter32: 0
OSPFV3-MIB::ospfv3ExtLsaCount.0 = Gauge32: 1
OSPFV3-MIB::ospfv3ExtAreaLsdbLimit.0 = INTEGER: -1
OSPFV3-MIB::ospfv3ExitOverflowInterval.0 = Gauge32: 0 seconds
OSPFV3-MIB::ospfv3DemandExtensions.0 = INTEGER: 0
OSPFV3-MIB::ospfv3ReferenceBandwidth.0 = Gauge32: 100000 kilobits per second
OSPFV3-MIB::ospfv3AreaImportAsExtern.1 = INTEGER: importExternal(1)
OSPFV3-MIB::ospfv3AreaSpfRuns.1 = Counter32: 4
OSPFV3-MIB::ospfv3AreaBdrRtrCount.1 = Gauge32: 0
OSPFV3-MIB::ospfv3AreaAsBdrRtrCount.1 = Gauge32: 1
OSPFV3-MIB::ospfv3AreaScopeLsaCount.1 = Gauge32: 5
OSPFV3-MIB::ospfv3AreaScopeLsaCksumSum.1 = Gauge32: 59448
OSPFV3-MIB::ospfv3AreaSummary.1 = INTEGER: sendAreaSummary(2)
OSPFV3-MIB::ospfv3AreaRowStatus.1 = INTEGER: active(1)
OSPFV3-MIB::ospfv3AsLsdbSequence.16389.167772162.1 = INTEGER: -2147483647
OSPFV3-MIB::ospfv3AsLsdbAge.16389.167772162.1 = Gauge32: 52 seconds
OSPFV3-MIB::ospfv3AsLsdbChecksum.16389.167772162.1 = INTEGER: 4478
OSPFV3-MIB::ospfv3AsLsdbAdvertisement.16389.167772162.1 = Hex-STRING: 00 34 40 05 00 00 00 01 0A 00 00 02 80 00 00 01
11 7E 00 24 04 00 00 14 40 00 00 00 00 20 00 00
00 00 00 00
OSPFV3-MIB::ospfv3AsLsdbTypeKnown.16389.167772162.1 = INTEGER: true(1)
OSPFV3-MIB::ospfv3AreaLsdbSequence.1.8193.167772161.0 = INTEGER: -2147483646
OSPFV3-MIB::ospfv3AreaLsdbSequence.1.8193.167772162.0 = INTEGER: -2147483646
OSPFV3-MIB::ospfv3AreaLsdbSequence.1.8194.167772162.2 = INTEGER: -2147483647
OSPFV3-MIB::ospfv3AreaLsdbSequence.1.8201.167772162.0 = INTEGER: -2147483647
OSPFV3-MIB::ospfv3AreaLsdbSequence.1.8201.167772162.2 = INTEGER: -2147483647
OSPFV3-MIB::ospfv3AreaLsdbAge.1.8193.167772161.0 = Gauge32: 10 seconds
OSPFV3-MIB::ospfv3AreaLsdbAge.1.8193.167772162.0 = Gauge32: 11 seconds
OSPFV3-MIB::ospfv3AreaLsdbAge.1.8194.167772162.2 = Gauge32: 11 seconds
OSPFV3-MIB::ospfv3AreaLsdbAge.1.8201.167772162.0 = Gauge32: 3600 seconds
OSPFV3-MIB::ospfv3AreaLsdbAge.1.8201.167772162.2 = Gauge32: 11 seconds
OSPFV3-MIB::ospfv3AreaLsdbChecksum.1.8193.167772161.0 = INTEGER: 35184
OSPFV3-MIB::ospfv3AreaLsdbChecksum.1.8193.167772162.0 = INTEGER: 35181
OSPFV3-MIB::ospfv3AreaLsdbChecksum.1.8194.167772162.2 = INTEGER: 35959
OSPFV3-MIB::ospfv3AreaLsdbChecksum.1.8201.167772162.0 = INTEGER: 64408
OSPFV3-MIB::ospfv3AreaLsdbChecksum.1.8201.167772162.2 = INTEGER: 19788
OSPFV3-MIB::ospfv3AreaLsdbAdvertisement.1.8193.167772161.0 = Hex-STRING: 00 0A 20 01 00 00 00 00 0A 00 00 01 80 00 00 02
89 70 00 28 00 00 00 13 02 00 00 0A 00 00 00 02
00 00 00 02 0A 00 00 02
OSPFV3-MIB::ospfv3AreaLsdbAdvertisement.1.8193.167772162.0 = Hex-STRING: 00 0B 20 01 00 00 00 00 0A 00 00 02 80 00 00 02
89 6D 00 28 02 00 00 13 02 00 00 0A 00 00 00 02
00 00 00 02 0A 00 00 02
OSPFV3-MIB::ospfv3AreaLsdbAdvertisement.1.8194.167772162.2 = Hex-STRING: 00 0B 20 02 00 00 00 02 0A 00 00 02 80 00 00 01
8C 77 00 20 00 00 00 13 0A 00 00 02 0A 00 00 01
OSPFV3-MIB::ospfv3AreaLsdbAdvertisement.1.8201.167772162.0 = Hex-STRING: 0E 10 20 09 00 00 00 00 0A 00 00 02 80 00 00 01
FB 98 00 2C 00 01 20 01 00 00 00 00 0A 00 00 02
40 00 00 0A 00 10 00 00 00 00 00 00
OSPFV3-MIB::ospfv3AreaLsdbAdvertisement.1.8201.167772162.2 = Hex-STRING: 00 0B 20 09 00 00 00 02 0A 00 00 02 80 00 00 01
4D 4C 00 2C 00 01 20 02 00 00 00 02 0A 00 00 02
40 00 00 00 00 10 00 00 00 00 00 00
OSPFV3-MIB::ospfv3AreaLsdbTypeKnown.1.8193.167772161.0 = INTEGER: true(1)
OSPFV3-MIB::ospfv3AreaLsdbTypeKnown.1.8193.167772162.0 = INTEGER: true(1)
OSPFV3-MIB::ospfv3AreaLsdbTypeKnown.1.8194.167772162.2 = INTEGER: true(1)
OSPFV3-MIB::ospfv3AreaLsdbTypeKnown.1.8201.167772162.0 = INTEGER: true(1)
OSPFV3-MIB::ospfv3AreaLsdbTypeKnown.1.8201.167772162.2 = INTEGER: true(1)
OSPFV3-MIB::ospfv3LinkLsdbSequence.2.0.8.167772161.2 = INTEGER: -2147483647
OSPFV3-MIB::ospfv3LinkLsdbSequence.2.0.8.167772162.2 = INTEGER: -2147483646
OSPFV3-MIB::ospfv3LinkLsdbAge.2.0.8.167772161.2 = Gauge32: 52 seconds
OSPFV3-MIB::ospfv3LinkLsdbAge.2.0.8.167772162.2 = Gauge32: 50 seconds
OSPFV3-MIB::ospfv3LinkLsdbChecksum.2.0.8.167772161.2 = INTEGER: 26780
OSPFV3-MIB::ospfv3LinkLsdbChecksum.2.0.8.167772162.2 = INTEGER: 48344
OSPFV3-MIB::ospfv3LinkLsdbAdvertisement.2.0.8.167772161.2 = Hex-STRING: 00 34 00 08 00 00 00 02 0A 00 00 01 80 00 00 01
68 9C 00 2C 01 00 00 13 FE 80 00 00 00 00 00 00
DC AD BE FF FE EF 6C 00 00 00 00 00
OSPFV3-MIB::ospfv3LinkLsdbAdvertisement.2.0.8.167772162.2 = Hex-STRING: 00 32 00 08 00 00 00 02 0A 00 00 02 80 00 00 02
BC D8 00 38 01 00 00 13 FE 80 00 00 00 00 00 00
DC AD BE FF FE EF 6C 10 00 00 00 01 40 00 00 00
00 10 00 00 00 00 00 00
OSPFV3-MIB::ospfv3LinkLsdbTypeKnown.2.0.8.167772161.2 = INTEGER: true(1)
OSPFV3-MIB::ospfv3LinkLsdbTypeKnown.2.0.8.167772162.2 = INTEGER: true(1)
OSPFV3-MIB::ospfv3IfAreaId.2.0 = Gauge32: 1
OSPFV3-MIB::ospfv3IfType.2.0 = INTEGER: broadcast(1)
OSPFV3-MIB::ospfv3IfAdminStatus.2.0 = INTEGER: enabled(1)
OSPFV3-MIB::ospfv3IfRtrPriority.2.0 = INTEGER: 1
OSPFV3-MIB::ospfv3IfTransitDelay.2.0 = Gauge32: 1 seconds
OSPFV3-MIB::ospfv3IfRetransInterval.2.0 = Gauge32: 5 seconds
OSPFV3-MIB::ospfv3IfHelloInterval.2.0 = INTEGER: 10 seconds
OSPFV3-MIB::ospfv3IfRtrDeadInterval.2.0 = Gauge32: 40 seconds
OSPFV3-MIB::ospfv3IfState.2.0 = INTEGER: otherDesignatedRouter(7)
OSPFV3-MIB::ospfv3IfDesignatedRouter.2.0 = Gauge32: 167772162
OSPFV3-MIB::ospfv3IfBackupDesignatedRouter.2.0 = Gauge32: 167772161
OSPFV3-MIB::ospfv3IfEvents.2.0 = Counter32: 3
OSPFV3-MIB::ospfv3IfRowStatus.2.0 = INTEGER: active(1)
OSPFV3-MIB::ospfv3IfDemand.2.0 = INTEGER: false(2)
OSPFV3-MIB::ospfv3IfMetricValue.2.0 = INTEGER: 10
OSPFV3-MIB::ospfv3IfLinkScopeLsaCount.2.0 = Gauge32: 2
OSPFV3-MIB::ospfv3IfLinkLsaCksumSum.2.0 = Gauge32: 75124
OSPFV3-MIB::ospfv3NbrAddressType.2.0.167772162 = INTEGER: ipv6(2)
OSPFV3-MIB::ospfv3NbrAddress.2.0.167772162 = Hex-STRING: FE 80 00 00 00 00 00 00 DC AD BE FF FE EF 6C 10
OSPFV3-MIB::ospfv3NbrOptions.2.0.167772162 = INTEGER: 19
OSPFV3-MIB::ospfv3NbrPriority.2.0.167772162 = INTEGER: 1
OSPFV3-MIB::ospfv3NbrState.2.0.167772162 = INTEGER: full(8)
OSPFV3-MIB::ospfv3NbrEvents.2.0.167772162 = Counter32: 6
OSPFV3-MIB::ospfv3NbrLsRetransQLen.2.0.167772162 = Gauge32: 0
OSPFV3-MIB::ospfv3NbrHelloSuppressed.2.0.167772162 = INTEGER: false(2)
OSPFV3-MIB::ospfv3NbrIfId.2.0.167772162 = INTEGER: 2