Good luck. Maybe helped!!!
B.S.C.M. I.T.T. Tech
A.A.S. I.T.T. Tech
Original Message:
Sent: 02-17-2025 00:58
From: kronicklez
Subject: SRX as DHCP Server with multiple pools but just single interface only?
Hi,
First, i'm not use lo0 on SRX and secondly i'm not have other interface. My setup was the SRX function as DHCP server like normal windows server. Means just one physical / ip address only .
Thanks
Original Message:
Sent: 02-16-2025 21:54
From: eugene1973
Subject: SRX as DHCP Server with multiple pools but just single interface only?
dhcp-local-server
}
}
group lo {
interface lo0.0;
}
group default-group {
interface ge-0/0/0.0;
}
group jweb-default-group {
interface ge-0/0/1.0;
}
group jweb-default-group-2 {
interface ge-0/0/2.0;
}
group jweb-default-group-3 {
interface ge-0/0/3.0;
}
group jweb-default-group-4 {
interface ge-0/0/4.0;
}
group jweb-default-group-5 {
interface ge-0/0/5.0;
}
group jweb-default-group-6 {
interface ge-0/0/6.0;
}
group jweb-default-group-7 {
interface ge-0/0/7.0;
}
}
passive lo0.0 will help
disable lo0.0 will send direct to other interfaces.
This works with one vlan. Try that first, then add vlans. First the dhcp, then later vlans. WITH ALL SUBNETS YOU NEED, FIRST.
------------------------------
Adrian Aguinaga
B.S.C.M. I.T.T. Tech
(Construction Management)
A.A.S. I.T.T. Tech
(Drafting & Design)
Original Message:
Sent: 02-16-2025 10:47
From: kronicklez
Subject: SRX as DHCP Server with multiple pools but just single interface only?
Hi,
I'm try your method but it's not work. The second subnet cannot get dhcp.
Thanks
Original Message:
Sent: 02-16-2025 09:49
From: eugene1973
Subject: SRX as DHCP Server with multiple pools but just single interface only?
The router statement takes multiple ip addresses.
}
router {
192.168.1.1;
192.168.1.40;
}
If you use your main ip address, which should only be used for your subnet, then in routing options, the router-id would be your first subnet. I.e. 192.168.1.40 , as above. This is my gateway. The isp gateway is 192.168.1.1 . For you is different subnets.
}
router {
10.10.1.1;
10.10.2.1;
}
router-id 10.10.?
My srx is internal only. That's why 192.168.1.40 , but you are the main gateway for srx.
------------------------------
Adrian Aguinaga
B.S.C.M. I.T.T. Tech
(Construction Management)
A.A.S. I.T.T. Tech
(Drafting & Design)
Original Message:
Sent: 02-16-2025 06:36
From: kronicklez
Subject: SRX as DHCP Server with multiple pools but just single interface only?
Hi,
Your config cannot be use for IPv4 because in each pool need define dhcp-attribute for each specific gateway.
Thanks
Original Message:
Sent: 02-15-2025 07:20
From: eugene1973
Subject: SRX as DHCP Server with multiple pools but just single interface only?
I have done this with ipv6, but I have not put the other segment on a vlan as of yet. It does work.
pool pool1 {
family inet6 {
prefix 2601:xxxx:xxxx:xxxx::40/56;
range r1 {
low 2601:xxxx:xxxx:xxxx::1/64;
high 2601:xxxx:xxxx:xxxx:ffff:ffff:ffff:ffff/64;
}
range r2 {
low 2601:xxxx:xxxx:xxxx::1/56;
high 2601:xxxx:xxxx:xxxx:708::1/56;
}
dhcp-attributes {
maximum-lease-time 300000;
dns-server {
2001:xxxx:xxxx::1;
2001:xxxx:xxxx::2;
}
propagate-settings irb.1;
option 80 flag true;
option 82 flag true;
}
}
}
dhcp-local-server will only accept 2 pools for ipv6. That's because it needs more for it.
You need more ranges.
Also you might want to make each interface in dhcp local server it's own group. Try passive for lo0.0 .
For sure try passive or disable for a while on lo0.0 .
------------------------------
Adrian Aguinaga
B.S.C.M. I.T.T. Tech
(Construction Management)
A.A.S. I.T.T. Tech
(Drafting & Design)
Original Message:
Sent: 02-15-2025 06:15
From: kronicklez
Subject: SRX as DHCP Server with multiple pools but just single interface only?
Hi,
It cannot put different segment in one pool. In the pool have knob "network 10.10.0.0/24". So means every range need in the segment prefix. My objective want make as the SRX like normal DHCP Server in windows that have multiple scope pool ip.
Thanks and any other suggestion?
Original Message:
Sent: 02-14-2025 11:22
From: eugene1973
Subject: SRX as DHCP Server with multiple pools but just single interface only?
Have you tried making one pool with a base address which combines all the ip's? Also you need dhcp local server. Then add the interfaces in dhcp local server. Then dhcp local server use process inform as well as prefix delegation. Or just one if it's ipv4 only, process inform. First use override in ipv4 before process inform.
So...
10.10.0.0/32
Range low 10.10.0.0
Range high 10.10.2.255
I think that pool of 32 will cover the whole subnet.
------------------------------
Adrian Aguinaga
B.S.C.M. I.T.T. Tech
(Construction Management)
A.A.S. I.T.T. Tech
(Drafting & Design)
Original Message:
Sent: 02-14-2025 04:44
From: kronicklez
Subject: SRX as DHCP Server with multiple pools but just single interface only?
Hi all,
Currently i'm try replicate Juniper JVD 5-Stages in my virtual lab. Unfortunately the second pool not get dhcp. I make SRX as DHCP server. No issue the first pool get dhcp. Is it i have missing something in SRX on dhcp config? No issue also reachability between second prefix to SRX (as DHCP Server). Thanks and appreciate any feedback
QFX Config
[edit routing-instances blue forwarding-options dhcp-relay]
root@LEAF01# show
forward-only;
server-group {
blue {
10.10.0.200;
}
}
group blue {
active-server-group blue;
relay-option-82 {
server-id-override;
}
interface irb.1400 {
overrides {
relay-source lo0.3;
}
}
interface irb.1401 {
overrides {
relay-source lo0.3;
}
}
}
SRX Config as DHCP Server
root@DHCP-Server-Blue# ...onfiguration system services dhcp-local-server
group DHCP-GROUP {
interface ge-0/0/0.0;
}
root@DHCP-Server-Blue# run show configuration access
address-assignment {
pool Blue-10-10-0-0 {
family inet {
network 10.10.0.0/24;
range Blue-10-10-0-0 {
low 10.10.0.100;
high 10.10.0.150;
}
dhcp-attributes {
name-server {
8.8.8.8;
1.1.1.1;
}
router {
10.10.0.1;
}
propagate-settings ge-0/0/0.0;
}
}
}
pool Blue-10-10-1-0 {
family inet {
network 10.10.1.0/24;
range Blue-10-10-1-0 {
low 10.10.1.100;
high 10.10.1.150;
}
dhcp-attributes {
name-server {
8.8.8.8;
1.1.1.1;
}
router {
10.10.1.1;
}
propagate-settings ge-0/0/0.0;
}
}
}
pool Blue-10-10-2-0 {
family inet {
network 10.10.2.0/24;
range Blue-10-10-2-0 {
low 10.10.2.100;
high 10.10.2.150;
}
dhcp-attributes {
name-server {
8.8.8.8;
1.1.1.1;
}
router {
10.10.2.1;
}
propagate-settings ge-0/0/0.0;
}
}
}