Network diagram, Configuration procedure, Dhcp accounting configuration example – H3C Technologies H3C S3100 Series Switches User Manual

Page 530: Network requirements

Advertising
background image

2-29

Network diagram

DHCP client

DHCP client

DHCP client

3COM VCX

DHCP Server

IP:10.1.1.1/24

Figure 2-3 Network diagram for Option 184 support configuration

Configuration procedure

1) Configure the DHCP client.

Configure the 3COM VCX device to operate as a DHCP client and to request for all sub-options of

Option 184. (Configuration process omitted)

2) Configure the DHCP server.

# Enter system view.

<Sysname> system-view

# Add Ethernet 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 ethernet 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*

DHCP Accounting Configuration Example

Network requirements

z

The DHCP server connects to a DHCP client and a RADIUS server respectively through Ethernet

1/0/1 and Ethernet 1/0/2.

z

Ethernet 1/0/1 belongs to VLAN 2; Ethernet 1/0/2 belongs to VLAN 3.

Advertising