Cisco Cisco ASA 5555-X Adaptive Security Appliance 产品宣传页

下载
页码 904
 
24-42
Cisco ASA Series 
일반적인 작업 CLI 구성 가이드
 
24 
장     OSPF
  OSPFv2
의 예
3
단계
(
선택사항) OSPFv2 인터페이스 파라미터를 구성하려면 다음 명령을 입력합니다.
ciscoasa(config)# router ospf 2
ciscoasa(config-rtr)# network 10.0.0.0 255.0.0.0 area 0
ciscoasa(config-rtr)# interface inside
ciscoasa(config-interface)# ospf cost 20
ciscoasa(config-interface)# ospf retransmit-interval 15
ciscoasa(config-interface)# ospf transmit-delay 10
ciscoasa(config-interface)# ospf priority 20
ciscoasa(config-interface)# ospf hello-interval 10
ciscoasa(config-interface)# ospf dead-interval 40
ciscoasa(config-interface)# ospf authentication-key cisco
ciscoasa(config-interface)# ospf message-digest-key 1 md5 cisco
ciscoasa(config-interface)# ospf authentication message-digest
4
단계
(
선택사항) OSPFv2 영역 파라미터를 구성하려면 다음 명령을 입력합니다.
ciscoasa(config)# router ospf 2
ciscoasa(config-rtr)# area 0 authentication
ciscoasa(config-rtr)# area 0 authentication message-digest
ciscoasa(config-rtr)# area 17 stub
ciscoasa(config-rtr)# area 17 default-cost 20
5
단계
(
선택사항) 경로 계산 타이머를 구성하고 인접 디바이스 동작 및 중단 메시지 로그를 표시하려면 
다음 명령을 입력합니다.
ciscoasa(config-rtr)# timers spf 10 120
ciscoasa(config-rtr)# log-adj-changes [detail]
6
단계
(
선택사항) 현재 OSPFv2 구성 설정을 표시하려면 show ospf 명령을 입력합니다.
다음은 show ospf 명령의 샘플 출력 결과입니다.
ciscoasa(config)# show ospf
Routing Process 
“ospf 2”  with ID 10.1.89.2 and Domain ID 0.0.0.2
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 5. Checksum Sum 0x 26da6
Number of opaque AS LSA 0. Checksum Sum 0x     0
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
    Area BACKBONE(0)
        Number of interfaces in this area is 1
        Area has no authentication
        SPF algorithm executed 2 times
        Area ranges are
        Number of LSA 5. Checksum Sum 0x 209a3
        Number of opaque link LSA 0. Checksum Sum 0x     0
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0
7
단계
OSPFv2 
구성을 지우려면 다음 명령을 입력합니다.
ciscoasa(config)# clear configure router ospf pid