Routing
Routing

Subscriber Management with DHCP Relay not working inside Routing-Instance !

11.23.16   |  
‎11-23-2016 07:07 PM

Hi All

 

I am trying to configure Subscriber Management on Juniper MX with DHCP Relay inside routing instance but its not working for my setup.

 

Below is the configuration of Inteface , Dynamic Profile and DHCP Relay which I am using.

 

 

I am unable to see any DHCP Discover Packets at all with this config. ge-1/0/7.0 is the Interface connected to DHCP Server.

 

xxxx@MX80# show interfaces ge-1/1/9
flexible-vlan-tagging;
auto-configure {
vlan-ranges {
dynamic-profile VLAN-PROF-Test-RI {
accept any;
ranges {
any;
}
}
}
remove-when-no-subscribers;
}

[edit]

 

xxxx@MX80# show dynamic-profiles VLAN-PROF-Test-RI
routing-instances {
"$junos-routing-instance" {
interface "$junos-interface-name";
}
}
interfaces {
"$junos-interface-ifd-name" {
unit "$junos-interface-unit" {
proxy-arp;
vlan-id "$junos-vlan-id";
family inet {
mac-validate strict;
unnumbered-address "$junos-loopback-interface" preferred-source-address "$junos-preferred-source-address";
}
}
}
}

 

xxxx@MX80# show interfaces lo0.2
f

family inet {
address 192.168.1.1/32;
}

 

xxxx@MX80# show routing-instances VRF-Internet
instance-type vrf;
access-profile DHCP;
interface lt-0/0/0.701;
interface ge-1/0/7.0;
interface lo0.2;
interface ps119.0;
route-distinguisher 65001:1;
vrf-import Internet-import;
vrf-export Internet-export;
vrf-table-label;
routing-options {
static {
route 0.0.0.0/0 next-hop 172.16.1.1;
route 10.61.20.12/32 next-hop 172.16.1.1;
}
}
forwarding-options {
dhcp-relay {
server-group {
Retailer1 {
172.16.1.1;
}
group Retailer3 {
active-server-group Retailer1;
authentication {
username-include {
mac-address;
}
}
interface ge-1/1/9.0;
}
}
}
protocols {
ospf {
export Export_All_OSPF_VRF;
area 0.0.0.7 {
interface lt-0/0/0.701;
}
}
}

[edit]
xxxx@MX80#

 

xxxx@MX80# show access profile DHCP
authentication-order none;

[edit]
xxxx@MX80#

 

x.x.x.@MX80# show interfaces ge-1/0/7
unit 0 {
family inet {
address 172.16.1.2/30;
}
}

[edit]
x.x.x@MX80#

2 REPLIES
Routing

Re: Subscriber Management with DHCP Relay not working inside Routing-Instance !

10.10.17   |  
a week ago

 

Was this issue fixed and what was the fix?

 

A couple of things to check:

 

  • Is the DHCP server reachable from the VRF on MX?
  • On the DHCP server, check if the packets are hitting the configured DHCP scope on the server . The source address must be from the MX lo0.0.Also, try to hardcode lo0.0 as well as the preferred address which will be  the same as lo0.0    in your case.

 

Thanks and Regards,

Mohan

Routing

Re: Subscriber Management with DHCP Relay not working inside Routing-Instance !

10.12.17   |  
a week ago

Hi,

 

Please move the VLAN interface under RI using predefined-variable.

 

MX# show dynamic-profiles VLAN-PROF-Test-RI
predefined-variable-defaults {
routing-instances VRF-Internet;
}

 

MX# show interfaces ge-0/1/9
flexible-vlan-tagging;
auto-configure {
vlan-ranges {
dynamic-profile VLAN-PROF-Test-RI {
accept any;
ranges {
any;
}
}
}
remove-when-no-subscribers;
}

 

xxxx@MX80# show dynamic-profiles VLAN-PROF-Test-RI
routing-instances {
"$junos-routing-instance" {
interface "$junos-interface-name";
}
}
interfaces {
"$junos-interface-ifd-name" {
unit "$junos-interface-unit" {
proxy-arp;
vlan-id "$junos-vlan-id";
family inet {
mac-validate strict;
unnumbered-address "$junos-loopback-interface" preferred-source-address "$junos-preferred-source-address";
}
}
}
}