- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Configuration Guide-6W103
- 00-Preface
- 01-CLI Configuration
- 02-Login Configuration
- 03-Configuration File Management Configuration
- 04-VLAN Configuration
- 05-Auto Detect Configuration
- 06-Voice VLAN Configuration
- 07-GVRP Configuration
- 08-Basic Port Configuration
- 09-Link Aggregation Configuration
- 10-Port Isolation Configuration
- 11-Port Security-Port Binding Configuration
- 12-DLDP Configuration
- 13-MAC Address Table Management Configuration
- 14-MSTP Configuration
- 15-802.1x and System Guard Configuration
- 16-AAA Configuration
- 17-MAC Address Authentication Configuration
- 18-IP Address and Performance Configuration
- 19-DHCP Configuration
- 20-ACL Configuration
- 21-QoS-QoS Profile Configuration
- 22-Mirroring Configuration
- 23-ARP Configuration
- 24-SNMP-RMON Configuration
- 25-Multicast Configuration
- 26-NTP Configuration
- 27-SSH Configuration
- 28-File System Management Configuration
- 29-FTP-SFTP-TFTP Configuration
- 30-Information Center Configuration
- 31-System Maintenance and Debugging Configuration
- 32-VLAN-VPN Configuration
- 33-HWPing Configuration
- 34-DNS Configuration
- 35-Smart Link-Monitor Link Configuration
- 36-PoE-PoE Profile Configuration
- 37-Routing Protocol Configuration
- 38-UDP Helper Configuration
- 39-Acronyms
- 40-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
05-Auto Detect Configuration | 86.84 KB |
Introduction to the Auto Detect Function·
Auto Detect Basic Configuration
Auto Detect Implementation in Static Routing
Auto Detect Implementation in VLAN Interface Backup
Auto Detect Configuration Examples
Configuration Example for Auto Detect Implementation in Static Routing
Configuration Example for Auto Detect Implementation in VLAN Interface Backup
l The term switch used throughout this chapter refers to a switching device in a generic sense or the switching engine of a unified switch in the WX3000 series.
l The sample output information in this manual was created on the WX3024. The output information on your device may vary.
When configuring the auto detect function, go to these sections for information you are interested in:
l Introduction to the Auto Detect Function
l Auto Detect Configuration Examples
Introduction to the Auto Detect Function
The Auto Detect function uses ICMP request/reply packets to test network connectivity regularly.
The detected object of the Auto Detect function is a detected group, which is a set of IP addresses. To check the reachability to a detected group, a device enabled with Auto Detect sends ICMP requests to the group and waits for the ICMP replies from the group based on the user-defined policy (which includes the number of ICMP requests and the timeout waiting for a reply). Then according to the check result, the device determines whether to make the applications using the detected group take effect.
Currently, the following features are used in conjunction with Auto Detect:
l Static route
l Interface backup
l A detected group can be used by multiple applications simultaneously.
l For details about static routing, refer to the Routing Protocol in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide.
Auto Detect Configuration
Complete the following tasks to configure auto detect:
Task |
Remarks |
Required |
|
Optional |
|
Optional |
Auto Detect Basic Configuration
Follow these steps to configure the auto detect function:
Use the command… |
Remarks |
|
Enter system view |
system-view |
— |
Create a detected group and enter detected group view |
detect-group group-number |
Required |
Add an IP address to be detected to the detected group |
detect-list list-number ip address ip-address [ nexthop ip-address ] |
Required |
Specify a relationship between detected IP addresses in the group |
option [ and | or ] |
Optional By default, the and keyword is specified. |
Set an interval between detecting operations |
timer loop interval |
Optional By default, the detecting interval is 15 seconds. |
Set the number of ICMP requests during a detecting operation |
retry retry-times |
Optional By default, the number is 2. |
Set a timeout waiting for an ICMP reply |
timer wait seconds |
Optional By default, the timeout is 2 seconds. |
Display the detected group configuration |
display detect-group [ group-number ] |
Available in any view |
If the relationship between IP addresses of a detected group is and, any unreachable IP address in the group makes the detected group unreachable and the remaining IP addresses will not be detected. If the relationship is or, any reachable IP address makes the detected group reachable and the remaining IP addresses will not be detected.
Auto Detect Implementation in Static Routing
You can bind a static route with a detected group. The Auto Detect function will then detect the reachability of the static route through the path specified in the detected group.
l The static route is valid if the detected group is reachable.
l The static route is invalid if the detected group is unreachable.
You need to create the detected group before performing the following operations.
Follow these steps to configure the auto detect function for a static route:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Bind a detected group to a static route |
ip route-static ip-address { mask | mask-length } { interface-type interface-number | next-hop } [ preference preference-value ] [ reject | blackhole ] detect-group group-number |
Required |
Auto Detect Implementation in VLAN Interface Backup
Using Auto Detect can help realize VLAN interfaces backup. When data can be transmitted through two VLAN interfaces on the device to the same destination, configure one of the VLAN interface as the active interface and the other as the standby interface. The standby interface is enabled automatically when the active fails, so as to ensure the data transmission. In this case, the Auto Detect function is implemented as follows:
l In normal situations (that is, when the detected group is reachable), the standby VLAN interface is down and packets are transmitted through the active VLAN interface.
l When the link between the active VLAN interface and the destination faults (that is, the detected group is unreachable), the system enables the backup VLAN interface.
l When the link between the active VLAN interface and the destination recovers (that is, the detected group becomes reachable again), the system shuts down the standby VLAN interface again.
You need to create the detected group and perform configurations concerning VLAN interfaces before the following operations.
Follow these steps to configure the auto detect function for VLAN interface backup:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter VLAN interface view |
interface Vlan-interface vlan-id |
— |
Enable the auto detect function to implement VLAN interface backup |
standby detect-group group-number |
Required This operation is only needed on the secondary VLAN interface. |
Auto Detect Configuration Examples
Configuration Example for Auto Detect Implementation in Static Routing
Network requirements
l As shown in Figure 1-1, create detected group 8 on Switch A; detect the reachability of the IP address 10.1.1.4, with 192.168.1.2 as the next hop, and the detecting number set to 1.
l On switch A, configure a static route to Switch C.
l Enable the static route when the detected group 8 is reachable.
l To ensure normal operating of the auto detect function, configure a static route to Switch A on Switch C.
Figure 1-1 Network diagram for implementing the auto detect function in static route
Configuration procedure
Configure the IP addresses of all the interfaces as shown in Figure 1-1. The configuration procedure is omitted.
l Configure Switch A.
# Enter system view.
<SwitchA> system-view
# Create detected group 8.
[SwitchA] detect-group 8
# Detect the reachability of 10.1.1.4/24, with 192.168.1.2/24 as the next hop, and the detecting number set to 1.
[SwitchA-detect-group-8] detect-list 1 ip address 10.1.1.4 nexthop 192.168.1.2
[SwitchA-detect-group-8] quit
# Enable the static route when the detected group is reachable. The static route is invalid when the detected group is unreachable.
[SwitchA] ip route-static 10.1.1.4 24 192.168.1.2 detect-group 8
l Configure Switch C.
# Enter system view.
<SwitchC> system-view
# Configure a static route to Switch A.
[SwitchC] ip route-static 192.168.1.1 24 10.1.1.3
Configuration Example for Auto Detect Implementation in VLAN Interface Backup
Network requirements
l As shown in Figure 1-2, make sure the routes between Switch A, Switch B, and Switch C, and between Switch A, Switch D, and Switch C are reachable.
l Create detected group 10 on Switch A to detect the connectivity between Switch B and Switch C.
l Configure VLAN-interface 1 to be the active interface, which is enabled when the detected group 10 is reachable.
l Configure VLAN-interface 2 to be the standby interface, which is enabled when the detected group 10 is unreachable.
Figure 1-2 Network diagram for VLAN interface backup
Configuration procedure
Configure the IP addresses of all the interfaces as shown in Figure 1-2. The configuration procedure is omitted.
# Enter system view.
<SwitchA> system-view
# Create auto detected group 10.
[SwitchA] detect-group 10
# Add the IP address of 10.1.1.4 to detected group 10 to detect the reachability of the IP address, with the IP address of 192.168.1.2 as the next hop, and the detecting number set to 1.
[SwitchA-detect-group-10] detect-list 1 ip address 10.1.1.4 nexthop 192.168.1.2
[SwitchA-detect-group-10] quit
# Specify to enable VLAN-interface 2 when the result of detected group 10 is unreachable.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] standby detect-group 10