DHCP protocol
U
SER
G
UIDE
323
set dhcp-server vlan10 router 172.16.1.1
set dhcp-server vlan10 dns 8.8.8.8 8.8.4.4
set dhcp-server vlan10 subnet 255.255.255.0
set dhcp-server vlan10 on
set dhcp-server vlan20 interface eth1.20
set dhcp-server vlan20 start-range 172.16.2.50
set dhcp-server vlan20 end-range 172.16.2.100
set dhcp-server vlan20 router 172.16.2.1
set dhcp-server vlan20 dns 8.8.8.8
set dhcp-server vlan20 subnet 255.255.255.0
set dhcp-server vlan20 on
set dhcp-server vlan30 interface eth1.30
set dhcp-server vlan30 start-range 172.16.3.50
set dhcp-server vlan30 end-range 172.16.3.100
set dhcp-server vlan30 router 172.16.3.1
set dhcp-server vlan30 dns 151.99.0.100
set dhcp-server vlan30 subnet 255.255.255.0
set dhcp-server vlan30 on
In case the network scenario does not foresee the possibility of using the VLANs and on the same
network are simultaneously present both IP phones and PCs, to assign them different options, you
have to configure two DHCP instances and to select the traffic based on the phone's MAC address.
For example, the following commands configure the process to ignore requests from the MAC
address
02:60:8C:01:02:01
and
02:60:8C:01:02:02
and after they assign addresses from
192.168.1.10
to
192.168.1.50
, excluding the addresses
192.168.1.20
and
192.168.1.21
:
set dhcp-server PC interface eth1
set dhcp-server PC description PoolDHCPperPC
set dhcp-server PC start-range 192.168.1.10
set dhcp-server PC end-range 192.168.1.50
set dhcp-server PC excluded-address 192.168.1.20
set dhcp-server PC excluded-address 192.168.1.21
set dhcp-server PC ignore-mac 02:60:8c:01:02:01
set dhcp-server PC ignore-mac 02:60:8c:01:02:02
set dhcp-server PC router 192.168.1.1
set dhcp-server PC dns 8.8.8.8
set dhcp-server PC lease-time 3600
set dhcp-server PC subnet 255.255.255.0
set dhcp-server PC on
with the following commands you can configure an instance of the process that only considers
requests from the MAC address
02:60:8C:XX:XX:XX
, assuming to identify the MAC addresses of IP
phones and sending them to the typical options for voice devices:
set dhcp-server ATA interface eth1
set dhcp-server ATA description PoolDHCPperTelefoni