ubuntu 14.04在其DHCP conf中的以下段所中特定参数代表的意思

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
lilycn
帖子: 12
注册时间: 2016-08-21 10:39
系统: ubuntu 14.04

ubuntu 14.04在其DHCP conf中的以下段所中特定参数代表的意思

#1

帖子 lilycn » 2016-11-24 14:54

# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.

#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}

#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }

match if substring (option vendor-class-identifier, 0, 4) = "SUNW";中的 0, 4所代表的含义是什么,一直分不到想要的IP,估计是这两个参数理解错误了,哪位大神知道啊,求解....
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04在其DHCP conf中的以下段所中特定参数代表的意思

#2

帖子 poloshiao » 2016-11-25 15:20

https://linux.die.net/man/5/dhcp-options
dhcp-options - Dynamic Host Configuration Protocol options
使用關鍵字 搜尋
vendor-class-identifier
VENDOR ENCAPSULATED OPTIONS
lilycn
帖子: 12
注册时间: 2016-08-21 10:39
系统: ubuntu 14.04

Re: ubuntu 14.04在其DHCP conf中的以下段所中特定参数代表的意思

#3

帖子 lilycn » 2016-12-07 11:11

poloshiao 写了:https://linux.die.net/man/5/dhcp-options
dhcp-options - Dynamic Host Configuration Protocol options
使用關鍵字 搜尋
vendor-class-identifier
VENDOR ENCAPSULATED OPTIONS
还想请问以下,如果我要在DHCP启动之后,给我的client 通过自己建立的TFTP server分配一个文件,我在DHCP文档中添加了文档的名字,但是一直识别不了,是不是还要添加此文档的路径在DHCP conf中?但是我不知道添加这个文件及文件路径的规则?急求?大神。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 14.04在其DHCP conf中的以下段所中特定参数代表的意思

#4

帖子 poloshiao » 2016-12-07 11:47

给我的 client 通过自己建立的 TFTP server 分配一个文件
我在 DHCP 文档中添加了文档的名字
1. 不是很清楚你這裡的 文档 跟上面的 文件 有沒有關聯

1-1. 猜測 也許 你把 dhcp 的功能 跟 ftp 的功能 混在一起了
1-1-1. DHCP
https://help.ubuntu.com/lts/serverguide/dhcp.html
1-1-2. FTP Server
https://help.ubuntu.com/16.04/servergui ... erver.html
回复