OpenBSD DHCP 多 vlan 配置
2009-05-13 14:34:26来源:未知 阅读 ()
-------------------------------
| | | |
vr0 连接Internet vr1 内网交换机1 vr2 内网交换机2 vr3 内网交换机3
59.108.38.* 192.168.1.0/24 192.168.2.0/24 172.16.71.0/24
采用OpenBSD 4.3自带的DHCP
1. /etc/dhcpd.conf
# cat /etc/dhcpd.conf
default-lease-time 36000;
max-lease-time 72000;
option domain-name-servers 59.108.38.195;
#ddns-update-style ad-hoc;
#log-facility local7;
# for admin vr1
shared-network Admin-NET {
option domain-name "atyu30.com";
subnet 192.168.1.0 netmask 255.255.255.0 {
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
range 192.168.1.10 192.168.1.200;
}
}
# for office vr2
shared-network Office-NET {
subnet 192.168.2.0 netmask 255.255.255.0 {
option broadcast-address 192.168.2.255;
option routers 192.168.2.1;
range 192.168.2.50 192.168.2.150;
}
}
# for Server vr3
shared-network Server-NET {
subnet 172.16.71.0 netmask 255.255.255.0 {
option broadcast-address 172.16.71.255;
option routers 172.16.71.1;
range 172.16.71.50 172.16.71.150;
}
}
host Gate-OpenBSD {
next-server 192.168.1.100;
hardware ethernet 00:0E:7B:37:96:6C;
fixed-address 192.168.1.120;
}
}
2.启动
# touch /var/db/dhcpd.leases
# dhcpd vr1 vr2 vr3
3./etc/rc.conf.local
dhcpd_flags="" # for normal use: ""
4./etc/dhcpd.interfaces
#dhcpd的监听端口:
# cat /etc/dhcpd.interfaces
# $OpenBSD: dhcpd.interfaces,v 1.1 1998/08/19 04:25:45 form Exp $
#
# List of network interfaces served by dhcpd(8).
#
# ep0
# ed0 le0
# de1
vr1
vr2
vr3
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_1092576.html
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- 有没有FreeBSD内核配置文件的中文版解释文档呢? 2009-05-13
- freebsd的目录结构 2009-05-13
- nfs配置 2009-05-13
- 【转载】freebsd sysctl.conf配置说明 2009-05-13
- 配置 Nagios 监控 Oracle 服务器 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash