DOC

OSPF_COMMAND_LINE(v3.0)

By Lisa Knight,2014-04-01 00:40
7 views 0
OSPF_COMMAND_LINE(v3.0)

Huawei OSPF Command Line

    OSPF Configuration Command

    Handbook

     1

Huawei OSPF Command Line

    Revision History

Rev Date Author Description

    1.0 05/05/2001 Shiny The first draft

    1.1 05/28/2001 Shiny ; Adjust the parameters of the command

    distribute-list in/out

    ; Change the command qos-enable to mpls

    traffic-eng area

    1.2 06/11/2001 Shiny ; Adjust one parameter of the command

    distribute-list in/out

    ; Modify a parameter range mistake of the

    command ip ospf network

    ; Update some explanation of the command cost-

    metric

    2.0 06/20/2001 Shiny ; Add two new commands

     ospf-overflow-limit

     area host

    ; rename the command cost-metric to

     ospf auto-cost

    ; modify the no form of some commands

    including: area virtual-link, redistribute,

    default information-originate and so on.

    ; Update the explanation of some show

    commands.

    2.1 07/05/2001 Shiny ; Modify a mistake of command mode of the

    command neighbor

    2.2 07/25/2001 Shiny ; Make small modification of the form of the

    show commands as per cisco specification.

    3.0 08/01/2001 Shiny ; Modify the match item of redistribute

    command

    ; Modify the form of the distribute in/out,

    redistribute command to make it clearer.

    3.1 08/13/2001 Shiny ; Add two parameters of the command ospf-

    maximum-routes

    ; Remove the redundant information of the

    command network

    3.2 08/14/2001 Rahul ; Modify the passive command style.

     2

    Huawei OSPF Command Line

1. area authentication ........................................................................................... 5

    2. area default-cost ............................................................................................... 5 3. area host........................................................................................................... 6

    4. area nssa .......................................................................................................... 6 5. area range ........................................................................................................ 7 6. area stub........................................................................................................... 8

    7. area virtual-link ................................................................................................ 8 8. clear ip ospf ................................................................................................... 10

    9. compatible rfc1583 ........................................................................................ 11 10. debug ip ospf hot-standby .............................................................................. 11 11. debug ip ospf event ........................................................................................ 12

    12. debug ip ospf lsa-generation ........................................................................... 12 13. debug ip ospf packet ...................................................................................... 12

    14. debug ip ospf spf ............................................................................................ 13 15. default-information originate.......................................................................... 13

    16. default-metric................................................................................................. 14 17. default-tag ...................................................................................................... 14 18. default-type .................................................................................................... 14 19. distribute-list in .............................................................................................. 14 20. distribute-list out ............................................................................................ 15 21. enable opaque-lsa ........................................................................................... 17 22. ip ospf authentication-key ............................................................................ 17 23. ip ospf cost ................................................................................................... 18 24. ip ospf dead-interval..................................................................................... 18 25. ip ospf hello-interval .................................................................................... 19 26. ip ospf message-digest-key........................................................................... 19 27. ip ospf mtu-ignore ......................................................................................... 20 28. ip ospf network ............................................................................................ 20

    29. ip ospf priority ............................................................................................. 21 30. ip ospf retransmit-interval ............................................................................ 21 31. ip ospf transmit-delay ................................................................................... 22 32. log-enable ...................................................................................................... 22 33. maximum-paths ............................................................................................. 23 34. mpls traffic-eng area ...................................................................................... 23 35. neighbor ......................................................................................................... 23 36. network area .................................................................................................. 24 37. no area ........................................................................................................... 25 38. ospf auto-cost ................................................................................................. 25 39. ospf-maximum-routes .................................................................................... 26 40. ospf-overflow-limit ........................................................................................ 26 41. passive-interface ............................................................................................ 27 42. preference ...................................................................................................... 27 43. redistribute ..................................................................................................... 28 44. router-id ......................................................................................................... 30 45. router ospf...................................................................................................... 31

     3

    Huawei OSPF Command Line

    46. show ip ospf ................................................................................................. 31 47. show ip ospf border-routers ......................................................................... 31

    48. show ip ospf cumulative .............................................................................. 32 49. show ip ospf database.................................................................................. 32

    50. show ip ospf error ....................................................................................... 32 51. show ip ospf interface ................................................................................. 32 52. show ip ospf neighbor ................................................................................. 33

    53. show ip ospf nexthop .................................................................................. 33 54. show ip ospf request-list ............................................................................... 34

    55. show ip ospf retransmit-list .......................................................................... 34 56. show ip ospf routing .................................................................................... 35 57. show ip ospf virtual-links ............................................................................ 35

    58. summary-address ........................................................................................... 35

     4

    Huawei OSPF Command Line

