Operation Manual – DHCP
H3C S5600 Series Ethernet Switches
Chapter 2 DHCP Server Configuration
2-38
<Sysname> system-view
# Add GigabitEthernet 1/0/1 to VLAN 2 and configure the IP address of VLAN 2
interface to be 10.1.1.1/24.
[Sysname] vlan 2
[Sysname-vlan2] port GigabitEthernet 1/0/1
[Sysname-vlan2] quit
[Sysname] interface Vlan-interface 2
[Sysname-Vlan-interface2] ip address 10.1.1.1 255.255.255.0
[Sysname-Vlan-interface2] quit
# Configure VLAN-interface 2 to operate in the DHCP server mode.
[Sysname] dhcp select global interface Vlan-interface 2
# Enter DHCP address pool view.
[Sysname] dhcp server ip-pool 123
# Configure sub-options of Option 184 in global DHCP address pool view.
[Sysname-dhcp-pool-123] network 10.1.1.1 mask 255.255.255.0
[Sysname-dhcp-pool-123] voice-config ncp-ip 3.3.3.3
[Sysname-dhcp-pool-123] voice-config as-ip 2.2.2.2
[Sysname-dhcp-pool-123] voice-config voice-vlan 3 enable
[Sysname-dhcp-pool-123] voice-config fail-over 1.1.1.1 99*
2.10.3 DHCP Accounting Configuration Example
I. Network requirements
z
The DHCP server connects to a DHCP client and a RADIUS server respectively
through GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
z
GigabitEthernet 1/0/1 belongs to VLAN 2; GigabitEthernet 1/0/2 belongs to VLAN
3.
z
The IP address of VLAN-interface 1 is 10.1.1.1/24, and that of VLAN-interface 2 is
10.1.2.1/24.
z
The IP address of the RADIUS server is 10.1.2.2/24.
z
DHCP accounting is enabled on the DHCP server.
z
The IP addresses of the global DHCP address pool belongs to the network
segment 10.1.1.0. The DHCP server operates as a RADIUS client and adopts
AAA for authentication.