User Guide    426
Configuring DHCP Service Configuration Examples
# Similarly, the offset of the agent remote ID is 2 and the length is 6. 
class “VLAN2Port1“ { 
    match if substring (option agent.circuit-id, 2, 4) = 00:02:00:01 
                and substring (option agent.remote-id, 2, 6) = 00:00:ff:ff:27:12; 
} 
 
class “VLAN2Port2“ { 
   match if substring (option agent.circuit-id, 2, 4) = 00:02:00:02 
                and substring (option agent.remote-id, 2, 6) = 00:00:ff:ff:27:12; 
} 
 
# Create two IP Address pools in the same subnet.  
# Assign different IP addresses to the DHCP clients in different groups.
 
subnet 192.168.0.0 netmask 255.255.255.0 { 
   option routers 192.168.0.1; 
   option subnet-mask 255.255.255.0; 
   option domain-name-servers 192.168.0.59; 
   option domain-name “example.com“; 
   default-lease-time 600; 
   max-lease-time 7200; 
   authoritative; 
 
pool { 
   range 192.168.0.50 192.168.0.100; 
   allow members of “VLAN2Port1“; 
} 
 
pool { 
   range 192.168.0.150 192.168.0.200; 
   allow members of “VLAN2Port2“; 
}
4.3  Example for DHCP L2 Relay
4.3.1  Network Requirements
As the following figure shows, two groups of computers are connected to Switch A, and 
Switch A is connected to the DHCP server. All devices on the network are in the default 
VLAN 1. All computers get dynamic IP addresses from the DHCP server. For management 
convenience, the administrator wants to allocate separate address spaces for the two 
groups of computers.
Downloaded from ManualsNet.com search engine