dhcpd and dhcrelay
Elena Timoshkina
timoshkina at office.peterstar.com
Tue Sep 30 11:56:38 UTC 2008
Hi,
I have a problem to solve. I have a dhcpd server and now I need a
dhcprelay on the same server.
ifconfig :
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:08:02:f0:25:81
media: Ethernet 100baseTX <full-duplex>
status: active
vlan39: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:08:02:f0:25:81
inet 10.1.1.254 netmask 0xffffff00 broadcast 10.1.1.255
media: Ethernet 100baseTX <full-duplex>
status: active
vlan: 39 parent interface: fxp1
vlan667: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:08:02:f0:25:81
inet 10.97.7.18 netmask 0xfffffffc broadcast 10.97.7.19
media: Ethernet 100baseTX <full-duplex>
status: active
vlan: 667 parent interface: fxp1
Dhcpd in vlan39 interface. I binded Dhcpd in vlan39 to
add to dhcpd.conf file:
local-address 10.1.1.254;
Dhcrelay in vlan667 interface.
grep dhcrelay /etc/rc.conf :
dhcrelay_enable="YES"
dhcrelay_servers="10.97.5.2" # dhcrelay server(s)
dhcrelay_ifaces="vlan667"
Dhcpd works fine.
When I try to run dhcrelay :
/usr/local/etc/rc.d/isc-dhcrelay start
Starting dhcrelay.
Internet Systems Consortium DHCP Relay Agent V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on BPF/vlan667/00:08:02:f0:25:81
Sending on BPF/vlan667/00:08:02:f0:25:81
Sending on Socket/fallback
Dhcrelay starts. But sockstat tells me:
root dhcrelay 69409 4 udp4 *:67 *:*
dhcpd dhcpd 68725 5 udp4 10.1.1.254:67 *:*
Dhcpd binded in address 10.1.1.254
But dhcrelay not binded in interface vlan667. How can I do it - to
bind dhcrelay in address 10.97.7.18 only?
I try http://marc.info/?l=dhcp-server&m=113219435513941&w=2, but
unsuccessful.
Thanks.
--
Best regards,
Elena Timoshkina mailto:timoshkina at office.peterstar.com
More information about the dhcp-users
mailing list