From owner-freebsd-questions@FreeBSD.ORG Thu May 9 08:34:35 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B3344AD5 for ; Thu, 9 May 2013 08:34:35 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) by mx1.freebsd.org (Postfix) with ESMTP id 580348D8 for ; Thu, 9 May 2013 08:34:35 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.7/8.14.7) with ESMTP id r498YVKK069063 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 May 2013 10:34:31 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.7/8.14.7/Submit) with ESMTP id r498YV7Q069060; Thu, 9 May 2013 10:34:31 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Thu, 9 May 2013 10:34:30 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: hrkesh sahu Subject: Re: Fresh installation 9.1 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-958174725-1368088427=:72982" Content-ID: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no Cc: FreeBSD questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 08:34:35 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-958174725-1368088427=:72982 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-ID: On Thu, 9 May 2013 12:18+0530, hrkesh sahu wrote: > > HI All, > > > I have a FreeBSD 9.1 Release installed with TWO NIC cards. I was trying to > make this FreeBSD machine as a router . > This is my rc.conf > -------------------------------- > ifconfig_rl0 = "inet 192.168.100.101 netmask 255.255.255.0" > ifconfig_re0="inet 192.168.200.101 netmask 255.255.255.0" > > gateway_enable = "YES" > ifconfig_rl0 = "DHCP" > ifconfig_re0 = "DHCP" > > defaultrouter = "192.168.100.1" > ipv6_activate_all_interfaces = "YES" > sshd_enable = "YES" > synchronous_dhclient="YES" > > Please help me to establish a IPv4 router. > Both the interfaces are connected to to different laptops with a static IP > address. You should place a # in front of the two lines: > ifconfig_rl0 = "DHCP" > ifconfig_re0 = "DHCP" Next, you probably shouldn't place spaces before and after the equal signs. > Laptop 1 = 192.168.100.102 ( connected to interface rl0) gateway - > 192.168.100.1 > > Laptop 2 = 192.168.200.102 ( connected to interface re0) > ping from Laptop1 -> rl0 is successful > but ping from Laptop1 -> re0 is not successful. > > After this I want to know also How to make this as IPv6 router? See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html. You probably should create a ULA prefix or two, and assign these to your router interfaces. http://www.sixxs.net/tools/grh/ula/ might help you. Something along these lines might help you achieve what you want: ifconfig_rl0_ipv6="inet6 fd8f:d6d0:e6e7:100::1 prefixlen 64" ifconfig_re0_ipv6="inet6 fd44:13de:a366:200::1 prefixlen 64" ipv6_gateway_enable="YES" Finally you probably should configure and enable Router Advertisement and Host Auto Configuration as explained in section 32.11.6 of http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ --2055831798-958174725-1368088427=:72982--