HPE FlexNetwork 10500 Series Configuration Manual page 94

Layer 3-ip services
Table of Contents

Advertisement

Figure 29 Network diagram
DHCP client
Configuration procedure
1.
Assign IP addresses to interfaces on the switches. (Details not shown.)
2.
Configure Switch B and Switch C as DHCP servers. (Details not shown.)
3.
Configure the DHCP relay agent on Switch A:
# Enable DHCP.
<SwitchA> system-view
[SwitchA] dhcp enable
# Enable the DHCP relay agent on VLAN-interface 2.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] dhcp select relay
# Specify the IP addresses of the DHCP servers.
[SwitchA-Vlan-interface2] dhcp relay server-address 1.1.1.1
[SwitchA-Vlan-interface2] dhcp relay server-address 2.2.2.2
# Specify the DHCP server selecting algorithm as master-backup.
[SwitchA-Vlan-interface2] dhcp relay server-address algorithm master-backup
# Configure the DHCP relay agent to switch back to the master DHCP server 3 minutes after it
switches to the backup DHCP server.
[SwitchA-Vlan-interface2] dhcp relay master-server switch-delay 3
Verifying the configuration
# Verify that the DHCP client cannot obtain an IP address and that the following log is output in about
30 seconds.
DHCPR/3/DHCPR_SERVERCHANGE: -MDC=1;
Switched to the server at 2.2.2.2 because the current server did not respond.
# Enable DHCP on the DHCP server at 1.1.1.1. (Details not shown.)
# Verify that the DHCP client cannot obtain an IP address and that the following log is output in about
3 minutes.
DHCPR/3/DHCPR_SWITCHMASTER: -MDC=1;
Switched to the master DHCP server at 1.1.1.1.
# Verify that the DHCP client obtains an IP address. (Details not shown.)
Switch B
DHCP server1
1.1.1.1/24
Vlan-int3
1.1.1.100/24
Switch A
DHCP relay agent
Vlan-int2
22.22.22.1/24
Vlan-int4
2.2.2.100/24
Switch C
DHCP server2
2.2.2.2/24
83

Advertisement

Table of Contents
loading

Table of Contents