H3C LS-5100-16P-SI-OVS-H3 Configuration page 15

Low-end ethernet switches
Table of Contents

Advertisement

DHCP
H3C Low-End Ethernet Switches Configuration Examples
[H3C-Vlan-interface10] dhcp server nbst-list 10.214.10.4
No gateway needs to be configured for the clients because an interface operating in the
interface address pool mode automatically serves as the gateway for DHCP clients and
sends the requested information to the clients.
# Assign IP addresses to the DNS server, WINS server, and mail server through
IP-to-MAC bindings.
[H3C-Vlan-interface10]
mac-address 000d-85c7-4e20
[H3C-Vlan-interface10]
mac-address 0013-4ca8-9b71
[H3C-Vlan-interface10]
mac-address 002e08d20-54c6
# Exclude the static IP addresses of the DNS server, WINS server, and mail server from
allocation.
[H3C-Vlan-interface10] quit
[H3C] dhcp server forbidden-ip 10.214.10.3 10.214.10.5
Configure address allocation for the devices in the Branch.
# Create a global address pool named "br" for the Branch, and specify the range and
lease period of the IP addresses for allocation.
[H3C] dhcp server ip-pool br
[H3C-dhcp-pool-br] network 10.210.10.0 mask 255.255.255.0
[H3C-dhcp-pool-br] expired day 3
# Create a static binding address pool named "br-static", and assign the file server in
the Branch an IP address through an IP-to-MAC binding.
[H3C-dhcp-pool-br] quit
[H3C] dhcp server ip-pool br-static
[H3C-dhcp-pool-br-static]
255.255.255.0
[H3C-dhcp-pool-br-static] static-bind mac-address 000d-88f8-4e71
# Specify the gateway address, DNS server address, and the WINS server address for
the workstations in the Branch.
[H3C-dhcp-pool-br-static] quit
[H3C] dhcp server ip-pool br
[H3C-dhcp-pool-br] gateway-list 10.210.10.1
[H3C-dhcp-pool-br] dns-list 10.214.10.3
[H3C-dhcp-pool-br] nbst-list 10.214.10.4
# Exclude the static IP address of the gateway in the Branch from allocation.
[H3C-dhcp-pool-br] quit
[H3C] dhcp server forbidden-ip 10.210.10.1
dhcp
server
static-bind
dhcp
server
static-bind
dhcp
server
static-bind
static-bind
2-3
Chapter 2 Configuration Examples
ip-address
ip-address
ip-address
ip-address
10.214.10.4
10.214.10.3
10.214.10.4
10.214.10.5
mask

Advertisement

Table of Contents
loading

Table of Contents