1-31
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-25303-03
Chapter 1 Configuring IP Unicast Routing
Configuring OSPF
Configuring Basic OSPF Parameters
To enable OSPF, create an OSPF routing process, specify the range of IP addresses to associate with the
routing process, and assign area IDs to be associated with that range. Beginning in Cisco IOS
Release 12.2(58)SE, for switches running the IP services image, you can configure either the Cisco
OSPFv2 NSF format or the IETF OSPFv2 NSF format.
Beginning in privileged EXEC mode, follow these steps to enable OSPF:
To end an OSPF routing process, use the
no router ospf
process-id
global configuration command.
This example shows how to configure an OSPF routing process and assign it a process number of 109:
Switch(config)#
router ospf 109
Switch(config-router)#
network 131.108.0.0 255.255.255.0 area 24
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
router ospf
process-id
Enable OSPF routing, and enter router configuration mode. The
process ID is an internally used identification parameter that is
locally assigned and can be any positive integer. Each OSPF
routing process has a unique value.
Note
OSPF for Routed Access supports only one OSPFv2 and
one OSPFv3 instance with a maximum number of 200
dynamically learned routes.
Step 3
nsf cisco
[
enforce global
]
or
nsf ietf
[
restart-interval
seconds
]
(Optional) Enable Cisco NSF operations for OSPF. The
enforce
global
keyword cancels NSF restart when non-NSF-aware
neighboring networking devices are detected.
(Optional) Enable IETF NSF operations for OSPF. The
restart-interval
keyword specifies the length of the graceful
restart interval, in seconds. The range is from 1 to 1800. The
default is 120.
Step 4
network
address wildcard-mask
area
area-id
Define an interface on which OSPF runs and the area ID for that
interface. You can use the wildcard-mask to use a single
command to define one or more multiple interfaces to be
associated with a specific OSPF area. The area ID can be a
decimal value or an IP address.
Step 5
end
Return to privileged EXEC mode.
Step 6
show ip protocols
Verify your entries.
Step 7
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Summary of Contents for Catalyst 3560-X Series
Page 12: ...Contents 10 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 13: ...Contents 11 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 14: ...Contents 12 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 15: ...Contents 13 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 16: ...Contents 14 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 17: ...Contents 15 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 18: ...Contents 16 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 19: ...Contents 17 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 20: ...Contents 18 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 21: ...Contents 19 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 22: ...Contents 20 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 23: ...Contents 21 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 24: ...Contents 22 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 25: ...Contents 23 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 26: ...Contents 24 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 27: ...Contents 25 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 28: ...Contents 26 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 29: ...Contents 27 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 30: ...Contents 28 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 31: ...Contents 29 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 32: ...Contents 30 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 33: ...Contents 31 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 34: ...Contents 32 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 35: ...Contents 33 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 36: ...Contents 34 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 37: ...Contents 35 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 38: ...Contents 36 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...
Page 42: ...56 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 Preface ...
Page 1538: ...Index IN 58 Catalyst 3750 X and 3560 X Switch Software Configuration Guide OL 25303 03 ...