Dear team! How to deliver static routing entry to hosts in vlan using dhcp option 33? What is the syntax of this command? Unfortunatelly ling to command refference guide (https://www.ruijienetworks.com/resources/preview/75951) on the model docs page (https://www.ruijienetworks.com/service/DocSearchList_3_1388_0_0) leads to nothing. |
May I know what your switch model is and current firmware version? |
Patrick replied at 2023-2-2 09:55 I'm not besides the switch now, not sure about exact version of software, but i believe it's the latest available on the web. The model is RG-S2910-24GT4SFP-UP-H |
Patrick replied at 2023-2-2 09:55 Today the document about command reference is loading well, so i found this: The following exampledefines the option code 33, which provides the DHCP client with the static route information. The DHCP client will install two static routes: 1) the destination network 172.16.12.0 and the gateway 192.168.12.12, 2) the destination network 172.16.16.0 and the gateway 192.168.12.16.option 33 ip 172.16.12.0 192.168.12.12 172.16.16.0 192.168.12.16 with this command: option 33 ip 172.16.12.0 192.168.12.12 172.16.16.0 192.168.12.16 But how to define mask for these networks? |
Dmitry Bairoff replied at 2023-2-2 15:27The syntax of this command is correct. option 33 ip [Destination address] [Next-hop for host] Option 33: After a DHCP host receives DHCP messages with this option, it adds the classful static routes contained in the option to its routing-table. In classful routes, destination address masks are natural masks and cannot be used to divide subnets. Please kindly check this statement from an RFC official document: |
Patrick replied at 2023-2-2 21:39 Hi Patrick. You mean that for 192.168.x.y /24 mask will be used, and for 172.16.x.y mask will be /16? If so, the example in the document is not accurate, it advises to set gateway192.168.12.12 for the network 172.16.12.0 and gateway 192.168.12.16 for the network 172.16.16.0, while both 172.16.12.0 and 172.16.16.0 are within one same network 172.16.0.0/16 |
This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.
More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.
©2000-2023 Ruijie Networks Co,Ltd