免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8042 | 回复: 5

如何让linux dhcp server同时支持option 60和option 82认证 [复制链接]

论坛徽章:
0
发表于 2011-07-22 18:05 |显示全部楼层
ddns-update-style interim;
ignore client-updates;

# DVNDHCP
#
class "vlan111" {
         match if substring (option vendor-class-identifier,0,14)="ABCDEDTV-CHINA" and
         match if substring (option agent.circuit-id,2,2) = 00:0f:00:6f;
         }
class "vlan112" {
         match if substring (option vendor-class-identifier,0,14)="ABCDEDTV-CHINA" and
         match if substring (option agent.circuit-id,2,2) = 00:70:00:70;
         }
#
#
shared-network network_tag {
subnet 10.11.0.0 netmask 255.255.0.0 {
        option vendor-class-identifier "ABCDEDTV-CHINA";
        option time-servers 10.1.0.10;
        option domain-name-servers 10.11.255.250;
        option broadcast-address 255.255.255.255;
        option routers 10.11.255.253;
        option subnet-mask 255.255.0.0;
        option nis-domain "dtvcn.com";
        option domain-name "dtvcn.com";
        option time-offset -18000;
        default-lease-time 21600;
        max-lease-time 43200;
         pool {
               allow members of "vlan111";
               range 10.11.0.20 10.11.255.250;
               }

        }

subnet 10.12.0.0 netmask 255.255.0.0 {
        option vendor-class-identifier "ABCDEDTV-CHINA";
        option time-servers 10.1.0.10;
        option domain-name-servers 10.12.255.250;
        option broadcast-address 255.255.255.255;
        option routers 10.12.255.253;
        option subnet-mask 255.255.0.0;
        option nis-domain "dtvcn.com";
        option domain-name "dtvcn.com";
        option time-offset -18000;
        default-lease-time 21600;
        max-lease-time 43200;
         pool {
               allow members of "vlan112";
               range 10.12.0.20 10.12.255.250;
               }

        }

}

论坛徽章:
0
发表于 2011-07-24 23:26 |显示全部楼层

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
发表于 2011-07-25 05:21 |显示全部楼层
#
class "vlan111" {
         match if substring (option vendor-class-identifier,0,14)="ABCDEDTV-CHINA" and
         match if substring (option agent.circuit-id,2,2) = 00:0f:00:6f;
         }
class "vlan112" {
         match if substring (option vendor-class-identifier,0,14)="ABCDEDTV-CHINA" and
         match if substring (option agent.circuit-id,2,2) = 00:70:00:70;
         }
#

这个不行吗?
没用过DHCP这个功能。

论坛徽章:
0
发表于 2011-07-27 11:01 |显示全部楼层
不行

论坛徽章:
0
发表于 2011-07-27 11:59 |显示全部楼层

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
发表于 2011-07-28 15:44 |显示全部楼层
你再查查DHCP的随机文档吧。这个功能我没用过,很少用到的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP