beautypg.com

Configuration procedure, Network requirements – H3C Technologies H3C S3600 Series Switches User Manual

Page 668

background image

2-29

Configuration procedure

1) Configure a VLAN and add a port in this VLAN, and then configure the IP address of the VLAN

interface (omitted).

2) Configure DHCP service.

# Enable DHCP.

system-view

[SwitchA] dhcp enable

# Configure the IP addresses that are not dynamically assigned. (That is, the IP addresses of the DNS

server, WINS server, and gateways.)

[SwitchA] dhcp server forbidden-ip 10.1.1.2

[SwitchA] dhcp server forbidden-ip 10.1.1.4

[SwitchA] dhcp server forbidden-ip 10.1.1.126

[SwitchA] dhcp server forbidden-ip 10.1.1.254

# Configure DHCP address pool 0, including address range, domain name suffix of the clients, and

domain name server address.

[SwitchA] dhcp server ip-pool 0

[SwitchA-dhcp-pool-0] network 10.1.1.0 mask 255.255.255.0

[SwitchA-dhcp-pool-0] domain-name aabbcc.com

[SwitchA-dhcp-pool-0] dns-list 10.1.1.2

[SwitchA-dhcp-pool-0] quit

# Configure DHCP address pool 1, including address range, gateway, WINS server address and lease

time.

[SwitchA] dhcp server ip-pool 1

[SwitchA-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128

[SwitchA-dhcp-pool-1] gateway-list 10.1.1.126

[SwitchA-dhcp-pool-1] expired day 10 hour 12

[SwitchA-dhcp-pool-1] nbns-list 10.1.1.4

[SwitchA-dhcp-pool-1] quit

# Configure DHCP address pool 2, including address range, gateway and lease time.

[SwitchA] dhcp server ip-pool 2

[SwitchA-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128

[SwitchA-dhcp-pool-2] expired day 5

[SwitchA-dhcp-pool-2] gateway-list 10.1.1.254

DHCP Server with Option 184 Support Configuration Example

Network requirements

A 3COM VCX device operating as a DHCP client requests the DHCP server for all sub-options of Option

184. An H3C series switch operates as the DHCP server. The Option 184 support function is configured

for a global DHCP address pool. The sub-options of Option 184 are as follows:

z

NCP-IP: 3.3.3.3

z

AS-IP: 2.2.2.2

z

Voice VLAN configuration: voice VLAN: enabled; voice VLAN ID: 3

z

Fail-over routing: IP address: 1.1.1.1; dialer string: 99*

This manual is related to the following products: