Junos
Highlighted
Junos

MX80 as dhcp server and dhcp-relay switch

Thursday

Good day,
I try to configure MX80 as dhcp server to work with dhcp-relay switches.

The scheme is simple you can see it in attach

my config 

set interfaces xe-1/2/0 flexible-vlan-tagging
set interfaces xe-1/2/0 auto-configure vlan-ranges dynamic-profile VLAN-IPoE accept dhcp-v4
set interfaces xe-1/2/0 auto-configure vlan-ranges dynamic-profile VLAN-IPoE ranges 103-105
set interfaces xe-1/2/0 auto-configure remove-when-no-subscribers
set interfaces xe-1/2/0 unit 103 description A
set interfaces xe-1/2/0 unit 103 vlan-id 103
set interfaces xe-1/2/0 unit 103 family inet address 10.1.1.1/30
set interfaces xe-1/2/0 unit 104 description B
set interfaces xe-1/2/0 unit 104 vlan-id 104
set interfaces xe-1/2/0 unit 104 family inet address 10.1.2.1/30
set interfaces xe-1/2/0 unit 105 description C
set interfaces xe-1/2/0 unit 105 vlan-id 105
set interfaces xe-1/2/0 unit 105 family inet address 10.1.3.1/30

DHCP config

set system services dhcp-local-server access-profile BILLING
set system services dhcp-local-server group IPoE authentication password IPoE
set system services dhcp-local-server group IPoE authentication username-include user-prefix OPT82NOIP
set system services dhcp-local-server group IPoE authentication username-include mac-address
set system services dhcp-local-server group IPoE dynamic-profile CLIENTS-IPoE
set system services dhcp-local-server group IPoE interface demux0.0

I see that dhcp packets incoming on interface xe-/1/2/0 but offer from juniper doesn't respond
Can you help with that, I assume that I have the wrong configuration.
Thanks

 

Attachments

3 REPLIES 3
Highlighted
Junos

Re: MX80 as dhcp server and dhcp-relay switch

Thursday

Hello,

 

Which version are you running?

Can you show the output of "show system subscriber-management statistics" if it's 15.1 or newer JUNOS?

 

Best regards,

Sergii

-------------------------------------------------------------------

Please accept the solution if your problem is resolved Smiley Happy

-------------------------------------------------------------------

Highlighted
Junos

Re: MX80 as dhcp server and dhcp-relay switch

[ Edited ]
Thursday

Model: mx80
Junos: 15.1R7.9

 

dmitry@Mine-Juniper-GW# run show system subscriber-management statistics
Session Manager started @ Sat Mar 21 15:38:56 2020
Session Manager cleared @ Fri Mar 27 03:34:12 2020
--------------------------------------------------------------
                     Packet Statistics
--------------------------------------------------------------
I/O Statistics:
--------------------------------------------------------------
    Rx Statistics
        packets                          : 24159
        unsupported udp protocols        : 171
    Tx Statistics
        packets                          : 22173
  Layer 3 Statistics
    Rx Statistics
        packets                          : 24159
    Tx Statistics
        packets                          : 730
NET Statistics:
--------------------------------------------------------------
  ARP Statistics
    Rx Statistics
        request packets                  : 22044
        reply packets                    : 112
        invalid requests                 : 564
        unknown destination addresses    : 112
        probes                           : 37
    Tx Statistics
        reply packets                    : 21443
        request packets                  : 0
        proxy-arp reply packets          : 19418
  ICMP Statistics
    Rx Statistics
        packets:                         : 38
        #3                               : 4
        #5                               : 1
        echoes                           : 33
    Tx Statistics
        packets:                         : 33
        echo replies                     : 33
        internal errors                  : 5

 

I suggesting that the Juniper should be allowed to receive packets from dhсp-relay with IP 10.1.1.2  via vlan 103

On dhcp-relay router (10.1.1.2)  I set that the dhcp-server on 10.1.1.1

Highlighted
Junos

Re: MX80 as dhcp server and dhcp-relay switch

[ Edited ]
4 hours ago

Can you please check DHCP local server statistics:

show dhcp server statistics

 

Best regards,

Sergii

-------------------------------------------------------------------

Please accept the solution if your problem is resolved Smiley Happy

-------------------------------------------------------------------