[ATP/FLEX] How to add static route via device DHCP option
This article provides configuration guide on how to set the DHCP option 33 on Nebula. Assume we would like to add static route on client OS routing table, instead of adding on gateway, we can add DHCP option 33 for clients. This example illustrates how to configure DHCP option for static routing in client.
Configurations
Go to Configure > Firewall > Interface, and edit lan1 interface setting
Click Add new to create DHCP option.
Code is 33, and type is hex string.
Based on the RFC DHCP option definition, the IP format is hex string, so you should convert the IP to Hex string. In this scenario, the value is 0A000001C0A80A02
0A000001 is hex string mapping to IP 10.0.0.1, C0A80A02 is 192.168.10.2, which means to IP 10.0.0.1, the next hop is 192.168.10.2
Note: If you want to add multi routing entries, just append the hex string 0A000001C0A80A20A000003C0A80A2Verification
Open Windows command prompt and type route print -4 command to show Windows routing table. You can see the client has routing entry in Windows routing table.Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 145 Nebula Ideas
- 96 Nebula Status and Incidents
- 5.6K Security
- 240 USG FLEX H Series
- 268 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 385 News and Release
- 83 Security Advisories
- 28 Education Center
- 9 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 72 Security Highlight