DHCP Client Options for WAN interface (FTTH)

Hi,

There has been several discussions / requests on the forum to have the possibility to configure DHCP client options on the WAN interface as their ISPs'DHCP servers require these options set to provide a lease. (from what I found, ref here or here or here or here or here, all lead to believe this is not possible)

it seems SFOS relies on busybox udhcp client to manage WAN DHCP connectivity.

Accessing the console shows udhcpc version used provides the functionnality (at least in v20) to set the vendor ID option (60) through the -V flag and other options (from the client to server, -x flag). 

Running manually the command leads to two udhcpc process in // (one managed by the Sophos processes which does not have the -V flag, one from the manual command with the -V flag. Killing the original one, has no effect as it is respawned automatically)

two questions then:

  • Is there somewhere I can configure the -V flag (console / ssh) so it is added to the default command? (as on UTM some years ago...)
  • Can we expect this configurable in the web gui in a future release?

Thanks,

BusyBox v1.31.1 (2023-11-01 06:40:08 UTC) multi-call binary.

Usage: udhcpc [-fbqvRB] [-a[MSEC]] [-t N] [-T SEC] [-A SEC/-n]
        [-i IFACE] [-s PROG] [-p PIDFILE]
        [-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O OPT]...

        -i IFACE        Interface to use (default eth0)
        -s PROG         Run PROG at DHCP events (default /scripts/dhclient.sh)
        -p FILE         Create pidfile
        -B              Request broadcast replies
        -t N            Send up to N discover packets (default 3)
        -T SEC          Pause between packets (default 3)
        -A SEC          Wait if lease is not obtained (default 20)
        -b              Background if lease is not obtained
        -n              Exit if lease is not obtained
        -q              Exit after obtaining lease
        -R              Release IP on exit
        -f              Run in foreground
        -S              Log to syslog too
        -a[MSEC]        Validate offered address with ARP ping
        -r IP           Request this IP address
        -o              Don't request any options (unless -O is given)
        -O OPT          Request option OPT from server (cumulative)
        -x OPT:VAL      Include option OPT in sent packets (cumulative)
                        Examples of string, numeric, and hex byte opts:
                        -x hostname:bbox - option 12
                        -x lease:3600 - option 51 (lease time)
                        -x 0x3d:0100BEEFC0FFEE - option 61 (client id)
                        -x 14:'"dumpfile"' - option 14 (shell-quoted)
        -F NAME         Ask server to update DNS mapping for NAME
        -V VENDOR       Vendor identifier (default 'udhcp VERSION')
        -C              Don't send MAC as client identifier
        -v              Verbose



Added TAGs
[edited by: Raphael Alganes at 12:29 AM (GMT -8) on 26 Feb 2024]