(reliability configuration command).pdf

Upload: wankhama

Post on 02-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 (Reliability Configuration Command).PDF

    1/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform Table of Contents

    i

    Table of Contents

    Chapter 1 Backup Center Configuration Commands........ ......... ......... ........ ......... ........ ........ 1-1

    1.1 backup delay ............................................................................................................ 1-1

    1.2 backup interface ....................................................................................................... 1-2

    1.3 backup logic-channel............... ......... ........ ......... ........ ......... ........ ......... ........ ......... ..... 1-3

    1.4 backup state-down.................................................................................................... 1-4

    1.5 backup state-up........................................................................................................ 1-5

    1.6 logic-channel ............................................................................................................ 1-6

    1.7 debug backup...........................................................................................................1-7

    Chapter 2 HSRP Configuration Commands........ ......... ........ ......... ........ ......... ........ ......... ..... 2-1

    2.1 standby authentication................ ........ ......... ......... ........ ......... ........ ......... ........ ......... .. 2-1

    2.2 standby ip................................................................................................................. 2-2

    2.3 standby preempt ....................................................................................................... 2-3

    2.4 standby priority ......................................................................................................... 2-3

    2.5 standby timers .......................................................................................................... 2-4

    2.6 standby track............................................................................................................2-5

    2.7 standby use-bia ........................................................................................................ 2-6

    2.8 standby use-ovmac...................................................................................................2-7

    2.9 show standby ........................................................................................................... 2-72.10 debug standby ........................................................................................................ 2-8

  • 7/27/2019 (Reliability Configuration Command).PDF

    2/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-1

    Chapter 1 Backup Center Configuration

    Commands

    Backup center configuration commands include:

    l backup delay

    l backup interface

    l backup logic-channel

    l backup state-down

    l backup state-up

    l logic-channel

    l debug backup

    1.1 backup delay

    To define how much time should elapse before a backup interface status changes after

    a primary interface status has changed, use the backup delay command. To return to

    the default, so that as soon as the primary fails, the backup is immediately brought upwithout delay, use the no form of this command.

    backup delay enable-delay disable-delay

    no backup delay

    Syntax Description

    enable-delay Number of seconds that elapse after the primary interface goes down

    before the VRP software activates the backup interface. Ranging 0 to 65535.

    disable-delay Number of seconds that elapse after the primary interface comes up

    before the VRP software deactivates the backup interface. Ranging 0 to 65535.

    Default

    Default delay on activating and deactivating the backup interface is 0 second, meaningimmediate activating and deactivating.

    Command Mode

    Interface configuration mode

    Logic channel configuration mode

    Usage Guideline

    It is necessary to set the switching delay to prevent frequent main/backup interface

    switching due to the instability of the interface status.

  • 7/27/2019 (Reliability Configuration Command).PDF

    3/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-2

    The command in the following table can be executed normally only after the backup

    interface /logic-channel command has been used to specify physical interfaces,virtual template and logic channel.

    Example

    ! Set Serial0 as using Serial1 as its backup interface, and set a 10-second delay onactivating and deactivating the backup interface (Serial1).

    Quidway(config)#interface serial 0

    Quidway(config-if-Serial0)#backup interface serial 1

    Quidway(config-if-Serial0)#backup delay 10 10

    Related Command

    backup interface

    1.2 backup interface

    To specify a certain physical interface or virtual interface template as backup interface

    for the main interface, use the backup interface command. To remove the specifiedbackup, use the no form of this command.

    backup interface interface-type interface-number[priority]

    no backup interfaceinterface-type interface-numberSyntax Description

    interface-type Type of the interface.

    interface-number Number of the interface.

    priority Priority of the backup interface, ranging 0 to 255, 0 by default.

    Default

    no backup interface

    Command Mode

    Interface configuration mode

    Logic channel configuration mode

    Usage Guideline

    A certain physical interface or virtual interface template can be specified as a backup

    interface. Multiple backup interfaces can be set for a main interface. These interfacesare used according to their priority, that is, an interface with the highest priority will beused first.

  • 7/27/2019 (Reliability Configuration Command).PDF

    4/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-3

    Example

    ! Specify Serial 1 and Serial 2 as the backup interfaces for Serial 0, whose priorityvalues are 50 and 30 respectively.

    Quidway(config)#interface serial 0

    Quidway(config-if-Serial0)#backup interface serial 1 50

    Quidway(config-if-Serial0)#backup interface serial 2 30

    1.3 backup logic-channel

    To specify a certain logic channel as a backup interface, use the backup logic-

    channel command. To remove the specified backup, use the no form of this command.

    backup logic-channel logic-channel-number[priority]

    no backup logic-channel logic-channel-number[priority]

    Syntax Description

    logic-channel-number Number of the logic channel

    priority Priority of the backup logic channel, ranging 0 to 255, 0 by default.

    Default

    no backup logic-channel

    Command Mode

    Interface configuration mode

    Logic channel configuration mode

    Usage Guideline

    The so-called logic channel is an X.25 virtual channel, frame relay virtual circuit or

    Dialer Map. Before a backup logic channel is specified, it is necessary to match thislogic channel to the specific virtual circuit or Dialer Map.

    Example

    ! Specify Serial 1 and logic channel 2 as the backup interfaces for Serial 0, whosepriority values are 50 and 30 respectively.

    Quidway(config)#interface serial 0

    Quidway(config-if-Serial0)#backup interface serial 1 50

    Quidway(config-if-Serial0)#backup logic-channel 2 30

    Related Command

    logic-channel

  • 7/27/2019 (Reliability Configuration Command).PDF

    5/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-4

    1.4 backup state-down

    To set the number of calls when the logic channel is Down, use the backup state-

    down command. To return to the default, use the no form of this command.

    backup state-down number

    no backup state-down

    Syntax Description

    number Number of calls, ranging 0 to 65535.

    Default

    0

    Command Mode

    Logic channel configuration mode.

    Usage Guideline

    If the logic channel continuously originates a numberof calls, then it is considered to be

    in Down, and will be switched to the backup interface. If the logic channel serves as abackup interface, then it will be switched to a backup interface with lower priority.

    If the logic channel serves as a main interface, this command can be executed normally

    only after the backup interface/logic-channel command has been used to specifyphysical interfaces, virtual template and logic channel. If the logic channel serves as a

    backup interface, it can be executed normally only after the backup logic-channelcommand is used to specify the logic channel to backup the main interface.

    Example

    ! Specify Serial 1 and logic channel 2 as the backup interfaces for Serial 3, whose

    priority values are 50 and 30 respectively; then set the number of calls to 4 when thelogic channel is judged to be Down.

    Quidway(config)#logic-channel 3

    Quidway(config-logic-channel3)#backup interface serial 1 50

    Quidway(config-logic-channel3)#backup logic-channel 2 30

    Quidway(config-logic-channel3)#backup state-down 4

    Related Command

    backup state-up

  • 7/27/2019 (Reliability Configuration Command).PDF

    6/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-5

    1.5 backup state-up

    To set the status check interval when the logic channel is restored to Up, use the

    backup state-up command. To return to the default, use the no form of this command.

    backup state-up interval-time

    no backup state-up

    Syntax Description

    interval-time Status check interval in second, ranging 0 to 65535.

    Default

    1

    Command Mode

    Logic channel configuration mode

    Usage Guideline

    If a logic channel is Down, the system will judge if its status has been restored to Up

    every interval-time, so that this logic channel can be switched back as soon as it isrestored to Up.

    If the logic channel serves as a main interface, this command can be executed normally

    only after the backup interface/logic-channel command has been used to specifyphysical interfaces, virtual template and logic channel. If the logic channel serves as a

    backup interface, it can be executed normally only after the backup logic-channelcommand is used to specify the logic channel to backup the main interface.

    Example

    ! First specify Serial 1 and logic channel 2 as the backup interfaces for Serial 3, whose

    priority values are 50 and 30 respectively; then set the number of calls to 4 when logicchannel 3 is judged to be Down; set the status check interval to 10 seconds when it is

    judged to have been restored to Up.

    Quidway(config)#logic-channel 3

    Quidway(config-logic-channel3)#backup interface serial 1 50

    Quidway(config-logic-channel3)#backup logic-channel 2 30

    Quidway(config-logic-channel3)#backup state-down 4

    Quidway(config-logic-channel3)#backup state-up 10

    Related Command

    backup state-down

  • 7/27/2019 (Reliability Configuration Command).PDF

    7/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-6

    1.6 logic-channel

    To create a logic channel or enter the configuration mode for a specified logic channel,

    use the backup state-down command. To delete the specified logic channel, use theno form of this command.

    logic-channellogic-channel-number

    nologic-channellogic-channel-number

    Syntax Description

    logic-channel-number logic channel number, ranging 1 to 255

    Default

    no logic-channel

    Command Mode

    Global mode

    Usage Guideline

    The logic channel concept is proposed in the backup center. The so-called logic

    channel can be an X.25 or frame relay virtual circuit, or a Dialer Map. X.25 or framerelay logic channels can serve as main interfaces, and X.25 or frame relay or DialerMap logic channels can serve as backup interfaces.

    Before setting the backup center working parameter for the logic channel, you need to

    specify a logic channel number for an X.25 or frame relay or a Dialer Map. Then youcan enter the configuration mode for this logic channel through this command.

    Example

    Specify the logic channel number for an X.25 virtual circuit at Serial 0, then enter this

    logic channel and set its working parameter.

    ! Enter the configuration mode for Serial 0, and specify it as encapsulated with X.25

    Quidway(config)#interface serial 0

    Quidway(config-if-Serial0)#encapsulation x25

    ! Specify the logic channel number for the virtual circuit whose remote IP address is129.102.0.1 and x.121 address is 2 as 1

    Quidway(config-if-Serial0)#x25 map ip 129.102.0.1 2 lin 1

    ! Exit the configuration mode for Serial 0 and enter the configuration mode for logic

    channel 1

    Quidway(config-if-Serial0)#exit

    Quidway(config)#logic-channel 1

    ! Set the status judgement condition for this logic channel: number of calls to 4, and

    check interval to 10 seconds

  • 7/27/2019 (Reliability Configuration Command).PDF

    8/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1Backup Center Configuration Commands

    1-7

    Quidway(config-logic-channel1)#backup state-down 4

    Quidway(config-logic-channel1)#backup state-up 10

    Related Command

    x25 map, frame-relay map, dialer map

    1.7 debug backup

    To enable the information debugging of backup, use the debug backup command.

    debug backup { event | packet }

    Syntax Description

    event Enable the event debugging.

    packet Enable the packet debugging.

    Command Mode

    Privileged user.

  • 7/27/2019 (Reliability Configuration Command).PDF

    9/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-1

    Chapter 2 HSRP Configuration Commands

    HSRP configuration commands include:

    l standby authentication

    l standby ip

    l standby preempt

    l standby priority

    l standby timers

    l standby track

    l standby use-bia

    l standby use-ovmac

    l show standby

    l debug standby

    2.1 standby authentication

    To set the authentication data for the HSRP standby group, use the standbyauthentication command.

    standby [ group_number] authentication [ string]

    Syntax Description

    group_number HSRP standby group number, ranging 0 to 255.

    string Authentication data in a string of no more than 8 characters.

    Default

    Authentication data: quidway; standby group number: 0.

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    The HSRP authentication data is used to confirm the validity of other routers in the

    same standby group. It is necessary to configure the same authentication data in thesame standby group.

    When string value is empty, use the default authentication data.

  • 7/27/2019 (Reliability Configuration Command).PDF

    10/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-2

    Example

    ! Set huawei as the authentication data in the standby group where the interfaceEthernet 0 is located.

    Quidway(config-if-Ethernet0)#standby 1 authentication huawei

    2.2 standby ip

    To enable the HSRP function to enter a HSRP group, use the standby ip command. To

    disable the HSRP function and exit a certain HSRP group, use the no form of thiscommand.

    standby [group-number] ip [virtual-ip-address ]

    nostandby [group-number] ip [virtual-ip-address ]

    Syntax Description

    group-number HSRP standby group number, ranging 0 to 255.

    virtual-ip-address Virtual IP address used by the HSRP standby group.

    Default

    Default standby group number: 0.

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    To use this command, it is necessary to specify the standby group number and virtual

    IP address. If the virtual IP address is not specified, the router will not participate inbackup until it obtains a virtual IP address from the hello packet sent by a router inactive status from the standby group. Note that this virtual IP address must be in thesame subnet as the IP address of the interface.

    & Note:

    Please note that, when HSRP is configured at a certain Ethernet interface and if the IP address of this

    interface is changed, then the configured HSRP will be no longer effective.

    If multiple HSRP backup groups are to be configured on one router, only one backup group can omit the

    specification of virtual IP address.

  • 7/27/2019 (Reliability Configuration Command).PDF

    11/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-3

    Example

    ! Start the HSRP function of the router to add it to standby group 1, and specify thevirtual IP address of this standby group to 202.38.160.111

    Quidway(config-if-Ethernet0)#standby 1 ip 202.38.160.111

    2.3 standby preempt

    To set the router to work in preempt mode in a certain HSRP standby group, use the

    standby preempt command. To remove the existing setting, use the no form of thiscommand.

    standby [group-number] preempt

    no standby [group-number] preempt

    Syntax Description

    group-number HSRP standby group number, ranging 0-255, 0 by default.

    Default

    By default, the router works in non-preempt mode in any HSRP standby group.

    Default standby group number: 0.

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    If the HSRP in a certain router is set to work in preempt mode, then this router will

    preempt to become the active router once it finds that its priority is higher than that ofthe currently active router. Now the originally active router will exit the active statusaccordingly to become a standby or listening router.

    Example

    ! Set the router to work in preempt mode in HSRP standby group 1

    Quidway(config-if-Ethernet0)#standby 1 preempt

    Related Command

    standby priority

    2.4 standby priority

    To set the priority of a router in the HSRP standby group, use the standby priority

    command.

  • 7/27/2019 (Reliability Configuration Command).PDF

    12/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-4

    standby [ group-number] priority [priority-value ]

    Syntax Description

    group-number HSRP standby group number, ranging 0 to 255.

    priority-value The higher this value is, the higher the priority; ranging 0 to 255.

    Default

    Priority: 100; standby group number: 0.

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    Priority decides the status of the HSRP standby group. A router with the highest priority

    will become the active router, and that with the second highest priority will be become astandby router.

    Example

    ! Set the priority of the router in HSRP standby group 1 to 120

    Quidway(config-if-Ethernet0)#standby 1 priority 120

    Related Command

    standby preempt

    2.5 standby timers

    To set the HSRP timer, use the standby timers command.

    standby [ group-number] timers [ hello-time ][ hold-time ]

    Syntax Description

    group-number HSRP standby number, ranging 0 to 255.

    hello-time Interval for HSRP to send the hello message regularly in second, ranging 1

    to 255.

    hold-time interval when a standby group member is identified as invalid, in second,ranging 1 to 255.

    Default

    hello-time: 3 seconds; hold_time: 10 seconds; standby group number: 0.

  • 7/27/2019 (Reliability Configuration Command).PDF

    13/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-5

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    Hello packets are sent between the routers in the same HSRP standby group to

    confirm the status of each other: if no hello message is received from a certain routerwithin the hold-time, then it may have been shut down or become faulty. You can setthe HSRP timer to adjust the hello-time and hold-time.

    & Note:

    For the same standby group, it is necessary to set the same hello-time and hold-time, and the hold-time

    must be greater than thehello-time.

    Example

    ! Set the hello-time for standby group 1 to 5 second; and set the hold-time to 15seconds

    Quidway(config-if-Ethernet0)#standby 1 timers 5 15

    2.6 standby track

    To track the specified interface, use the standby track command. To remove the

    monitoring, use the no form of this command.

    standby [group-number] track interface-type interface-number[priority-reduced]

    nostandby [group-number] track interface-type interface-number[priority-reduced]

    Syntax Description

    group-number HSRP standby group number, ranging 0 to 255.

    interface-type Type of the interface tracked.

    interface-number Number of the interface tracked.

    priority-reduced Reduced priority value in the standby group when the interface status

    turns to Down.

    Default

    priority-reduced: 10; standby group number: 0.

    Command Mode

    Ethernet interface configuration mode

  • 7/27/2019 (Reliability Configuration Command).PDF

    14/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-6

    Usage Guideline

    The interface tracking function of HSRP well extends the backup function: it can

    provide backup for the router when it is faulty, and provide backup for a certain interface

    when it is unavailable. When the interface track function is set, the system willdynamically adjust the priority of the router according to the status of the trackedinterface. Once the tracked interface is unavailable, the priority value of the router willbe reduced so as to ensure that the other router with an interface of more stable status

    in the same standby group can more easily turn into active status or preempt tobecome active.

    Example

    ! Track the interface Serial 0. When its status turns into Down, the priority in standby

    group 1 will be reduced by 50

    Quidway(config-if-Ethernet0)#standby 1 track serial0 50

    2.7 standby use-bia

    To use the actual MAC address (Burned in Address, BIA) of the Ethernet interface as

    the virtual MAC address for the standby group, use the standby use-bia command. Toreturn to the default, use the no form of this command.

    standby use-bia

    no standby use-bia

    Default

    no standby use-bia.

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    When the host is a HSRP virtual router, besides the virtual IP, the virtual MAC address

    should also be used. By default, each HSRP standby group uses the reserved special

    MAC address as the virtual MAC address so as to ensure transparency of the standbygroup to the host. But the user can set the HSRP standby group to use the actual MACaddress in the active router (Burned in Address, BIA).

    & Note:

    1) When BIA is used, the same Ethernet interface can not participate in multiple standby groups.

    2) The use of BIA may cause change in the HSRP status.

  • 7/27/2019 (Reliability Configuration Command).PDF

    15/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-7

    Example

    ! Set the router to use the actual Ethernet interface MAC address as the virtual MACaddress in the standby group

    Quidway(config-if-Ethernet0)#standby use-bia

    2.8 standby use-ovmac

    To change the virtual MAC address of the standby group, use the standby use-ovmac

    command. To return to the default, use the no form of this command.

    standby use-ovmac [xx-xx-xx-xx-xx]

    no standby use-ovmac

    Syntax Description

    xx-xx-xx-xx-xx First five bytes in the other virtual MAC; the standby group number

    serves as the last byte of this MAC address.

    Default

    The MAC address 00-E0-FC-00-5F reserved by Huawei is used as the virtual MAC

    address.

    Command Mode

    Ethernet interface configuration mode

    Usage Guideline

    The virtual MAC address of the HSRP standby group varies with the supplier. You can

    modify the virtual MAC address so as to achieve the interoperability with routers ofother suppliers. This setting is effective for all the HSRP standby groups configured atthe Ethernet interface.

    Example

    ! Change the first five bytes of the virtual MAC in the standby group to 00-0A-0A-0A-0A

    Quidway(config-if-Ethernet0)#standby use-ovmac 00-0A-0A-0A-0A

    2.9 show standby

    To show the status information of HSRP, use the show standby command.

    show standby

    Command Mode

    Privileged user mode

  • 7/27/2019 (Reliability Configuration Command).PDF

    16/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-8

    Usage Guideline

    This command can be used to show the status information, configuration parameters,etc. of HSRP.

    Example

    ! Show the status information of HSRP

    Quidway# show standby

    Ethernet0 |Group Number : 1

    State : Init

    Hot Standby IP : 103.1.1.5

    Priority : 100 Preempt : no

    Hold Time : 10 Hello Time: 3

    Use Virtual Mac Address : 00-e0-fc-00-5f-01

    The information above shows backup group, status, virtual IP address, priority,

    preemptive method, timeout and interval for sending Hello message and virtual MACaddress of the interface.

    2.10 debug standby

    To open the HSRP debug switch, use the debug standby command. To return to thedefault, use the no form of this command.

    debug standby

    no debug standby

    Command Mode

    Privileged user mode

    Usage Guideline

    The HSRP debug switch can be turned on to show the run status, events, etc. of HSRP.

    This is helpful in locating and troubleshooting HSRP.

    & Note:

    The output of debug information will affect the operation efficiency of the router, so be cautious when

    turning it on. Always shut it down when debugging is completed.

    Example

    ! Turn on the HSRP debug switch

  • 7/27/2019 (Reliability Configuration Command).PDF

    17/17

    User Manual - Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2HSRP Configuration Commands

    2-9

    Quidway#debug standby