From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HFCKg-00059i-Qr for garchives@archives.gentoo.org; Thu, 08 Feb 2007 16:41:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l18Ge3M2027519; Thu, 8 Feb 2007 16:40:03 GMT Received: from mail (c-24-245-14-14.hsd1.mn.comcast.net [24.245.14.14]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l18GZFx6021782 for ; Thu, 8 Feb 2007 16:35:18 GMT Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100]) by mail (Postfix) with ESMTP id 67C388317 for ; Thu, 8 Feb 2007 10:35:13 -0600 (CST) Date: Thu, 8 Feb 2007 10:35:13 -0600 From: Dan Farrell To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] dhcpd and routes Message-ID: <20070208103513.7dd77774@pascal.spore.ath.cx> In-Reply-To: <45C8728C.7000602@daveoxley.co.uk> References: <45C8728C.7000602@daveoxley.co.uk> Organization: Spore, Ltd. X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.10.6; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: f272fcb9-9698-4414-b024-63a41984651c X-Archives-Hash: e7d34ec1344143d327c9156732958994 On Tue, 06 Feb 2007 23:20:28 +1100 Dave Oxley wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a Gentoo server that is running Cisco VPN software to connect > to my companies VPN. I have setup the server as a NAT for the specific > subnet required for the VPN and the rest of my traffic goes through my > router (192.168.1.1). I currently have to manually run the following > command to setup the route: > route add -net 10.4.0.0 netmask 255.255.255.0 gw 192.168.1.200 > > On my Gentoo server I run dhcpd to allocate IP addresses for machines > on my LAN. The current configuration is: > subnet 192.168.1.0 netmask 255.255.255.0 { > range 192.168.1.100 192.168.1.199; > option routers 192.168.1.1; > } > > So the question is how can I setup dhcpd to automatically setup the > route command for all clients using the dhcpd? You will need a subnet declaration as such for each subnet on the network. For example, something like subnet 10.4.0.0 netmask 255.255.255.0 { option routers 192.168.1.200; } might be appropriate. Without the range statement, you won't actually offer DHCP addresses on the network, but the routing information should be forwarded to the DHCP clients you are servicing on 192.168.1/24. Good luck. DHCPd is neat ; ) -- gentoo-user@gentoo.org mailing list