From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Subject: Re: Policy routing problem Date: Tue, 23 Oct 2012 15:27:19 +0400 Message-ID: <20121023112719.GB21445@localhost> References: <56295.129.217.4.64.1350990304.squirrel@postamt.cs.uni-dortmund.de> Reply-To: Oleg Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1350991760; bh=aRqOrGk4bMxuJyUGaPS+vNSYXarfkZJc8+1xo/eRK+w=; h=Date:From:To:Cc:Subject:Message-ID:Reply-To:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent; b=sDFLFASaWp/EcFSdmpBbJrNhMJ0b5X7mOkpnnyWmtFB8LtL5cZZimfblo/ucxshuv giC/vnfPK9rKTl8C9eKJ5U4AGAKoqHVmew4deKec1/q6Uor1TPhAA8ZUrrtYz6UELo pRVecc4GkKbCvPKsQ0f0cAcoUh8Nqr8iwFKgLA6w= Content-Disposition: inline In-Reply-To: <56295.129.217.4.64.1350990304.squirrel@postamt.cs.uni-dortmund.de> Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Christoph Pleger Cc: linux-admin@vger.kernel.org On Tue, Oct 23, 2012 at 01:05:04PM +0200, Christoph Pleger wrote: > Hello, Hi. > > I am running a DHCP-Server that serves multiple subnets. The server has > an IP address in all of these subnets, and its primary IP address in a > subnet that is not served by DHCP. Every IP address has its own VLAN > Ethernet interface, eth0.102, eth0.104, etc. In this setup, the DHCP > server often does not send its unicast replies on the interface where it > received the corresponding request, but on the interface of its primary > IP address, and with that IP. My first thought how to change this was by > setting routes depending on destination addresses, but this would cause > big problems with other services running on the same machine, so I tried > to combine iproute2 and iptables, like this: If you have a separate IP for an each interface, everything should be ok, because of device routes. Show ip rou output for your vlans.