How to add DHCP option 121 by CLI

Zyxel_Kevin
Zyxel_Kevin Posts: 885  Zyxel Employee
Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate 100 Answers 500 Comments
edited February 16 in Networking

Symptom:

You would add user-defined DHCP option 121

Workaround:

You can add by CLI.

For example, Dst:1.1.1.0/24 Gateway: 192.168.1.2 .

1)Write as RFC format :

24.1.1.1.192.168.1.2

2)Translate to Hex

18:01:01:01:C0:A8:01:02

3)

usgflex200h running#vrf main dhcp server subnet <your subnet> user-defined <uint8> hex-string <hex>

usgflex200h running#vrf main dhcp server subnet 192.168.1.0/24 user-defined 121 hex-string 18:01:01:01:C0:A8:01:02

4)

Verify:

Tagged: