Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

Set Switch as a DHCP server, using DHCP relay. Which takes precedence over the other?

$
0
0

Hi folk, 

Between configuring a switch as a DHCP server and deploying simultaneous DHCP reply.
Which configuration takes precedence over the other?

Topology:

[Client PC] --- ge-0/0/0 [EX Switch] ge0/0/1 --- [DHCP Server: 20.20.20.2]

    • Client PC is in VLAN 10.

 

    • The DHCP server is in VLAN 20 with the 20.20.20.2 IP address.

 

  • The EX switch is configured as DHCP relay and performs inter VLAN routing between VLANs 10 and 20.


Configuration
:

set vlans vlan10 vlan-id 10
set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members vlan10
set vlans vlan10 l3-interface vlan.10
set interfaces vlan unit 10 family inet address 10.10.10.1/24

set vlans vlan20 vlan-id 20
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan20
set interfaces vlan unit 20 family inet address 20.20.20.1/24
set vlans vlan20 l3-interface vlan.20

// dhcp relay
set forwarding-options helpers bootp server 20.20.20.2
set forwarding-options helpers bootp interface vlan.10

// as a dhcp server
set system services dhcp pool 10.10.10.0/24 address-range low 10.10.10.2
set system services dhcp pool 10.10.10.0/24 address-range high 10.10.10.252
set system services dhcp pool 10.10.10.0/24 router 10.10.10.1

 Thank all, Smiley Happy 


Viewing all articles
Browse latest Browse all 10307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>