I would like to test the DHCP client that I wrote on Ubuntu 16.04.6 LTS. I would like to do it locally on my laptop i.e. send and receive DHCP packets inside.
Here is what I tried:
- created two dummy interfaces:
dummy0,dummy1 - created bridge for these 2 interfaces:
br0
The goal is to send DHCP discover from dummy0 and receive it on dummy1, I'm sending DHCP discover on dummy0, unfortunately I don't see any packets on dummy1 interface. If it could be received the next step would be to run DHCP server on dummy1 to test how my client is doing.
I see DHCP discover in wireshark on dummy0 interface. I see nothing on dummy1. Additionally: I see packet on br0.
I assume there may be better way to do this, could you please tell me how this can be done?