[Python] What happens when DHCPDiscovery is received on 2nd NIC?

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have been looking into using this Python DHCP server for running a DHCP on my 2nd NIC https://github.com/niccokunzmann/simple_dhcp_server/releases/tag/1.0.6

    I am testing using the listener.py file listener.py and it doesn't seem to work. I have been chatting with ChatGPT and concluded it is time for a human to share some knowledge.

    While I am receiving DHCPDiscovery using Wireshark on 0.0.0.0 on NIC2, listener.py is not receiving it while listening to 0.0.0.0. It makes sense for me that only one NIC's "0.0.0.0" can be listened to, but how do i then ensure i can receive from NIC2?

    If i then connect a computer to my network while listening then the listener.py does indeed capture it and this also includes the computer I am using for testing. So it all comes down to the NIC2

    Anyone can explain how it works when you have two NICs and the secoundary is receiving packets on 0.0.0.0 and what I can do to listen to them?

    SETUP

    I am running on Windows, using 192.168.137.1 as static IP for NIC2 NIC2 is connected directly to a different computer with no static ip. NIC1 is connected to general home network.

    Continue reading...

Compartilhe esta Página