参考文档:
https://www.nuomiphp.com/serverfault/zh/60480e758726d95932321906.html
# dhcp 配置 option rfc3442-classless-static-routes code 121 = array of integer 8; option rfc3442-classless-static-routes 24, 192, 168, 1, 192, 168, 0, 4; option ms-classless-static-routes code 249 = array of integer 8; option ms-classless-static-routes 24, 192, 168, 1, 192, 168, 0, 4;
这将使用网关192.168.0.4分配网络192.168.1.0/24的路由条目。
字节的含义是(括号内为上例中的值):
WW, D1, D2, D3, R1, R2, R3, R4 WW = destination network mask width (24) D1..D3 = destination network address (192.168.1.*) R1..R4 = router address (192.168.0.4)
注意:D1..DN
字节数取决于网络掩码。有关详细信息,请参见RFC3442。