ubuntu DHCP server 配置
来源:互联网 发布:二师兄网络加速 编辑:程序博客网 时间:2024/05/04 09:09
debian和ubuntu DHCP服务器配置
root@vangeldoro:~# apt-get install dhcp3-server
root@vangeldoro:~# vi /etc/dhcp3/dhcpd.conf
主要是改 option domain-name-server 和 subnet 以及其范围(你的子网ip的范围)
以下我的DNS为两个,电信的那个做为备用DNS, 我的subnet 是192.168.200.0 netmask:255.255.255.0 子网从192.168.200.2-192.168.200.200 .
192.168.200.100 为内网网关,
这样做的好处是防有些软件会自动找192.168.200.1或192.168.200.254网关,
呵呵~~~
200以上地址手动指定,做为实验地址和交接机地址等
以下为主要的几行我自己的实例配置文件:
option domain-name-servers 210.26.24.1, 202.100.64.68;
default-lease-time 14400;
max-lease-time 86400;
subnet 192.168.200.0 netmask 255.255.255.0 {
range 192.168.200.2 192.168.200.200;
option routers 192.168.200.100; }
请按你的要求修改以上几行,修改后保存.
Example:
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
option domain-name-servers 54.17.0.8;
default-lease-time 14400;
max-lease-time 86400;
subnet 54.17.0.0 netmask 255.255.255.0 {
range 54.17.0.101 54.17.0.200;
option routers 54.17.0.1;
}
host target1 {
hardware ethernet 08:00:27:A4:D5:60;
fixed-address 54.17.0.11;
}
host target2 {
hardware ethernet 08:00:27:4A:43:BD;
fixed-address 54.17.0.10;
}
重启 /etc/init.d/dhcp3-server start
- ubuntu DHCP server 配置
- ubuntu DHCP server 配置
- 【原创】ubuntu dhcp-server 安装、配置
- ubuntu 12.04 桌面版 dhcp server 配置过程
- ubuntu 14.04 dhcp server
- Ubuntu 12.04.04 LTS server版本DHCP配置
- ubuntu server 10.4下的DHCP服务配置
- Ubuntu 14.04 server配置使用无线连接DHCP获取IP
- 配置DHCP Server
- dhcp server 配置
- DHCP V6 server配置
- Linux dhcp server配置
- Ubuntu dhcp 配置参数
- DHCP服务器配置-Ubuntu
- ubuntu 搭建 IPv6 DHCP server
- 安裝Ubuntu DHCP Server
- ubuntu下dhcp服务配置
- ubuntu下DHCP的配置
- IOS那些事
- ostringstream、istringstream、stringstream
- 用vim去除utf-8 BOM
- Android大文件断点上传
- Deep Learning 一些标志性的文章【转】
- ubuntu DHCP server 配置
- ubuntu server IP 及DNS设置
- 简述Ubuntu Server修改IP/DNS
- 数据结构_数据结构与算法04
- ubuntu安装配置DNS server
- 模态窗口及open的使用及相关经验
- 排序数组中重复最多的数字长度
- Ubuntu DNS Server 配置
- linux下简单的统计指定进程ID(或进程名)CPU、内存脚本