From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 13:40:41 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA57A16A41F for ; Mon, 4 Jun 2007 13:40:41 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id ADBB313C44C for ; Mon, 4 Jun 2007 13:40:41 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [172.18.0.137] (sky_cpfw-1.tulsatech.org [70.168.226.130]) by a.cs.okstate.edu (Postfix) with ESMTP id F2EE9A063E; Mon, 4 Jun 2007 08:40:40 -0500 (CDT) Message-ID: <46641657.4000906@cs.okstate.edu> Date: Mon, 04 Jun 2007 08:40:39 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.0 (X11/20070517) MIME-Version: 1.0 To: bsenthil References: <4663AE7D.2090607@adventnet.com> In-Reply-To: <4663AE7D.2090607@adventnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Configure ipaddress and route entries in /etc/rc.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 13:40:41 -0000 Written by bsenthil on 06/04/07 01:17>> > I am trying to configure ipaddress and route entries. so that i added > below the entries in /etc/rc.conf file. > > vi /etc/rc.conf > > inetd_enable="YES" > hostname="test.abc.com" > ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" > defaultrouter="192.168.110.2" > hostname="test.abc.com" > static_routes="net1 net2" > route_net1="-net 192.168.1.1/24 192.168.110.2" > route_net2="-net 192.168.2.1/24 192.168.110.2" > > and then i restated the network services "netif restart" > > The below entries are listed in router table ... > $ netstat -nr > > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > 192.168.110 link#1 UC 0 0 fxp0 > > > Problem :: Default router entries and net1 & net2 entries are not added > in router table... > > Please advice me anything i want to configue more in rc.conf file.... > I can able to add default router by executing " route add -net 0.0.0.0 > 192.168.110.2" > > Thanks, > Senthilkumar. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Wrong rc script. Try "/etc/rc.d/routing restart". routing requires netif, but netif does not imply routing.