dhcp server and client in ubuntu12.04
来源:互联网 发布:log4cpp linux编译 编辑:程序博客网 时间:2024/05/16 05:52
1. client
1)modify /etc/dhcp/dhclient.conf
Insert
send vendor-class-identifier "SUNW";
dhcp6.sntp6-server, vendor-encapsulated-options;
2)run this command:
dhclient -cf /etc/dhcp/dhclient.conf -v -d -s 10.0.0.1 eth1
2. server
1)modify /etc/dhcp/dhcpd.conf
class "foo1" {
match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
}
subnet 10.0.0.0 netmask 255.255.255.0 {
pool {
allow members of "foo1";
option vendor-encapsulated-options 1:4:49:50:51:52;
range 10.0.0.30 10.0.0.250;
}
pool {
deny members of "foo1";
range 10.0.0.10 10.0.0.20;
}
}
2.run this command
service isc-dhcp-server restart
run tcpdump -ni eth1 host 10.0.0.1 -vvv
You will find the following:
Vendor-Option Option 43, length 6: 1.4.73.80.81.82
1)modify /etc/dhcp/dhclient.conf
Insert
send vendor-class-identifier "SUNW";
dhcp6.sntp6-server, vendor-encapsulated-options;
2)run this command:
dhclient -cf /etc/dhcp/dhclient.conf -v -d -s 10.0.0.1 eth1
2. server
1)modify /etc/dhcp/dhcpd.conf
class "foo1" {
match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
}
subnet 10.0.0.0 netmask 255.255.255.0 {
pool {
allow members of "foo1";
option vendor-encapsulated-options 1:4:49:50:51:52;
range 10.0.0.30 10.0.0.250;
}
pool {
deny members of "foo1";
range 10.0.0.10 10.0.0.20;
}
}
2.run this command
service isc-dhcp-server restart
run tcpdump -ni eth1 host 10.0.0.1 -vvv
You will find the following:
Vendor-Option Option 43, length 6: 1.4.73.80.81.82
0 0
- dhcp server and client in ubuntu12.04
- Simple HTTP Server and Client in Python
- svn client and server
- client and server direct
- python client and server
- C++ Server and Client
- socket ---> server and client
- python server and client
- tcp client and server
- Client And Server
- ROS server and client
- Configuring the DHCP Server And log DHCP logs
- 安装Jazz Server and Client
- c# socket(server and client)
- Perl socket client and server
- Simple UDP server and client
- sctp server and client program
- linux socket server and client
- ngx lua模块源码简单解析
- java开发过程中遇到的一些jar包的作用
- [FOJ 2112][Vjudge 35186] Tickets [并查集+一笔画问题]
- 程序员需谨记的8条团队开发原则
- 大量数据更新导致fgc频繁引起jvm服务暂停。
- dhcp server and client in ubuntu12.04
- 两台Redhat搭建Puppet实践
- 关于VMware API的资料收集
- IIS7 和IIS8.0 HTTP 错误 ---500.19--- - Internal Server Error 问题的解决方案
- PLDA源代码分析(1)-PLDA_Train
- Linux 磁盘空间大小统计du命令常见用法
- 设置expandableListView只展开一项
- Linus,一生只为寻找欢笑(下)
- IOS UIwebView加载本地文件(支持图片)