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
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
更新日志
- 公馆青少年《我其实一点都不酷》[320K/MP3][78.78MB]
- 群星《情叹-发烧男声DSD》最值得珍藏的完美男声[WAV+CUE]
- 群星《国韵飘香·贵妃醉酒HQCD黑胶王》2CD[WAV]
- 卫兰《DAUGHTER》【低速原抓WAV+CUE】
- 公馆青少年《我其实一点都不酷》[FLAC/分轨][398.22MB]
- ZWEI《迟暮的花 (Explicit)》[320K/MP3][57.16MB]
- ZWEI《迟暮的花 (Explicit)》[FLAC/分轨][137.51MB]
- 八戒《Gimme Gimme Love》[320K/MP3][39.21MB]
- 宝丽金群星1991《宝丽金超白金精选特辑Ⅱ》2CD[WAV+CUE][1.1G]
- 姚斯婷《但愿人长久》头版限量编号24K金碟[低速原抓WAV+CUE][1G]
- 孙露《试机孙露AMCD》WAV+CUE
- 张雨生《GreatestHits-XRCD2+HMCD》[WAV+CUE]
- FIM-无可挑剔的声音(SuperSound声霸1)[FLAC+CUE]
- 萧亚轩《3面夏娃/三面夏娃》[WAV+CUE][1G]
- 佛音《大悲咒》新加坡金碟珍藏版[WAV+CUE][994M]