R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

131
DHCP server configuration examples
DHCP networking involves two types:
The DHCP server and client are on the same subnet and perform direct message delivery.
The DHCP server and client are not on the same subnet and communicate with each other via a
DHCP relay agent.
The DHCP server configuration for the two types is the same.
Static IP address assignment configuration example
1. Network requirements
As shown in Figure 62, R
outer A (DHCP client) and Router B (BOOTP client) obtain a static IP address,
DNS server address, and gateway address from Firewall (DHCP server) respectively.
The MAC address of interface Ethernet 1/1 on Router B is 000f-e200-01c0. The client ID of interface
Ethernet 1/1 on Router A is
3030-3066-2e65-3230-302e-3030-3032-2d45-7468-6572-6e65-7430-2f30.
Figure 62 Network diagram for static IP address assignment (on a router)
2. Configuration procedure
a. Configure the IP address of GigabitEthernet 0/1 on Firewall.
<Firewall> system-view
[Firewall] interface GigabitEthernet 0/1
[Firewall-GigabitEthernet0/1] ip address 10.1.1.1 25
[Firewall-GigabitEthernet0/1] quit
b. Configure the DHCP server
# Enable DHCP.
[Firewall] dhcp enable
# Enable the DHCP server on GigabitEthernet 0/1.
[Firewall] interface GigabitEthernet 0/1
[Firewall-GigabitEthernet0/1] dhcp select server global-pool
[Firewall-GigabitEthernet0/1] quit
# Create DHCP address pool 0, and configure a static binding, DNS server and gateway in it.
[Firewall] dhcp server ip-pool 0
[Firewall-dhcp-pool-0] static-bind ip-address 10.1.1.5