Project

General

Profile

Actions

Bug #1524

closed

Dhcrelay not running when DHCP server not in same subnet.

Added by Alexis Olivier almost 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP Relay
Target version:
Start date:
05/13/2011
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:
All

Description

Hello everybody,

I found a bug : if you activate DHCP Relay and provide a DHCP server not in the network from selected interface(s), the script adds the interface providing the good route by looking at routing table.

The problem is that the result from the command "/usr/bin/netstat -rnWf inet" is bad parsed.

This results in the error :

php: /services_dhcp_relay.php: The command '/usr/local/sbin/dhcrelay -i xl0 -i UGS 10.130.0.29' returned exit code '1', the output was 'Internet Systems Consortium DHCP Relay Agent 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Can't attach interface UGS to bpf device /dev/bpf0: Device not configured If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the dhcp-server@isc.org mailing list, please read the section on the README about submitting bug reports and requests for help. Please do not under any circumstances send requests for help directly to the authors of this software - please send them to the appropriate mailing list as described in the README file. exiting.'

To correct this bug, you need to change in /etc/inc/services.inc line 559 :

$destif = trim($items[2]);

by

$destif = trim($items[6]);
Actions #1

Updated by Ermal Luçi almost 13 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #2

Updated by Chris Buechler almost 13 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF