[j-nsp] DHCP SERVER in m7i
Chad Myers
Chad.Myers at theice.com
Wed Nov 11 00:47:42 EST 2015
I just dug through the dhcp server tracelog and old install logs. It looks like I ran into that in 12.1R3 so it may not be a problem on 11.4. When running with traceoptions, this is what I found in the log that pointed out the problem:
Aug 9 17:32:21 [NOTE] jdhcpd_packet_handle: RECEIVE DISCOVER: stats_safd 0x0 , safd 0x88fe000 ge-0/3/1.999
Aug 9 17:32:21 [NOTE] [ge-0/3/1.999] jdhcpd_packet_handle: ------ Switchover recovery not completed-----: dropping DISCOVER on ifindex 72
After it was fixed these appeared instead after the config was (re)loaded:
Aug 29 20:52:06.944830 Graceful Switchover not configured
Aug 29 20:52:06.944958 Maintain-subscriber not configured
Aug 29 20:52:06.948862 Config read ended in status 1
Aug 29 20:52:06.949652 === Reloading configuration DONE[1673] ===
As for the dhcp config itself, you don't need family iso for it. The config looks ok, although it's missing some key entries like the gateway address. Here's what's on my device snippets from my device:
# the dhcp server itself. The pool-match-order was to explicitly deal with running the server on multiple interfaces / subnets.
set system services dhcp-local-server pool-match-order ip-address-first
set system services dhcp-local-server group Lab-254 interface ge-0/3/1.254
# the dhcp pool; note the "range" option you were looking for
set access address-assignment pool lab-254 family inet network 192.168.254.0/24
set access address-assignment pool lab-254 family inet range 210-239 low 192.168.254.210
set access address-assignment pool lab-254 family inet range 210-239 high 192.168.254.239
set access address-assignment pool lab-254 family inet dhcp-attributes maximum-lease-time 28800
set access address-assignment pool lab-254 family inet dhcp-attributes grace-period 3600
set access address-assignment pool lab-254 family inet dhcp-attributes name-server 8.8.8.8
set access address-assignment pool lab-254 family inet dhcp-attributes name-server 4.2.2.1
set access address-assignment pool lab-254 family inet dhcp-attributes router 192.168.254.1
-Chad
-----Original Message-----
From: juniper-nsp [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of Sebastian Bermeo
Sent: Monday, November 09, 2015 8:16 PM
Cc: juniper-nsp at puck.nether.net
Subject: Re: [j-nsp] DHCP SERVER in m7i
If this device not support this service, what kind of configuration may I
use to run this function? I need a example, I'm learning over junos.
On Monday, 9 November 2015, Chad Myers <Chad.Myers at theice.com> wrote:
> There was a version of Junos where the dhcp server simply wouldn't work on
> a M7i. Digging into traceoptions found that it was because it was trying
> to synchronize with the dhcp process on the backup routing engine to
> determine who should be active. Minor detail that the M7i can't have a
> second RE was overlooked so the dhcp server never went active.
>
> I don't remember the specific code version I was running at the time, but
> I think it was something in 11.4 or 12.1.
>
> -Chad
>
> -----Original Message-----
> From: juniper-nsp [mailto:juniper-nsp-bounces at puck.nether.net
> <javascript:;>] On Behalf Of Sebastian Bermeo
> Sent: Monday, November 09, 2015 3:48 PM
> To: juniper-nsp at puck.nether.net <javascript:;>
> Subject: [j-nsp] DHCP SERVER in m7i
>
> Hi
>
> I was trying to configure a dhcp server in a m7i, something like this:
>
> set interfaces ge-0/0/0 unit 7 description visits
> set interfaces ge-0/0/0 unit 7 vlan-id 7
> set interfaces ge-0/0/0 unit 7 family inet address 192.168.7.1/24
> set interfaces ge-0/0/0 unit 7 family iso
>
> set system services dhcp-local-server group dhcp-visitas interface
> ge-0/0/0.7
> set access address-assignment pool pool-visitas family inet
> set access address-assignment pool pool-visitas family inet network
> 192.168.7.0/24
> set access address-assignment pool pool-visitas family inet dhcp-attributes
> name-server 192.168.1.3
>
> Its correct this configuration?
>
> In addicion in this range of address, I need to start the first
> dhcp-address in 192.168.7.64 and end in 192.168.7.254, exists a sentence
> may I use to configure this?
>
> I use JUNOS OS 11.4R7.5.
>
> Thanks for any answer.
>
> Regards.
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net <javascript:;>
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>
> ________________________________
>
> This message may contain confidential information and is intended for
> specific recipients unless explicitly noted otherwise. If you have reason
> to believe you are not an intended recipient of this message, please delete
> it and notify the sender. This message may not represent the opinion of
> Intercontinental Exchange, Inc. (ICE), its subsidiaries or affiliates, and
> does not constitute a contract or guarantee. Unencrypted electronic mail is
> not secure and the recipient of this message is expected to provide
> safeguards from viruses and pursue alternate means of communication where
> privacy or a binding message is desired.
>
_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
________________________________
This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Intercontinental Exchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.
More information about the juniper-nsp
mailing list