Ruijie Community

Title: dhcp option 33 on ruijie switch [Print this page]

Author: Dmitry Bairoff    Time: 2023-2-1 22:35
Title: dhcp option 33 on ruijie switch
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.

Author: GTAC-Patrick    Time: 2023-2-2 09:55
May I know what your switch model is and current firmware version?



Author: Dmitry Bairoff    Time: 2023-2-2 15:22
Patrick replied at 2023-2-2 09:55
May I know what your switch model is and current firmware version?

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


Author: Dmitry Bairoff    Time: 2023-2-2 15:27
Patrick replied at 2023-2-2 09:55
May I know what your switch model is and current firmware version?

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?

Author: GTAC-Patrick    Time: 2023-2-2 21:39
Dmitry Bairoff replied at 2023-2-2 15:27
Today the document about command reference is loading well, so i found this:
The following  exampl ...
The 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:



Author: dmitry@bairoff.    Time: 2023-2-10 21:51
Patrick replied at 2023-2-2 21:39
Dmitry Bairoff replied at 2023-2-2 15:27
Today the document about command reference is loading well, ...

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









Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2