Address reservation



  • Hi everyone

    I would like to assign specific IP to 2 devices connecting to the Onion's AP (by their Mac address or device name).
    Search the forum but only found details regarding the Onion's own ip...
    Could someone point me in the right direction?

    Cheers : )



  • Did a quick search on "lede dhcp server" and "openwrt dhcp server" and got a boatload of responses, many in common.

    In general, get a dhcp server running on your O2(+?) device. Provision the dhcp config file with entries to tie the end devices by MAC address to IP address.

    Give that a shot. If it looks like you're making progress I can certainly elaborate on some details.

    take care!
    Bill



  • This looks like a good core document: https://openwrt.org/docs/guide-user/base-system/dhcp_configuration

    --Bill



  • Thanks for the info Bill : )



  • Ok, quite simple actually : )

    @omega-ABCD.local/console
    open Editor, navigate to /etc/config and edit dhcp file.

    At the end of the file, add the following:

    config host
    option name 'name of your host'
    option ip 'XXX.XXX.X.X' // address ip you want to assign this device.
    option mac 'XX:XX:XX:XX:XX:XX' // // mac address this device.

    you can add as many as you want.

    Thanks for your help!

    Cheers
    Steph



Looks like your connection to Community was lost, please wait while we try to reconnect.