vMX
Showing results for 
Search instead for 
Do you mean 
Reply
Visitor
Posts: 8
Registered: ‎04-05-2017
0 Kudos

DHCP Relay from a routing-instance

A vMX router failing to forward DHCP OFFER packet from server to Client. 

Topology Note: DHCP Server and DHCP Client in different routing-instance. 

root@vmx1# show | no-more | display set

set version 16.1R4.7

set system host-name vmx1

set interfaces ge-0/0/1 unit 0 family inet address 10.0.0.1/24

set interfaces ge-0/0/2 unit 0 family inet address 192.168.0.1/24

set forwarding-options dhcp-relay server-group DummyConfig

set routing-options interface-routes rib-group inet DHCP

set routing-options rib-groups DHCP import-rib inet.0

set routing-options rib-groups DHCP import-rib DHCP.inet.0

set routing-instances DHCP instance-type virtual-router

set routing-instances DHCP interface ge-0/0/1.0

set routing-instances DHCP routing-options interface-routes rib-group inet DHCP

set routing-instances DHCP forwarding-options dhcp-relay server-group DHCP-SERVER 192.168.0.2

set routing-instances DHCP forwarding-options dhcp-relay active-server-group DHCP-SERVER

set routing-instances DHCP forwarding-options dhcp-relay group ALL interface ge-0/0/1.0

Highlighted
Distinguished Expert
Posts: 573
Registered: ‎08-23-2015
0 Kudos

Re: DHCP Relay from a routing-instance

Hello,

 

For configuration part, you can refer this link.

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB30584

 

Regards,

 

Rushi

Visitor
Posts: 8
Registered: ‎04-05-2017
0 Kudos

Re: DHCP Relay from a routing-instance

Hello Rushi,

 

I went through kb which is for QFX. Wondering how DHCP server i.e. 20.0.0.2 is reachable from VRF.inet.0. I m trying to relate configs to my vMX. Added some configs regarding forwarding-options from kb to my earlier config but it didn't work. Config is something like this.

 

manoz@vmx1# show | display set

set version 16.1R4.7

set system host-name vmx1

 

set interfaces ge-0/0/1 unit 0 family inet address 10.0.0.1/24

set interfaces ge-0/0/2 unit 0 family inet address 192.168.0.1/24

set forwarding-options dhcp-relay forward-only-replies

set routing-options interface-routes rib-group inet DHCP-RELAY

set routing-options rib-groups DHCP-RELAY import-rib inet.0

set routing-options rib-groups DHCP-RELAY import-rib DHCP-RELAY.inet.0

set routing-instances DHCP-RELAY instance-type virtual-router

set routing-instances DHCP-RELAY interface ge-0/0/1.0

set routing-instances DHCP-RELAY routing-options interface-routes rib-group inet DHCP-RELAY

set routing-instances DHCP-RELAY forwarding-options dhcp-relay overrides no-allow-snooped-clients

set routing-instances DHCP-RELAY forwarding-options dhcp-relay forward-only routing-instance default

set routing-instances DHCP-RELAY forwarding-options dhcp-relay server-group DHCP-RELAY 192.168.0.2

set routing-instances DHCP-RELAY forwarding-options dhcp-relay active-server-group DHCP-RELAY

set routing-instances DHCP-RELAY forwarding-options dhcp-relay route-suppression destination

set routing-instances DHCP-RELAY forwarding-options dhcp-relay group DHCP-RELAY active-server-group DHCP-RELAY

set routing-instances DHCP-RELAY forwarding-options dhcp-relay group DHCP-RELAY interface ge-0/0/1.0