首页 > 其他分享 >rfc3442-classless-static-routes 字段含义

rfc3442-classless-static-routes 字段含义

时间:2022-11-29 19:23:34浏览次数:80  
标签:classless rfc3442 192.168 192 static routes

参考文档:

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

标签:classless,rfc3442,192.168,192,static,routes
From: https://www.cnblogs.com/wangjq19920210/p/16936433.html

相关文章