Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Technical Documentation
 
CLI Explorer New
 
Content Explorer New
 
Documentation Help New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
Glossary
 
Portable Libraries
 
Home > Support > Technical Documentation > Understanding OSPFv2 Authentication
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • J Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
  • M Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
  • SRX Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
  • T Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
 

Understanding OSPFv2 Authentication

All OSPFv2 protocol exchanges can be authenticated to guarantee that only trusted routing devices participate in the autonomous system’s routing. By default, OSPFv2 authentication is disabled.

Note: OSPFv3 does not have a built-in authentication method and relies on IP Security (IPSec) to provide this functionality.

You can enable the following authentication types:

  • Simple authentication—Authenticates by using a plain-text password that is included in the transmitted packet. The receiving routing device uses an authentication key (password) to verify the packet.
  • MD5 authentication—Authenticates by using an encoded MD5 checksum that is included in the transmitted packet. The receiving routing device uses an authentication key (password) to verify the packet.

    You define an MD5 key for each interface. If MD5 is enabled on an interface, that interface accepts routing updates only if MD5 authentication succeeds. Otherwise, updates are rejected. The routing device only accepts OSPFv2 packets sent using the same key identifier (ID) that is defined for that interface.

  • IPsec authentication (beginning with Junos OS Release 8.3)—Authenticates OSPFv2 interfaces, the remote endpoint of a sham link, and the OSPFv2 virtual link by using manual security associations (SAs) to ensure that a packet’s contents are secure between the routing devices. You configure the actual IPsec authentication separately.

    Note: You can configure IPsec authentication together with either MD5 or simple authentication.

    The following restrictions apply to IPsec authentication for OSPFv2:

    • Dynamic IKE SAs are not supported.
    • Only IPsec transport mode is supported. Tunnel mode is not supported.
    • Because only bidirectional manual SAs are supported, all OSPFv2 peers must be configured with the same IPsec SA. You configure a manual bidirectional SA at the [edit security ipsec] hierarchy level.
    • You must configure the same IPsec SA for all virtual links with the same remote endpoint address, for all neighbors on OSPF nonbroadcast multiaccess (NBMA) or point-to-multipoint links, and for every subnet that is part of a broadcast link.
    • OSPFv2 peer interfaces are not supported.

Because OSPF performs authentication at the area level, all routing devices within the area must have the same authentication and corresponding password (key) configured. For MD5 authentication to work, both the receiving and transmitting routing devices must have the same MD5 key. In addition, a simple password and MD5 key are mutually exclusive. You can configure only one simple password, but multiple MD5 keys.

As part of your security measures, you can change MD5 keys. You can do this by configuring multiple MD5 keys, each with a unique key ID, and setting the date and time to switch to the new key. Each unique MD5 key has a unique ID. The ID is used by the receiver of the OSPF packet to determine which key to use for authentication. The key ID, which is required for MD5 authentication, specifies the identifier associated with the MD5 key.

 

Related Documentation

  • J Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
  • M Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
  • SRX Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
  • T Series
  • Example: Configuring Simple Authentication for OSPFv2 Exchanges
  • Example: Configuring MD5 Authentication for OSPFv2 Exchanges
  • Example: Configuring a Transition of MD5 Keys on an OSPFv2 Interface
  • Example: Configuring IPsec Authentication for an OSPF Interface
 

Published: 2011-10-25

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out