Testdate: 2023-12-28
Version: 1.3.5
Upgrade Version: 1.5-rolling-202312261220
Version: 1.3.5
Upgrade Version: 1.5-rolling-202312261220
This simple structure shows how to configure a DHCP Relay over a GRE Bridge interface.
The topology has 3 VyOS routers and one client. Between the DHCP Server and the DHCP Relay is a GRE tunnel. The transport VyOS represent a large Network.
First, we configure the transport network and the Tunnel interface.
Transport:
_include/transport.conf
DHCP-Server
_include/dhcp-server.conf
DHCP-Relay
_include/dhcp-relay.conf
After this, we need the DHCP-Server and Relay configuration. To get a testable result, we just have one IP in the DHCP range. Expand it as you need it.
DHCP-Server
_include/dhcp-server.conf
DHCP-Relay
_include/dhcp-relay.conf
Ping the Client from the DHCP Server.
vyos@dhcp-server:~$ ping 192.168.0.30 count 4
PING 192.168.0.30 (192.168.0.30) 56(84) bytes of data.
64 bytes from 192.168.0.30: icmp_seq=1 ttl=63 time=0.960 ms
64 bytes from 192.168.0.30: icmp_seq=2 ttl=63 time=1.03 ms
64 bytes from 192.168.0.30: icmp_seq=3 ttl=63 time=1.18 ms
64 bytes from 192.168.0.30: icmp_seq=4 ttl=63 time=1.20 ms
--- 192.168.0.30 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7ms
rtt min/avg/max/mdev = 0.960/1.093/1.200/0.100 ms
And show all DHCP Leases
vyos@dhcp-server:~$ show dhcp server leases
IP address Hardware address State Lease start Lease expiration Remaining Pool Hostname
------------ ------------------ ------- ------------------- ------------------- ----------- ---------- ----------
192.168.0.30 00:50:79:66:68:05 active 2023/12/28 12:34:56 2023/12/29 12:34:56 23:59:16 DHCPTun100 VPCS