瀏覽量:23次
4塊DLINK 530 ,1個(gè)連接Internet,3個(gè)內(nèi)網(wǎng)
------------------------------- | | | | vr0 連接Internet vr1 內(nèi)網(wǎng)交換機(jī)1 vr2 內(nèi)網(wǎng)交換機(jī)2 vr3 內(nèi)網(wǎng)交換機(jī)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.啟動(dòng) # 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
[聲明]本網(wǎng)轉(zhuǎn)載網(wǎng)絡(luò)媒體稿件是為了傳播更多的信息,此類(lèi)稿件不代表本網(wǎng)觀(guān)點(diǎn),本網(wǎng)不承擔(dān)此類(lèi)稿件侵權(quán)行為的連帶責(zé)任。故此,如果您發(fā)現(xiàn)本網(wǎng)站的內(nèi)容侵犯了您的版權(quán),請(qǐng)您的相關(guān)內(nèi)容發(fā)至此郵箱【779898168@qq.com】,我們?cè)诖_認(rèn)后,會(huì)立即刪除,保證您的版權(quán)。
官網(wǎng)優(yōu)化
整站優(yōu)化
渠道代理
400-655-5776