1. area authentication

    To enable authentication for an OSPF area, use the area authentication router

    configuration command. To remove an area's authentication specification or a

    specified area from the configuration , use the no form of this command.

    [Format]

    area area-id authentication [message-digest]

    no area area-id authentication

    [Parameters list]

    area-id:

    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.

    message-digest:

    (Optional) Enables MD5 or HMAC-MD5 authentication on the area specified

    by area-id.

    [Default]

    No authentication. [Command mode]

    OSPF configuration mode.

    [Related commands]

    ip ospf authentication-key

    ip ospf message-digest-key

    no area

2. area default-cost

    To specify a cost for the default summary route sent into a stub or NSSA area, use

    the area default-cost router configuration command. To remove the assigned default route cost, use the no form of this command.

    [Format]

    area area-id default-cost cost

    no area area-id default-cost

    [Parameters list]

    area-id:

    Identifier for the stub or NSSA area. The identifier can be specified as either a

    decimal value or an IP address.

    cost:

    Cost for the default summary route used for a stub or NSSA area. The

    acceptable value is a 24-bit number.

    [Default]

     5

    Huawei OSPF Command Line

    The default value of cost is 1. [Command mode]

    OSPF configuration mode.

    [Related commands]

    area stub

    no area

    3. area host

    To add one host route to OSPF link database, To remove this config. use the no

    form of this command.

    [Format]

    area area-id host host-ip cost

    no area area-id host host-ip

    [Parameters list]

    area-id:

     Identifier of the area for which host route is to be configured. The identifier can

    be specified as either a decimal value or an IP address.

    host-ip:

     The destination ip address of the host route.

    cost:

     The cost of the host route. [Default]

    The area doest have host route. [Command mode]

    OSPF configuration mode.

    [Related commands]

    no area

    4. area nssa

    To configure an area as a not-so-stubby-area (NSSA), use the area nssa router configuration command. To remove the NSSA distinction from the area, use the no form of this command.

    [Format]

    area area-id nssa [no-redistribution] [default-information-originate]

    [no-summary]

    no area area-id nssa

    [Parameters list]

    area-id:

    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.

    no-redistribution:

     6

    Huawei OSPF Command Line

    (Optional) Used when the router is a NSSA ABR and you want the redistribute

    command to import routes only into the normal areas, but not into the NSSA

    area.

    default-information-originate:

    (Optional) Used to generate Type 7 default into the NSSA area. This argument

    only takes effect on NSSA ABR or NSSA ASBR.

    no-summary:

    (Optional) Prevents an ABR from sending summary link advertisements into the

    stub area.

    [Default]

    No NSSA area is defined.

    [Command mode]

    OSPF configuration mode.

    [Related commands]

    area default-cost

    no area

5. area range

    To consolidate and summarize routes at an area boundary, use the area range

    router configuration command. To disable this function, use the no form of this

    command.

    [Format]

    area area-id range address mask [advertise | not-advertise]

    no area area-id range address mask

    [Parameters list]

    area-id:

    Identifier of the area about which routes are to be summarized. It can be

    specified as either a decimal value or as an IP address.

    address:

    IP address.

    mask:

    IP mask.

    advertise:

    (Default) Sets the address range status to advertise and generates a Type 3

    summary LSA.

    not-advertise:

    Sets the address range status to DoNotAdvertise. The Type 3 summary LSA is

    suppressed and the component networks remain hidden from other networks.

     7

    Huawei OSPF Command Line

    [Default]

    Disabled.

    [Command mode]

    OSPF configuration mode.

    [Related commands]

    no area area-id

    no area

