Sie sind auf Seite 1von 9

Prerequisites for OSPFv2

OSPFv2 has the following prerequisites:


• You must be familiar with routing fundamentals to configure OSPF.
• You are logged on to the switch.
• You have configured at least one interface for IPv4 that can communicate
with a remote OSPFv2 neighbor.
• You have installed the Enterprise Services license.
• You have completed the OSPFv2 network strategy and planning for your
network. For example, you must decide whether multiple areas are
required.
• You have enabled the OSPF feature (see the “Enabling OSPFv2” section
on page 6-14).
• You have installed the Advanced Services license and entered the desired
VDC (see the Cisco Nexus 7000 Series NX-OS Virtual Device Context
Configuration Guide, Release 5.x) if you are configuring VDCs.
Creating an OSPFv2 Instance

enter the feature ospf command to enable OSPFv2

1. configure terminal
2. router ospf instance-tag (Example: switch(config)# router ospf 201 )
3. router-id ip-address
4. (Optional) show ip ospf instance-tag
5. (Optional) copy running-config startup-config

To remove the OSPFv2 instance and all associated configuration, use the
no router ospf command in configuration mode.
Configuring Networks in OSPFv2

1. configure terminal
2. interface interface-type slot/port
(Example: switch(config)# interface ethernet 1/2)
3. ip address ip-prefix/length
(Example: switch(config-if)# ip address 192.0.2.1/16)
4. ip router ospf instance-tag area area-id
(Example: switch(config-if)# ip router ospf 201 area 0.0.0.15)
5. (Optional) show ip ospf instance-tag interface interface-type slot/port
(Example: switch(config-if)# show ip ospf 201 interface ethernet 1/2)
6. (Optional) copy running-config startup-config
Configuring Authentication for an Area

1. configure terminal
2. router ospf instance-tag
3. area area-id authentication [message-digest]
4. interface interface-type slot/port
5. (Optional) ip ospf authentication-key [0 | 3] key
or
ip ospf message-digest-key key-id md5 [0 | 3] key
6. (Optional) show ip ospf instance-tag interface interface-type slot/port
Configuring Authentication for an Interface

1. configure terminal
2. interface interface-type slot/port
3. ip ospf authentication [message-digest]
4. (Optional) ip ospf authentication key-chain key-id
5. (Optional) ip ospf authentication-key [0 | 3 | 7] key
6. (Optional) ip ospf message-digest-key key-id md5 [0 | 3 | 7] key
7. (Optional) show ip ospf instance-tag interface interface-type slot/port
8. (Optional) copy running-config startup-config
Calculating a Wildcard Mask for /24

OSPFv2 uses the argument combination of network-address wildcard-mask to


enable OSPF on interfaces. OSPF is classless by design; therefore, the wildcard
mask is always required.

Example:
Calculate the wildcard mask Calculate the wildcard mask
from the network address of from the network address of
192.168.10.0/24. 192.168.10.64/26
Calculating a Wildcard Mask for /24

OSPFv2 uses the argument combination of network-address wildcard-mask to


enable OSPF on interfaces. OSPF is classless by design; therefore, the wildcard
mask is always required.

Example:
Calculate the wildcard mask Calculate the wildcard mask
from the network address of from the network address of
192.168.10.0/24. 192.168.10.64/26

11111111.111111111.111111111.00000000 11111111.111111111.111111111.11000000
255 . 255 . 255 . 0 255 . 255 . 255 . 192
Calculating a Wildcard Mask for /24

OSPFv2 uses the argument combination of network-address wildcard-mask to


enable OSPF on interfaces. OSPF is classless by design; therefore, the wildcard
mask is always required.

Example:
192.168.10.0/24 192.168.10.64/26

255.255.255.255 255.255.255.255
Subnet Mask Subnet Mask
-255.255.255.000 -255.255.255.192
000.000.000.255 Wildcard Mask 000.000.000.063 Wildcard Mask

Das könnte Ihnen auch gefallen