From owner-freebsd-questions@FreeBSD.ORG Thu May 23 08:56:44 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 1ABC9792 for ; Thu, 23 May 2013 08:56:44 +0000 (UTC) (envelope-from hrisikeshsahu@gmail.com) Received: from mail-vb0-x232.google.com (mail-vb0-x232.google.com [IPv6:2607:f8b0:400c:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id C1EC4E23 for ; Thu, 23 May 2013 08:56:43 +0000 (UTC) Received: by mail-vb0-f50.google.com with SMTP id w16so1947190vbb.23 for ; Thu, 23 May 2013 01:56:43 -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=1uqDNjzqdlip/cmHXTyak9xdtV/Az+F0Dkvrt+Z7FNk=; b=qTiEID58mS14vYxsvzpkIkJoNEVpweP0IcQXU7LY7SKJAMAZ+YgI+KvrdFUqAV/MAS d0O4NsRlPQO7KiiguHULbK0hs9qXZxSDxJwvUzvMS0EzbNHFQZ7WaGBqv41K5D+ADfSw PgNdYT4Fp+0HSA+KMvhBw90ihYyWN2cl90iIeF/NShBsXs1iwSP8Uxbn0ZsI+Koi1J92 +KVGFs1oxYdeSCcLXJFb1eO0XRplTLkGvz92epyFZfXLmdrDq123qr+XF4xD54SrgL29 vtsPe5aGYXjg9k0iKYwJelLx5VF7wP+eet8Y4roMsYzkP2ClOZSqkyHQmbY+eFQiBwcB nXbA== MIME-Version: 1.0 X-Received: by 10.52.95.227 with SMTP id dn3mr3877562vdb.111.1369299403184; Thu, 23 May 2013 01:56:43 -0700 (PDT) Received: by 10.52.17.105 with HTTP; Thu, 23 May 2013 01:56:43 -0700 (PDT) In-Reply-To: References: Date: Thu, 23 May 2013 14:26:43 +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: Thu, 23 May 2013 08:56:44 -0000 Hi Trond, Thanks a lot for your help and Ipv6 routing is working with FreeBSD OS. we want to go for Ipv6 certification for our IPv6 stack. And Ipv6 stack we want to use FreeBSD as one vendor router. Now It will be easy for IPv6 interoperability test with freeBSD. for Ipv6 interoperability test We need another router device and I am planning use Ubuntu as IPv6 router. Please let me your personal view and if you can help me on this, it will be grateful. > How to enable gateway for IPv6 in Ubuntu? > Router may require to do send Neighbor advertisement for Host Neighbor solicitation . I installed radvd in ubuntu. > could you please share radvd.conf of ubuntu? regards On Wed, May 22, 2013 at 7:53 PM, Trond Endrest=F8l < Trond.Endrestol@fagskolen.gjovik.no> wrote: > On Wed, 22 May 2013 19:34+0530, hrkesh sahu wrote: > > > Hi Trond, > > Thanks a lot for a clear reply. > > Could you please tell me Laptop1 ipv6 configuration details? > > as laptop auto configuration will generate the LL address for a auto ip= v6 > > configuration. > > For Interface rl0 ipv6 address > > ifconfig_rl0_ipv6=3D"inet6 fd8f:d6d0:e6e7:100::101 prefixlen 64" , > > > > what will be laptop ipv6 address? > > It depends solely on the operating system and whether IPv6 privacy is > in effect. > > Normally, the client will perform stateless automatic address > configuration (SLAAC). It goes pretty much like this: > > The router announces the 64 bit prefix, usually every 200 seconds, but > the client may request a new announcement at any time. The client > generates a 64 bit interface identifier based on its 48 bit MAC > address. The client then concatenates the supplied prefix with the > generated interface identifier. The client then performs duplicate > address detection (DAD), and if everythings checks out, the client got > its IPv6 address. > > Given this prefix fd8f:d6d0:e6e7:100::/64, and this MAC address > 50:e5:49:41:4d:70. > > The client would then generated this interface id: > 52e5:49ff:fe41:4d70. > > The Universal/Local bit of the MAC address is inverted, and FF:FE is > placed at center. (It really ought to be FF:FF, but way back in time > someone misread the IEEE standards regarding conversion from 48 bit > MAC addresses to EUI64 format. This oversight doesn't really matter.) > > The same client would then aqcuire this IPv6 address: > fd8f:d6d0:e6e7:100:52e5:49ff:fe41:4d70, and perform DAD. > > The client gets its IPv6 default route/gateway from the router > announcement. > > Of course, you may configure the IPv6 address and gateway manually on > the client, say fd8f:d6d0:e6e7:100::1337/64 (client's address) and > fd8f:d6d0:e6e7:100::101 (gateway's address). > > > On Wed, May 22, 2013 at 6:54 PM, Trond Endrest=F8l < > > Trond.Endrestol@fagskolen.gjovik.no> wrote: > > > > > On Wed, 22 May 2013 18:21+0530, hrkesh sahu wrote: > > > > > > > Hi Trond , > > > > Thanks a lot. > > > > Now i am able to ping to other network with IPv4 address. > > > > > > > > For IPv6 I added these lines in rc.conf - > > > > first I included - > > > > ipv6_gateway_enable=3D"YES" > > > > > > > > ++> Laptop1( Ipv6 address fe80::224:7eff:fee0:6b51) is connected to > > > > interface rl0 ( ipv6 address - fe80::21f:b5ff:fe48:9f73) > > > > While doing ping6 from "fe80::224:7eff:fee0:6b51" to > > > > "fe80::21f:b5ff:fe48:9f73" - it is working. Neighbor advertisement > from > > > > "fe80::21f:b5ff:fe48:9f73" is happening. > > > > while doing from ping6 from "fe80::224:7eff:fee0:6b51" to other > interface > > > > "fe80::21f:d0ff:fe40:8bbd" , then there is no Neighbor advertisemen= t. > > > > > > > > After this I included these two lines to rc.conf - > > > > > > > > rtadvd_enable=3D"YES" > > > > rtadvd_interfaces=3D"rl0" > > > > > > > > I have not created any file like /etc/rtadvd.conf . Do i need to > create > > > > this configuration file? > > > > if yes, what should be the input to rtadvd.conf for link local > address? > > > > > > > > please find Ipv6 interface details. > > > > > > > > > > > > Ifconfig > > > > -------------------- > > > > re0: flags=3D8843 > > > Running,Simplex,Multicast> Metric 0 mtu 1500 > > > > options=3D8209b > > > VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> > > > > 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 > > > LINKLOCAL> > > > > media:Enthernet autoselect (none) > > > > status:active > > > > > > > > rl0: flags=3D8843 > > > Running,Simplex,Multicast> 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: active > > > > > > Congratz on achieving active carrier wave on your NICs. > > > > > > Right now your system is running with link-local IPv6 addresses. You > > > may view LL addresses as VLAN local. Packets to such addresses will > > > never ever be forwarded by a router. > > > > > > Instead set up either official IPv6 addresses/subnets or create your > > > own Unique Local Addresses (ULA) as I wrote previously about. > > > > > > Augment your /etc/rc.conf file with, say: > > > > > > ifconfig_rl0_ipv6=3D"inet6 fd8f:d6d0:e6e7:100::101 prefixlen 64" > > > > > > You may assign the IPv6 address manually to avoid restarting the > > > networking subsystem or the whole machine: > > > > > > ifconfig rl0 inet6 fd8f:d6d0:e6e7:100::101 prefixlen 64 > > > > > > Next, create /etc/rtadvd.conf with the following contents: > > > > > > rl0:\ > > > :addr=3D"fd8f:d6d0:e6e7:100::":prefixlen#64: > > > > > > If you want IPv6 routing on the re0 interface, you need, say this, in > > > /etc/rc.conf: > > > > > > ifconfig_re0_ipv6=3D"inet6 fd44:13de:a366:200::1 prefixlen 64" > > > > > > Assign the IPv6 address manually using: > > > > > > ifconfig re0 inet6 fd44:13de:a366:200::1 prefixlen 64 > > > > > > And add this to /etc/rtadvd.conf: > > > > > > re0:\ > > > :addr=3D"fd44:13de:a366:200::":prefixlen#64: > > > > > > You'll need to restart rtadvd by issuing /etc/rc.d/rtadvd restart. > > > > > > Happy hacking. > > > > > > > Regards > > > > Hrisikesh > > > > > > > > On Wed, May 22, 2013 at 1:03 PM, Trond Endrest=F8l < > > > > Trond.Endrestol@fagskolen.gjovik.no> wrote: > > > > > > > > > On Wed, 22 May 2013 12:38+0530, hrkesh sahu wrote: > > > > > > > > > > > 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 Metri= c 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 Metri= c 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. > > > > > > > > > > Neither NIC is connected to any equipment, e.g. switch, hub, or > > > > > computer (status: no carrier). Make sure you can use a straight > > > > > network cable, else you'll need to get a couple of cross wired > network > > > > > cables and use those instead. > > > > > > > > > > Next, confirm the sysctl net.inet.ip.forwarding is set to 1 by > > > > > running the sysctl net.inet.ip.forwarding command. > > > > > > > > > > If not, you can set the sysctl to 1 by running the sysctl > > > > > net.inet.ip.forwarding=3D1 command, and you probably should inspe= ct > the > > > > > /etc/rc.conf file one more time. > > > > > > > > > > Once you connect the computer to the two networks, the IPv4 routi= ng > > > > > should work. If not, come back. > > > > > > > > > > > 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. bu= t > > > 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 fil= e? > > > > > > > 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 th= e > > > > > > > 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.25= 5.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 lapto= ps > > > 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 afte= r > 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 r= e0) > > > > > > > > > > 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 assig= n > > > these to > > > > > > > > > your router interfaces. > http://www.sixxs.net/tools/grh/ula/might > > > > > help > > > > > > > > > you. > > > > > > > > > > > > > > > > > > Something along these lines might help you achieve what y= ou > > > want: > > > > > > > > > > > > > > > > > > ifconfig_rl0_ipv6=3D"inet6 fd8f:d6d0:e6e7:100::1 prefixle= n > 64" > > > > > > > > > ifconfig_re0_ipv6=3D"inet6 fd44:13de:a366:200::1 prefixle= n > 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. = | > > > +-------------------------------+------------------------------------= + > > > > > _______________________________________________ > > 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" > > > > -- > +-------------------------------+------------------------------------+ > | 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. | > +-------------------------------+------------------------------------+ >