This article explains how to configure extended DHCP server configuration under routing instance virtual router (VR) on an EX/QFX switch.
Routing instances are a collection of routing tables, interfaces, and routing protocol parameters. The set of interfaces belongs to the routing tables, and the routing protocol parameters control the information in the routing tables. Therefore, if we create a DHCP pool under default routing instance, it will not act for other routing instances. Clients are connected via a specific routing instance that will be able to get the IP address if the pool has been defined under the specific routing instance. T he example below shows how to create a pool for the clients under a routing instance and mapping the desired interface. Routing Instance R1 consists of Client A connected to ge-0/0/0 which is configured with VLAN10. VLAN10 is mapped to irb.10.
set vlans VLAN10 vlan-id 10 set interfaces irb unit 10 family inet address 10.10.10.1/24 set vlans VLAN10 l3-interface irb.10 set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode access set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members VLAN10
set routing-instances R1 instance-type virtual-router set routing-instances R1 interface irb.10
set routing-instances R1 access address-assignment pool Client family inet network 10.10.10.0/24 set routing-instances R1 access address-assignment pool Client family inet range host low 10.10.10.10 set routing-instances R1 access address-assignment pool Client family inet range host high 10.10.10.100
set routing-instances R1 access address-assignment pool Client family inet dhcp-attributes name-server 8.8.8.8 set routing-instances R1 access address-assignment pool Client family inet dhcp-attributes router 10.10.10.1
set routing-instances R1 system services dhcp-local-server group test interface irb.10
show dhcp server binding routing-instance R1 show dhcp server statistics routing-instance R1