IPv6 · Topic 2 of 3

OSPFv3 and IS-IS for IPv6

Learn IPv6 IGPs for the JN0-364: OSPFv3 with protocols ospf3, the router ID rule, link-local neighbors, IS-IS IPv6 TLVs and multi-topology IS-IS on Junos.

  • 5 min
In a nutshell
  • OSPFv3 is protocols ospf3; verify it with show ospf3 neighbor and show ospf3 database.
  • OSPFv3 uses link-local neighbor addresses and ff02::5 and ff02::6.
  • OSPFv3 needs a 32 bit router ID; set one on routers without IPv4.

What it is

There are two IGPs for IPv6 on Junos OS. OSPFv3 is a separate protocol from OSPFv2, configured under protocols ospf3, with its own neighbors and database. IS-IS needs no new protocol: the same IS-IS instance carries IPv4 and IPv6 as soon as the interfaces have family inet6.

Both install routes in inet6.0 with the same preferences as for IPv4: OSPF internal 10 and external 150, IS-IS Level 1 internal 15 and Level 2 internal 18.

OSPFv2protocols ospfseparate fromOSPFv3protocols ospf3installsinet6.0OSPF3 10IS ISone instancefamily inet6 on interfacesIPv6 TLVsinstallsinet6.0IS IS 15 or 18

How it works

OSPFv3 basics

OSPFv3 keeps the OSPF concepts you know: areas, the backbone area 0, DR and BDR on broadcast links, the same neighbor states and the same SPF calculation. What changes is how addresses are carried.

OSPFv2OSPFv3
Junos hierarchyprotocols ospfprotocols ospf3
RoutesIPv4 in inet.0IPv6 in inet6.0
Runs onA subnetA link
Neighbor addressInterface IPv4 addressLink-local fe80 address
Multicast224.0.0.5 and 224.0.0.6ff02::5 and ff02::6
Router ID32 bitsStill 32 bits, written as a dotted quad
Prefixes carried inRouter and network LSAsNew link LSAs and intra-area-prefix LSAs
Show commandsshow ospf ...show ospf3 ...

The router ID trap

OSPFv3 still needs a 32 bit router ID. Junos takes it from an IPv4 address on the router, normally lo0. On a router with no IPv4 address, you must set one yourself, or OSPFv3 cannot run:

user@R1# set routing-options router-id 192.168.0.1

OSPFv3 configuration

user@R1# set protocols ospf3 area 0.0.0.0 interface ge-0/0/0.0
user@R1# set protocols ospf3 area 0.0.0.0 interface lo0.0 passive

The interfaces need family inet6. The link-local address is enough to form the adjacency, but a global address on lo0 is what other routers will use as a BGP next hop or for management, so make lo0 passive in OSPFv3.

Monitoring OSPFv3

CommandShows
show ospf3 neighborNeighbors by router ID and state; add detail for the link-local address
show ospf3 interfaceOSPFv3 interfaces, area and DR role
show ospf3 databaseThe OSPFv3 link-state database, including link and intra-area-prefix LSAs
show route table inet6.0 protocol ospf3OSPFv3 routes
user@R1> show ospf3 neighbor detail
ID               Interface              State     Pri   Dead
192.168.0.2      ge-0/0/0.0             Full      128     35
  Neighbor-address fe80::5254:ff:fe12:3402

IS-IS for IPv6

IS-IS runs directly over Layer 2 and carries any address family in TLVs, so IPv6 is just extra TLVs in the same LSPs.

TLVCarries
232IPv6 interface addresses
236IPv6 reachability (prefixes and metrics)

Junos OS enables IPv6 routing in IS-IS automatically. Any IS-IS interface with family inet6 advertises its IPv6 prefixes, and nothing extra is needed under protocols isis.

user@R1# set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:12::1/64
user@R1# set interfaces ge-0/0/0 unit 0 family iso
user@R1# set interfaces lo0 unit 0 family inet6 address 2001:db8:ffff::1/128
user@R1# set protocols isis interface ge-0/0/0.0
user@R1# set protocols isis interface lo0.0 passive

family iso on the interfaces and an ISO NET on lo0 are still needed, exactly as for IPv4. To stop IS-IS from routing IPv6, use set protocols isis no-ipv6-routing.

Single topology and multi-topology

By default IS-IS uses a single topology: one SPF calculation for both IPv4 and IPv6. That works only if every IS-IS link runs both families. If one link has IPv4 only, the SPF may still choose it for IPv6 destinations, and IPv6 traffic sent over it is dropped.

Multi-topology IS-IS runs a separate SPF for IPv6, so IPv6 follows only links that carry IPv6.

user@R1# set protocols isis topologies ipv6-unicast
Single topologyone SPFIPv4 only link chosenIPv6 trafficdroppedMulti topologyseparate IPv6 SPFonly IPv6 linksIPv6 trafficdelivered

Monitoring IS-IS for IPv6

CommandShows
show isis adjacencyAdjacencies, the same for both families
show isis database extensiveThe IPv6 TLVs in each LSP
show isis routeIS-IS routes for both families
show route table inet6.0 protocol isisIS-IS IPv6 routes in the routing table
Exam tip

If IS-IS IPv6 routes are missing but IPv4 routes are fine, look at the interfaces first. A missing family inet6 on a link or on lo0 is the usual cause.

Common mistakes

Configuring IPv6 under protocols ospf. OSPFv2 carries only IPv4. IPv6 needs protocols ospf3.

Forgetting the router ID on an IPv6-only router. OSPFv3 still needs a 32 bit router ID; set routing-options router-id if the router has no IPv4 address.

Expecting a global address as the OSPFv3 neighbor address. OSPFv3 neighbors use link-local addresses.

Adding IPv6 to some IS-IS links only in single topology. IPv6 traffic can be sent onto a link that does not carry IPv6. Use multi-topology or run both families everywhere.

Watch out

IS-IS adjacencies do not depend on IPv6 at all. show isis adjacency can show every neighbor Up while IPv6 routes are still missing, because the problem is in the interface families, not the adjacency.

What to remember for the exam

  • OSPFv3 is protocols ospf3; verify it with show ospf3 neighbor and show ospf3 database.
  • OSPFv3 uses link-local neighbor addresses and ff02::5 and ff02::6.
  • OSPFv3 needs a 32 bit router ID; set one on routers without IPv4.
  • IS-IS carries IPv6 automatically when interfaces have family inet6; TLVs 232 and 236.
  • no-ipv6-routing disables IPv6 in IS-IS; topologies ipv6-unicast enables multi-topology.
  • Preferences are the same as IPv4: OSPF 10 and 150, IS-IS 15 and 18.

Check yourself

  • An IPv6-only router will not start OSPFv3. What is missing?

    A 32 bit router ID, set with set routing-options router-id, because there is no IPv4 address to take it from.

  • What must you add under protocols isis for IS-IS to advertise IPv6 prefixes?

    Nothing; Junos does it automatically once the interfaces have family inet6.

  • Why would you enable topologies ipv6-unicast?

    To run a separate IPv6 SPF so IPv6 traffic only uses links that carry IPv6.

Topic 2 of 3 in IPv6

Test yourself on IPv6

The full Juniper JNCIS-SP JN0-364 question bank has 860 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Juniper. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.