Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DHCP Server option 121 - syntax

Hi everyone,

I'm trying to integrate the automatic distribution of static routes for my DHCP clients.
This is part of option 121 - classless-static-routes

I have added the relevant function through SSH and assigned the value entry a string type.

Based on this article, outlining the general functionality of static routes for DHCP, I tried to enter the default route and static routes, however the XG returns "Unknown Parameter" for the subnet, default route, subnet, static route entry.

As I have not found a full syntax documentation for the XG online, I kindly ask for the correct syntax for this option for the XG Firewall.

Thanks!

 


This thread was automatically locked due to age.
  • Can you show us your syntax? Basically always auto fill with "Double tab". 

    See: https://support.sophos.com/support/s/article/KB-000035925?language=en_US

    __________________________________________________________________________________________________________________

  • Sure,
    I have adapted the commands based on the article you linked.

    For understanding, the LAN_DHCP server is addressing the 10.0.0.0/24 subnet, itself having the IP of 10.0.0.1

    My first command was

    system dhcp dhcp-options add optioncode 121 optionname classless-static-route optiontype string

    which was accepted by the cli

    I then tried to add the static route 10.1.0.0/24,10.0.0.1 to the default route of 0.0.0.0/0,10.0.0.1

    system dhcp dhcp-options binding add dhcpname LAN_DHCP optionname classless-static-route(121) value ‘0.0.0.0/0,10.0.0.1,10.1.0.0/24,10.0.0.1’

    Independent of how I write the last part after "value", the clients do not receive the second, static route