Routing

 View Only
last person joined: 4 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
Expand all | Collapse all

DCHP on VRF doesnt work properly

  • 1.  DCHP on VRF doesnt work properly

    Posted 11-26-2017 15:38

    Hello,

     

    I am trying to provide dhcp to a vrf but is not possible. It doesnt take dhcp, or takes IP from other VRFs.

    Can anyone help me please?

     

    The configuration is as below:

    ae0

    unit 2020 {
        vlan-id 2020;
        family inet {
            address 10.2.20.1/24;

    }}

    OPT-0 {
        instance-type virtual-router;
        system {
            services {
                dhcp-local-server {
                    group g1 {
                        interface ae0.2020;
                    }
                }
            }
        }
        access {
            address-assignment {
                ##
                ## Warning: requires 'subscriber-address-assignment' license
                ##
                pool p1 {
                    family inet {
                        network 10.2.20.0/24;
                        range r1 {
                            low 10.2.20.50;
                            high 10.2.20.200;
                        }
                        dhcp-attributes {
                            name-server {
                                8.8.8.8;
                            }
                            router {
                                10.2.20.1;
                            }
                        }                   
                    }
                }
            }
        }
        interface ae0.2020

     

    Thank you

    Ernest



  • 2.  RE: DCHP on VRF doesnt work properly

     
    Posted 11-26-2017 18:20

    vlan-tagging configured on ae0? l3-interface configured on vlan? Any firewall filters on lo0?



  • 3.  RE: DCHP on VRF doesnt work properly

     
    Posted 11-26-2017 21:30

    Hi,

     

    Please share the below logs.

     

    DHCP# show system processes dhcp-service
    traceoptions {
        file dhcp size 500m;
        level all;
        flag all;
    }

    {master}[edit]
    DHCP# show system processes general-authentication-service
    traceoptions {
        file authd size 1000m files 10;
        flag radius;
        flag all;
    }

     

    Regards,

    Rahul N



  • 4.  RE: DCHP on VRF doesnt work properly

    Posted 11-26-2017 22:33

    Hi,

    Yes as i have shown, i have configured vlan tagging on ae0., and it has also in IP. I have also used another scenario, where the vlan tagging on ae0 is briged to an irb interface. None of this scenario works. I dont have any filters at all.

    Thank you



  • 5.  RE: DCHP on VRF doesnt work properly

    Posted 11-26-2017 22:39

                ## Warning: requires 'subscriber-address-assignment' license

     

    check show system licenses , if demo license expired you will not be able to use this feature without installing correct license or reinstalling junos



  • 6.  RE: DCHP on VRF doesnt work properly

    Posted 11-26-2017 23:39

    Does this mean i will have this trouble because of the license?

    Thanks a lot



  • 7.  RE: DCHP on VRF doesnt work properly

    Posted 11-27-2017 02:41

    Hello, there is a problem of ip of dhcp leaking from one vrf to the other.

    So the license is causing this?

     

    Thank you

    Ernest



  • 8.  RE: DCHP on VRF doesnt work properly

     
    Posted 11-27-2017 04:52

    Hi,

     

    Can you please explain the issue? DHCP client is getting IP address and route is created in MX?

    Currently you're unable to leak the route b/w the VRF?

     

    Please share the below output.

     

    show dhcp server binding routing-instance OPT-0

    show system license

    show route table <VRF>

     

    Regards,

    Rahul



  • 9.  RE: DCHP on VRF doesnt work properly

    Posted 11-27-2017 08:47

    The DHCP cant provide any IP, or sometimes provides an IP from another vrf that doesnt make sense, is it an effect of the license?

    _________________________________________________________________________________

    show dhcp server binding routing-instance OPT-0

    ----Doesnt show anything

    _________________________________________________________________________________

    -->show system license

    License usage:
                                     Licenses     Licenses    Licenses    Expiry
      Feature name                       used    installed      needed
      subscriber-address-assignment         1            0           1    invalid

      scale-subscriber                      0         1000           0    permanent
      scale-l2tp                            0         1000           0    permanent
      scale-mobile-ip                       0         1000           0    permanent
      mobile-next-scaling                   0         1000           0    permanent
      mobile-next-http-app-scaling          0         1000           0    permanent
      mobile-next-policy-prepaid-scaling        0      1000          0    permanent

     

    _________________________________________________________________________________

    show route table <VRF>

    -->root@dc2core> show route table OPT-0

    OPT-0.inet.0: 9 destinations, 10 routes (9 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    0.0.0.0/0          *[Static/5] 17:23:36
                        > to 10.2.200.1 via ge-1/1/1.0
                        [Static/25] 17:23:43
                        > to 10.2.1.4 via irb.2001

    10.2.1.0/24        *[Direct/0] 17:23:43

                             > via irb.2001

    _________________________________________________________________________________

    Thank you

    Ernest



  • 10.  RE: DCHP on VRF doesnt work properly

     
    Posted 11-27-2017 08:56

    Hi,

     

    Yes it look to be license issue. Looks like you changed the configuration from AE to irb.

     

    Can you please share the currrent configuration and below logs to confirm it's a license issue?

     

    Please share the below logs.

     

    DHCP# show system processes dhcp-service
    traceoptions {
        file dhcp size 500m;
        level all;
        flag all;
    }

    {master}[edit]
    DHCP# show system processes general-authentication-service
    traceoptions {
        file authd size 1000m files 10;
        flag radius;
        flag all;
    }

     

    Regards.

    Rahul N



  • 11.  RE: DCHP on VRF doesnt work properly

    Posted 11-27-2017 12:36

    Hello,

     

    I have 2 routers that have the same issue, LOG-1 from the first router and LOG-2 from the second router.

    Please have a view

     

    Thank you

    Ernest

    Attachment(s)

    txt
    LOG-2.txt   36 KB 1 version
    txt
    LOG-1.txt   184 KB 1 version


  • 12.  RE: DCHP on VRF doesnt work properly

     
    Posted 11-27-2017 18:52

    Hi Ernest,

     

    Only DHCP logs were enabled.

    Client is failing due to license issue. Please find the below error log.

     

    Nov 27 20:39:16.719056 DH_SVC_AUTHENTICATE_LICENSE: Authentication failed due to license error. Total license failures 6153

    Nov 27 20:41:13.982914 DH_SVC_AUTHENTICATE_LICENSE: Authentication failed due to license error. Total license failures 6163

     

    Regards,

    Rahul



  • 13.  RE: DCHP on VRF doesnt work properly
    Best Answer

    Posted 11-27-2017 23:27

    @nestiern wrote:

    _______________________________________________________________

    -->show system license

    License usage:
                                     Licenses     Licenses    Licenses    Expiry
      Feature name                       used    installed      needed
      subscriber-address-assignment         1            0           1    invalid

     



    subscriber-address-assignment license in invalid state , this means that trial period is expired , so now you should buy license