From owner-freebsd-questions@FreeBSD.ORG Wed May 22 07:08:19 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E87C4348 for ; Wed, 22 May 2013 07:08:19 +0000 (UTC) (envelope-from hrisikeshsahu@gmail.com) Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com [209.85.219.42]) by mx1.freebsd.org (Postfix) with ESMTP id B4332E24 for ; Wed, 22 May 2013 07:08:19 +0000 (UTC) Received: by mail-oa0-f42.google.com with SMTP id i10so2031323oag.15 for ; Wed, 22 May 2013 00:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4+2NEQtBpTB8VtfdE/mNSiHnTBVsq31QPQjABJV2zFM=; b=z/Xz8ES+tuSGcUrc0nl8uH71tDD528aTZUktUeJaoxPvSI7c3FKX3Dnxpk2kLCejrj Yt8Xpei/FS2viyYRxQRSK7IifBIEfIbe+s7Zg8yEbTsvBZq4oimvhQhT5KTYRJCwmFUD JiUFiR4VJXKcLcUC5lmXCRSioiDUGboaKXNGN62GFjOaYJodFn4xmvhBIRiD15ecky6B Jd5C7Fn4qg7s8p4mf8RikUv0p7nn5lgSl9MQrnXIrBb+7OaAzdcWC7ADt9u8NczFUIYX 0vosUA09CRGCBk5bnBwT1ACAKQERhOYT8scyxXVqJRCJwg1qQoMy3BK+bxLcr+ZHIQkF LPNA== MIME-Version: 1.0 X-Received: by 10.182.87.134 with SMTP id ay6mr3888544obb.13.1369206498970; Wed, 22 May 2013 00:08:18 -0700 (PDT) Received: by 10.182.240.135 with HTTP; Wed, 22 May 2013 00:08:18 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 May 2013 12:38:18 +0530 Message-ID: Subject: Re: Fresh installation 9.1 From: hrkesh sahu To: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Wed, 22 May 2013 07:08:20 -0000 Hi , Thanks a lot for this quick reply. Sorry i missed the " in the end while typing. It's a typo. I provided the ouput of " nestat -r " and "ifconfig". > netstat -r -------------- routing tables - internet : ----------- destination Gateway Flags Refs Use Netif Expire default 192.168.200.1 UGS 0 0 re0 localhost link#12 UH 0 148 lo0 192.168.100.0 link#10 U 0 0 rl0 192.168.100.101 link#10 UHS 0 0 lo0 192.168.200.0 link#5 U 0 0 re0 192.168.200.101 link#5 UHS 0 0 lo0 Internet6: ------------------- Ipv6 details > Ifconfig -------------------- re0: flags=3D8843 Metric 0 mtu 1500 options=3D8209b ether 00:1f:d0:40:8b:bd inet6 fe80::21f:d0ff:fe40:8bbd%re0 prefixlen 64 scopeid 0x5 inet 192.168.200.101 netmask 0xffffff00 broadcast 192.168.200.255 nd6 options=3D21 media:Enthernet autoselect (none) status: no carrier rl0: flags=3D8843 Metric 0 mtu 1500 options=3D2008 ether 00:10:b5:48:9f:73 inet6 fe80::21f:b5ff:fe48:9f73%rl0 prefixlen 64 scopeid 0xa inet 192.168.100.101 netmask 0xffffff00 broadcast 192.168.100.255 nd6 options=3D21 media:Enthernet autoselect (none) status: no carrier there is a plip0 and lo0. Regards Hrisikesh On Wed, May 22, 2013 at 12:02 PM, Trond Endrest=F8l < Trond.Endrestol@fagskolen.gjovik.no> wrote: > On Wed, 22 May 2013 11:10+0530, hrkesh sahu wrote: > > > Hi All, > > IPv4 Routing - > > ------------------------ > > I disabled the DHCP from rc.conf for both the interface. but still I am > not > > able to route trafic from one interface to another. > > > > rc.conf > > --------------- > > hostname=3D"idc-freebsd" > > keymap=3D"hy.armscii-8.kbd" > > #ifconfig_re0=3D"DHCP" > > #ifconfig_rl0=3D"DHCP" > > dumpdev=3D"NO" > > > ifconfig_rl0=3D"inet 192.168.100.101 netmask 255.255.255.0 > > ifconfig_re0=3D"inet 192.168.200.101 netmask 255.255.255.0 > > Are the two lines above copied straight from your rc.conf file? > If so, both lines are missing a " at the end. Please check to see if > this is needed. > > Next, the outputs of the ifconfig command and the netstat -r command > should reveal something interesting. Would you please post the > results from these two commands? > > > ipv6_activate_all_interfaces=3D"YES" > > gateway_enable=3D"YES" > > default_router=3D"192.168.200.1" > > > > I am using FreeBSD - 9.1 Release version > > > > I need to communicate between two different subnets. > > > > Am i missing anything to enable freebsd as router? > > Do i need to add a route entry? > > > > If possible could you please share rc.conf file with IPv4 routing? > > > > Regards > > Hrisikesh > > > > On Thu, May 9, 2013 at 2:04 PM, Trond Endrest=F8l < > > Trond.Endrestol@fagskolen.gjovik.no> wrote: > > > > > 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 =3D "inet 192.168.100.101 netmask 255.255.255.0" > > > > ifconfig_re0=3D"inet 192.168.200.101 netmask 255.255.255.0" > > > > > > > > gateway_enable =3D "YES" > > > > ifconfig_rl0 =3D "DHCP" > > > > ifconfig_re0 =3D "DHCP" > > > > > > > > defaultrouter =3D "192.168.100.1" > > > > ipv6_activate_all_interfaces =3D "YES" > > > > sshd_enable =3D "YES" > > > > synchronous_dhclient=3D"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 =3D "DHCP" > > > > ifconfig_re0 =3D "DHCP" > > > > > > Next, you probably shouldn't place spaces before and after the equal > > > signs. > > > > > > > Laptop 1 =3D 192.168.100.102 ( connected to interface rl0) gateway= - > > > > 192.168.100.1 > > > > > > > > Laptop 2 =3D 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.ht= ml > > > . > > > > > > You probably should create a ULA prefix or two, and assign these to > > > your router interfaces. http://www.sixxs.net/tools/grh/ula/ might hel= p > > > you. > > > > > > Something along these lines might help you achieve what you want: > > > > > > ifconfig_rl0_ipv6=3D"inet6 fd8f:d6d0:e6e7:100::1 prefixlen 64" > > > ifconfig_re0_ipv6=3D"inet6 fd44:13de:a366:200::1 prefixlen 64" > > > ipv6_gateway_enable=3D"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.ht= ml > > > . > > -- > +-------------------------------+------------------------------------+ > | Vennlig hilsen, | Best regards, | > | Trond Endrest=F8l, | Trond Endrest=F8l, = | > | IT-ansvarlig, | System administrator, | > | Fagskolen Innlandet, | Gj=F8vik Technical College, Norway, | > | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | > | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | > +-------------------------------+------------------------------------+ >