From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 06:20:38 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 9596216A421 for ; Mon, 4 Jun 2007 06:20:38 +0000 (UTC) (envelope-from bsenthil@adventnet.com) Received: from alps.manageengine.org (tapti.adventnet.co.in [203.199.211.109]) by mx1.freebsd.org (Postfix) with ESMTP id C6F4F13C44B for ; Mon, 4 Jun 2007 06:20:37 +0000 (UTC) (envelope-from bsenthil@adventnet.com) Received: from smtp.india.adventnet.com (smtp.india.adventnet.com [192.168.4.41]) by alps.manageengine.org (8.13.8/8.13.4/Debian-3) with ESMTP id l546KPof029787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 4 Jun 2007 11:50:25 +0530 Received: from [192.168.111.179] (bsenthil.india.adventnet.com [192.168.111.179]) by smtp.india.adventnet.com (8.13.4/8.13.4/Debian-3) with ESMTP id l546JBUZ009283 for ; Mon, 4 Jun 2007 11:49:12 +0530 Message-ID: <4663AE7D.2090607@adventnet.com> Date: Mon, 04 Jun 2007 11:47:33 +0530 From: bsenthil User-Agent: Mozilla Thunderbird 1.0.6-6mdk (X11/20050322) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.1/3347/Mon Jun 4 04:30:51 2007 on mail-hub.india.adventnet.com X-Virus-Status: Clean Subject: 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 06:20:38 -0000 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.