So according to your example - only addresses with the entered mac address from 192.168.1.101 ... 102, 103, etc. will be given away and will be excluded from 192.168.1.1 - 192.168.1.100?
------------------------------
obercik
------------------------------
Original Message:
Sent: 02-24-2021 02:20
From: Unknown User
Subject: DHCP exclude address range & only user mac address
You will want to use the "new"dhcp configuration style. For #2 you should enter every host in the remaining range as a host reservation entry.
system { services { dhcp-local-server { group dhcp-server { interface ge-0/0/0.0; } } }}access { address-assignment { pool test { family inet { network 192.168.1.0/24; range test { low 192.168.1.1; high 192.168.1.254; } host host1 { hardware-address aa:bb:cc:dd:ee:01; ip-address 192.168.1.101; } host host2 { hardware-address aa:bb:cc:dd:ee:02; ip-address 192.168.1.102; } host host3 { hardware-address aa:bb:cc:dd:ee:03; ip-address 192.168.1.103; } excluded-range excl { low 192.168.1.1; high 192.168.1.100; } } } }}
Original Message:
Sent: 02-24-2021 01:48
From: ROBERT MISZTAL
Subject: DHCP exclude address range & only user mac address
Hi, I'm in the new SRX-240H owner and just learning . I wanted to ask if you could help me in the matter related to the configuration of DHCP in Junos:
1. can it be set excluded-address in DHCP - but for a range? Because now I can only for single addresses, as in the following code:
address-range low 192.168.1.1 high 192.168.1.254;
exclude-address {
192.168.1.22;
192.168.1.2;
192.168.1.8;
192.168.1.9;
and I would like not to enter many individual addresses like this: 192.168.1.1 - 192.168.1.100
2. Is it possible in DHCP to set the possibility that it will assign an address ONLY to those users who have entered mac-addresses in SRX? Because now it is so that when my users connect, everyone receives an ip address from this DHCP - and I would like to somehow secure it, so that only the CI, what the mac address of the computer has entered.
------------------------------
obercik
------------------------------