时间:2021-05-24
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
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
C-F6.多VLAN配置DHCP?C3750-E?思科(CISCO)交换机。按照我们的规划分配好VLAN及接口后,就需要考虑哪些VLAN需要配置DHCP服务了,
利用CISCO三层交换机自带的DHCP功能,可以实现多VLAN的IP地址自动分配,在三层交换机上如何配置DHCP服务呢,下面由小编介绍下具体操作吧,1、首先将三
服务器获得IP地址。在检查了网卡后,也没有获得IP地址。VLAN配置一个新设备时,这种问题常常发生,此时并没有设置VLAN将DHCP请求转发给DHCP服务器。交
受影响系统:OpenBSDOpenBSD4.2OpenBSDOpenBSD4.1描述:OpenBSD是一款开放源代码Unix类操作系统。OpenBSD处理畸形的
dns-serveA192.168.2.1//配置dns为192.168.2.1 dhcp(dhcp-config)#exit//退出dhcp配置模式 dh