Cisco.Press.OSPF.Commands.pdf
(
461 KB
)
Pobierz
OSPF Commands
Use the commands in this chapter to configure and monitor the Open Shortest Path First (OSPF) routing
protocol. For OSPF configuration information and examples, refer to the “Configuring OSPF” chapter
of the
Network Protocols Configuration Guide, Part 1.
Network Protocols Command Reference, Part 1
P1R-227
OSPF Commands
area authentication
area authentication
To enable authentication for an OSPF area
, u
se the
area authentication
command in router
configuration mode. To remove an area’s authentication specification or a specified area from the
configuration, use the
no
form of this command.
area
area-id
authentication
[message-digest]
no area
area-id
authentication
no area
area-id
Syntax Description
area-id
message-digest
Identifier of the area for which authentication is to be enabled. The
identifier can be specified as either a decimal value or an IP address.
(Optional) Enables MD5 authentication on the area specified by
area-id.
Defaults
Type 0 authentication (no authentication)
Command Modes
Router configuration
Command History
Release
10.0
11.0
Modification
This command was introduced.
The
message-digest
keyword was added.
Usage Guidelines
Specifying authentication for an area sets the authentication to Type 1 (simple password) as specified
in RFC 1247. If this command is not included in the configuration file, authentication of Type 0 (no
authentication) is assumed.
The authentication type must be the same for all routers and access servers in an area. The
authentication password for all OSPF routers on a network must be the same if they are to communicate
with each other via OSPF. Use the
ip ospf authentication
command to specify this password.
If you enable MD5 authentication with the
message-digest
keyword, you must configure a password
with the
ip ospf message-digest-key
command.
To remove the area’s authentication specification, use the
no
form of this command with the
authentication
keyword.
Note
To remove the specified area from the software configuration, use the command
no area
area-id
(with no other keywords). That is,
no area
area-id
removes all area
options, such as
area authentication, area default-cost, area nssa, area range,
area stub,
and
area virtual-link.
Network Protocols Command Reference, Part 1
P1R-228
OSPF Commands
area authentication
Examples
The following example mandates authentication for areas 0 and10.0.0.0 of OSPF routing process 201.
Authentication keys are also provided.
interface ethernet 0
ip address 192.168.251.201 255.255.255.0
ip ospf authentication-key adcdefgh
!
interface ethernet 1
ip address 10.56.0.201 255.255.0.0
ip ospf authentication-key ijklmnop
!
router ospf 201
network 10.0.0.0 0.255.255.255 area 10.0.0.0
network 192.168.0.0 0.0.255.255 area 0
area 10.0.0.0 authentication
area 0 authentication
Related Commands
Command
area default-cost
area stub
ip ospf authentication
ip ospf message-digest-key
Description
Specifies a cost for the default summary route sent into a stub
area.
Defines an area as a stub area.
Assigns a password to be used by neighboring routers that are
using the simple password authentication of OSPF.
Enables OSPF MD5 authentication.
Network Protocols Command Reference, Part 1
P1R-229
OSPF Commands
area default-cost
area default-cost
To specify a cost for the default summary route sent into a stub area
, u
se the
area default-cost
command
in router configuration mode. To remove the assigned default route cost, use the
no
form of this
command.
area
area-id
default-cost
cost
no area
area-id
default-cost
cost
Syntax Description
area-id
cost
Identifier for the stub area. The identifier can be specified as
either a decimal value or as an IP address.
Cost for the default summary route used for a stub area. The
acceptable value is a 24-bit number.
Defaults
cost:
1
Command Modes
Router configuration
Command History
Release
10.0
Modification
This command was introduced.
Usage Guidelines
The command is used only on an area border router attached to a stub area.
There are two stub area router configuration commands: the
stub
and
default-cost
options of the
area
command. In all routers and access servers attached to the stub area, the area should be configured as a
stub area using the
stub
option of the
area
command. Use the
default-cost
option only on an area
border router attached to the stub area. The
default-cost
option provides the metric for the summary
default route generated by the area border router into the stub area.
Note
To remove the specified area from the software configuration, use the command
no area
area-id
(with no other keywords). That is,
no area
area-id
removes all area
options, such as
area authentication, area default-cost, area nssa, area range,
area stub,
and
area virtual-link.
Examples
The following example assigns a default-cost of 20 to stub network 10.10.0.0.0:
interface ethernet 0
ip address 10.56.0.201 255.255.0.0
!
router ospf 201
network 10.0.0.0 0.255.255.255 area 10.0.0.0
area 10.0.0.0 stub
area 10.0.0.0 default-cost 20
Network Protocols Command Reference, Part 1
P1R-230
OSPF Commands
area default-cost
Related Commands
Command
area authentication
area stub
Description
Enables authentication for an OSPF area.
Defines an area as a stub area.
Network Protocols Command Reference, Part 1
P1R-231
Plik z chomika:
yaroor
Inne pliki z tego folderu:
Cisco.Press.Penetration.Testing.and.Network.Defense.chm
(14976 KB)
Cisco.Press.IS.IS.Network.Design.Solutions.chm
(3096 KB)
Lab3-5.exe
(112 KB)
Practice_Lab4_Section_2.pdf
(31 KB)
Practice_Lab5_Section_3.pdf
(1392 KB)
Inne foldery tego chomika:
----- ebooki
----- ebooki(1)
----- Czarnobyl
----- Mapy Sztabowe 1-50000
----- jednostki specjalne
Zgłoś jeśli
naruszono regulamin