DHCP Server only on specific interfaces


#1

Hi!
I want to accomplish the following setup:

A VyOS Appliance with three interfaces
eth0 – address over DHCP (WAN)
eth1 – address 192.168.1.254/24 (LAN1)
eth2 – address 10.0.0.254/24 (LAN2)

I want clients on eth2 to receive addresses via DHCP and clients on eth1 to be manually configured.

Is this scenario doable?


#2

Yes, should be pretty straightforward


#3

But how?
I didn’t find a way to exclude interfaces from the DHCP service or to run it only on one interface :confused:


#4

The DHCP server listens on the SUBNET. You don’t have to exclude interfaces or worry about what interfaces it is listening on.


#5

But I still get a DHCP address when I connect to eth1 even though I only configured the dhcp server to listen on 10.0.0.0/24 only …


#6

use vlans to separate broadcast domains


#7

You have something misconfigured.

You shouldn’t need that when they are physically separated