22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example 3-52. Configuring a Keychain<br />

Click here to view code image<br />

Figure 3-8. OSPF Authentication<br />

Congo(config)# key chain <strong>nexus</strong><br />

Congo(config-keychain)# key 1<br />

Congo(config-keychain-key)# key-string <strong>nexus</strong><br />

Now that a key exists, the next step is to configure the routing protocol, OSPF in this case, to<br />

enable authentication <strong>and</strong> configure the interface to use the key chain. This step is completed<br />

under the OSPF routing process configuration. It is necessary to specify an encryption<br />

mechanism, MD5, <strong>and</strong> configure the key chain to use it, as demonstrated in Example 3-53.<br />

Example 3-53. Configuring OSPF MD5 Authentication<br />

Click here to view code image<br />

Congo# config t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Congo(config)# router <strong>os</strong>pf DataCenter1<br />

Congo(config-router)# area 0 authentication message-digest<br />

Congo(config-router)# int vlan 10<br />

Congo(config-if)# ip <strong>os</strong>pf authentication key-chain <strong>nexus</strong><br />

The values specified under the address-family configuration are for all OSPF neighbors in<br />

the area configured for authentication, as demonstrated in Example 3-54. These values can<br />

be overridden by interface-specific configuration that can be helpful when multiple keys are<br />

used on different devices in the internetwork.<br />

Example 3-54. Configuration of OSPF Authentication on an SVI<br />

Click here to view code image<br />

Congo# config t<br />

Congo(config)# router <strong>os</strong>pf DataCenter1<br />

Congo(config-router)# area 0 authentication message-digest<br />

Congo(config-if)# int vlan 10<br />

Congo(config-if)# ip <strong>os</strong>pf authentication-key 7 newkey<br />

Example 3-55 demonstrates how to verify authentication configuration.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!