6. area stub

    To define an area as a stub area, use the area stub router configuration command.

    To disable this function, use the no form of this command. [Format]

    area area-id stub [no-summary]

    no area area-id stub

    [Parameters list]

    -id: area

    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.

    no-summary:

    (Optional) Prevents an ABR from sending summary link advertisements into the

    stub area.

    [Default]

    No stub area is defined.

    [Command mode]

     OSPF configuration mode.

    [Related commands]

    area default-cost

    no area

7. area virtual-link

    To define an OSPF virtual link, use the area virtual-link router configuration

    command with the optional parameters. To remove a virtual link, use the no form of this command.

    [Format]

    area area-id virtual-link router-id [hello-interval seconds] [retransmit-interval

    seconds] [transmit-delay seconds] [dead-interval seconds] [authentication-key

    [0|7] key] [message-digest-key keyid {md5|hmac-md5} [0|7] key]

     8

    Huawei OSPF Command Line

    no area area-id virtual-link router-id [hello-interval] [retransmit-interval

    [transmit-delay] [dead-interval] [authentication-key] [message-digest-key

    keyid]

    [Parameters list]

    area-id:

    Area ID assigned to the transit area for the virtual link. This can be either a decimal value or a valid IP address. There is no default.

    router-id:

    Router ID associated with the virtual link neighbor. The router ID appears in the show ip ospf display. It is internally derived by each router from the router’s

    interface IP addresses. This value must be entered in the format of an IP address. There is no default.

    hello-interval seconds:

    (Optional) Time in seconds between the hello packets sent on an interface. Unsigned integer value to be advertised in the OSPF’s hello packets. The value

    must be the same for all routers and access servers attached to a common network. The default is 10 seconds.

    retransmit-interval seconds:

    (Optional) Time in seconds between link state advertisement retransmissions for adjacencies belonging to the interface. Expected round-trip delay between any two routers on the attached network. The value must be greater than the expected round-trip delay. The default is 5 seconds.

    transmit-delay seconds:

    (Optional) Estimated time in seconds it takes to transmit a link state update packet on the interface. Integer value that must be greater than zero. Link state advertisements in the update packet have their age incremented by this amount before transmission. The default value is 1 second.

    dead-interval seconds:

    (Optional) Time in seconds that a OSPF’s hello packets are not seen before its

    neighbors declare the router down. Unsigned integer value. The default is four times the hello interval, or 40 seconds. As with the hello interval, this value must be the same for all routers and access servers attached to a common network.

    authentication-key [0|7] key:

    (Optional) Password to be used by neighboring routers. Any continuous string of characters that you can enter from the keyboard up to 8 bytes long. This string acts as a key that will allow the authentication procedure to generate or verify the authentication field in the OSPF header. This key is inserted directly into the OSPF header when originating routing protocol packets. A separate password can be assigned to each network on a per-interface basis. All neighboring routers on the same network must have the same password to be able to route OSPF traffic.

     9

    Huawei OSPF Command Line

    message-digest-key keyid {md5|hmac-md5} [0|7] key:

    (Optional) Key identifier and password to be used by neighboring routers and

    this router for MD5 authentication. The keyid argument is a number in the range

    1 to 255. The key is an alphanumeric string of up to 16 characters. All

    neighboring routers on the same network must have the same key identifier and

    key to be able to route OSPF traffic. There is no default value.

     [0|7]:

    It is used to define how to display authentication key.

    0: Display the authentication key as text.

    7: Display the authentication key as encrypted text.

    If the user don’t define how to display the authentication key, the default value

    is seven.

    [Default]

    area-id: No area ID is predefined

    router-id: No router ID is predefined

    hello-interval seconds: 10 seconds

    retransmit-interval seconds: 5 seconds

    transmit-delay seconds: 1 second

    dead-interval seconds: 40 seconds

    authentication-key key: No key is predefined

    message-digest-key keyid {md5|hmac-md5} key: No key is predefined.

    [Command mode]

    OSPF configuration mode.

    [Related commands]

    area authentication

    show ip ospf

    no area

    8. clear ip ospf

    To clear redistribution based on the OSPF routing process ID, use the clear ip

    ospf command.

    [Format]

    clear ip ospf {process | redistribution | counters [neighbor [type number |

    interface-name ] [neighbor-id]]}

    [Parameters list]

    process:

    Reset OSPF process

    redistribution:

    Clear OSPF route redistribution.

    counters:

     10

Report this document

For any questions or suggestions please email
cust-service@docsford.com