DHCP-RELAY between 2 vlan not working

Have a vyos 1.3 running about 20 vlan’s
Have setup dhcp-relay on vlan 20 pointing to dhcp-server on vlan120.
Devices on vlan20 dont get IP adresses.

When replace vyos with Cisco router setup with exact same vlan and IP adresses, (using ip helper)
All devices are getting correct IP adresses.

What can be wrong?

Set service dhcp-relay interface eth 1.20
Set service dhcp-relay server IP adresse og dhcp-server.

BR
Ofh

You need to specify both involved interfaces.
Look at the example configuration in our docs

I Have the following configuration to get it work (I Think)

interfaces {
ethernet eth0 {
address 10.171.80.103/21
hw-id 00:1b:21:54:43:0b
}
ethernet eth1 {
hw-id 00:1a:6b:51:3a:56
}
vif 20 {
address 10.1.20.1/24
description VLAN20
}
}
vif 120 {
address 10.1.120.1/24
description VLAN120
}

service {
dhcp-relay {
interface eth1.20
server 10.1.120.100
}

Is that correct?

BR

Hi @ofh
You need to set inbound and outbound interface

service {
dhcp-relay {
interface eth1.20
interface eth1.120
server 10.1.120.100
}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.