4块DLINK 530 ,1个连接Internet,3个内网
-------------------------------
| | | |
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
相关文章:
1. Win11右键没有压缩选项怎么办?Win11右键没有压缩选项的解决方法2. Win11开机后出现explorer.exe应用程序错误怎么解决? exe应用程序错误解决办法3. Win11发布预览版Build 22000.1639更新补丁KB5022905推送(附更新修复内容汇总)4. KB5022845导致Win1122H2更新驱动失败 Surface出现0x80070103错误5. win最稳定的版本推荐6. 为Win12让路:Win11 2023终极正式版来了7. 你没有权限在此位置中保存文件请与管理员联系以或得相应权限8. Win11 预览版25300怎么开启文件资源管理器图库隐藏功能?9. Win11 release preview通道是什么?release preview频道更新Win11好吗?10. Win11控制面板一直闪烁怎么回事?Win11控制面板打不开一直闪解决方法