Re: IPv6: routing on the local LAN

2005-12-27 Thread Dan Langille
On 25 Dec 2005 at 2:59, Ariff Abdullah wrote:

> On Sat, 24 Dec 2005 12:37:56 -0500
> "Dan Langille" <[EMAIL PROTECTED]> wrote:
> > Gidday folks,
> > 
> > I have an IPv6 routing problem within my LAN behind the gateway.
> > 
> > I have an IPv6 tunnel supplied by Hurricane Electric.  The tunnel is
> > 
> > setup and working.  From my gateway I can access various IPv6 
> > websites (e.g http://www.kame.net).  I have enabled rtadvd(8) on my 
> > gateway.  For the netstat, ifconfig, etc, see [1].
> > 
> > >From a computer inside my gateway, I cannot ping anything, not even
> > >
> > the gateway.  I suspect it's because the routing tables are not
> > being  set up on the gateway.  I expected the system to do that 
> > automatically.  I also expected fxp0 to get an IPv6 address out of 
> > this.  Did I guess wrong?  I suspect that if I can get fxp0 on the 
> > gateway, all will be well.  If not, I think Ineed to set up static 
> > routes.
> 
> Add a single 2001:470:1F00:1979::/64 address each for both fxp0/1. You
> don't even need rtadv.conf :)
> 
> rc.conf:-
> ipv6_ifconfig_fxp0="2001:470:1F00:1979::1/64"
> ipv6_ifconfig_fxp1="2001:470:1F00:1979::2/64"

Right you are!  I just renamed /etc/rtadvd.conf to something else, 
rebooted the gateway, confirmed rtadvd was running, then I rebooted 
the workstation.  It came back with:

$ ifconfig fxp0
fxp0: flags=8843 mtu 1500
inet 10.55.0.23 netmask 0xff00 broadcast 10.55.0.255
inet6 fe80::204:acff:fed3:7823%fxp0 prefixlen 64 scopeid 0x1
inet6 2001:470:1f00:1979:204:acff:fed3:7823 prefixlen 64 
autoconf
ether 00:04:ac:d3:78:23
media: Ethernet autoselect (100baseTX )
status: active
$

You suggested putting an IPv6 address on fxp0 (the NIC on my gateway 
that faces my ISP).  Why?  No IPv6 traffic should meet that NIC.  It 
should all go out the tunnel on gif0.  fxp1 is my LAN, so I can see 
why I need an IPv6 address there.

Thank you.
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IPv6: routing on the local LAN

2005-12-25 Thread Dan Langille
On 25 Dec 2005 at 15:05, Ariff Abdullah wrote:

> On Sat, 24 Dec 2005 21:22:20 -0500
> "Dan Langille" <[EMAIL PROTECTED]> wrote:
> > On 25 Dec 2005 at 2:59, Ariff Abdullah wrote:
> > 
> > > On Sat, 24 Dec 2005 12:37:56 -0500
> > > "Dan Langille" <[EMAIL PROTECTED]> wrote:
> > > > Gidday folks,
> > > > 
> > > > I have an IPv6 routing problem within my LAN behind the gateway.
> > > > 
> > > > I have an IPv6 tunnel supplied by Hurricane Electric.  The
> > > > tunnel is
> > > > 
> > > > setup and working.  From my gateway I can access various IPv6 
> > > > websites (e.g http://www.kame.net).  I have enabled rtadvd(8) on
> > > > my  gateway.  For the netstat, ifconfig, etc, see [1].
> > > > 
> > > > >From a computer inside my gateway, I cannot ping anything, not
> > > > >even
> > > > >
> > > > the gateway.  I suspect it's because the routing tables are not
> > > > being  set up on the gateway.  I expected the system to do that 
> > > > automatically.  I also expected fxp0 to get an IPv6 address out
> > > > of  this.  Did I guess wrong?  I suspect that if I can get fxp0
> > > > on the  gateway, all will be well.  If not, I think Ineed to set
> > > > up static  routes.
> > > 
> > > Add a single 2001:470:1F00:1979::/64 address each for both fxp0/1.
> > > You don't even need rtadv.conf :)
> > > 
> > > rc.conf:-
> > > ipv6_ifconfig_fxp0="2001:470:1F00:1979::1/64"
> > > ipv6_ifconfig_fxp1="2001:470:1F00:1979::2/64"
> > 
> > Thanks.
> > 
> > I wanted to run rtadvd for the boxes inside the LAN.  That ensure 
> > they get an address in the right range (AFAIK).
> >
> For this simple configuration, you don't even need rtadvd.conf. Adding
> anyprefix/64 address to router interface and running rtadvd -D
> router_interface will do the job.

man rtadvd shows that -D is debugging.

$ grep rtad /etc/rc.conf
rtadvd_enable="YES" # let our LAN know the IPv6 
default route
rtadvd_interfaces="fxp1"# our private LAN

I can't try it yet, but it looks like removing /etc/rtadvd.conf may 
do the trick.

Merry Christmas.
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IPv6: routing on the local LAN

2005-12-24 Thread Ariff Abdullah
On Sat, 24 Dec 2005 21:22:20 -0500
"Dan Langille" <[EMAIL PROTECTED]> wrote:
> On 25 Dec 2005 at 2:59, Ariff Abdullah wrote:
> 
> > On Sat, 24 Dec 2005 12:37:56 -0500
> > "Dan Langille" <[EMAIL PROTECTED]> wrote:
> > > Gidday folks,
> > > 
> > > I have an IPv6 routing problem within my LAN behind the gateway.
> > > 
> > > I have an IPv6 tunnel supplied by Hurricane Electric.  The
> > > tunnel is
> > > 
> > > setup and working.  From my gateway I can access various IPv6 
> > > websites (e.g http://www.kame.net).  I have enabled rtadvd(8) on
> > > my  gateway.  For the netstat, ifconfig, etc, see [1].
> > > 
> > > >From a computer inside my gateway, I cannot ping anything, not
> > > >even
> > > >
> > > the gateway.  I suspect it's because the routing tables are not
> > > being  set up on the gateway.  I expected the system to do that 
> > > automatically.  I also expected fxp0 to get an IPv6 address out
> > > of  this.  Did I guess wrong?  I suspect that if I can get fxp0
> > > on the  gateway, all will be well.  If not, I think Ineed to set
> > > up static  routes.
> > 
> > Add a single 2001:470:1F00:1979::/64 address each for both fxp0/1.
> > You don't even need rtadv.conf :)
> > 
> > rc.conf:-
> > ipv6_ifconfig_fxp0="2001:470:1F00:1979::1/64"
> > ipv6_ifconfig_fxp1="2001:470:1F00:1979::2/64"
> 
> Thanks.
> 
> I wanted to run rtadvd for the boxes inside the LAN.  That ensure 
> they get an address in the right range (AFAIK).
>
For this simple configuration, you don't even need rtadvd.conf. Adding
anyprefix/64 address to router interface and running rtadvd -D
router_interface will do the job.

> Now... I just have to find someone with services, such as cvsup, 
> available only over IPv6 But what I've been reading indicates 
> that cvsup is not IPv6 aware.
> 
AFAIK we're out of luck for now.

> 


--
Ariff Abdullah
MyBSD

http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IPv6: routing on the local LAN

2005-12-24 Thread Dan Langille
On 25 Dec 2005 at 2:59, Ariff Abdullah wrote:

> On Sat, 24 Dec 2005 12:37:56 -0500
> "Dan Langille" <[EMAIL PROTECTED]> wrote:
> > Gidday folks,
> > 
> > I have an IPv6 routing problem within my LAN behind the gateway.
> > 
> > I have an IPv6 tunnel supplied by Hurricane Electric.  The tunnel is
> > 
> > setup and working.  From my gateway I can access various IPv6 
> > websites (e.g http://www.kame.net).  I have enabled rtadvd(8) on my 
> > gateway.  For the netstat, ifconfig, etc, see [1].
> > 
> > >From a computer inside my gateway, I cannot ping anything, not even
> > >
> > the gateway.  I suspect it's because the routing tables are not
> > being  set up on the gateway.  I expected the system to do that 
> > automatically.  I also expected fxp0 to get an IPv6 address out of 
> > this.  Did I guess wrong?  I suspect that if I can get fxp0 on the 
> > gateway, all will be well.  If not, I think Ineed to set up static 
> > routes.
> 
> Add a single 2001:470:1F00:1979::/64 address each for both fxp0/1. You
> don't even need rtadv.conf :)
> 
> rc.conf:-
> ipv6_ifconfig_fxp0="2001:470:1F00:1979::1/64"
> ipv6_ifconfig_fxp1="2001:470:1F00:1979::2/64"

Thanks.

I wanted to run rtadvd for the boxes inside the LAN.  That ensure 
they get an address in the right range (AFAIK).

Now... I just have to find someone with services, such as cvsup, 
available only over IPv6 But what I've been reading indicates 
that cvsup is not IPv6 aware.
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IPv6: routing on the local LAN

2005-12-24 Thread Ariff Abdullah
On Sat, 24 Dec 2005 12:37:56 -0500
"Dan Langille" <[EMAIL PROTECTED]> wrote:
> Gidday folks,
> 
> I have an IPv6 routing problem within my LAN behind the gateway.
> 
> I have an IPv6 tunnel supplied by Hurricane Electric.  The tunnel is
> 
> setup and working.  From my gateway I can access various IPv6 
> websites (e.g http://www.kame.net).  I have enabled rtadvd(8) on my 
> gateway.  For the netstat, ifconfig, etc, see [1].
> 
> >From a computer inside my gateway, I cannot ping anything, not even
> >
> the gateway.  I suspect it's because the routing tables are not
> being  set up on the gateway.  I expected the system to do that 
> automatically.  I also expected fxp0 to get an IPv6 address out of 
> this.  Did I guess wrong?  I suspect that if I can get fxp0 on the 
> gateway, all will be well.  If not, I think Ineed to set up static 
> routes.

Add a single 2001:470:1F00:1979::/64 address each for both fxp0/1. You
don't even need rtadv.conf :)

rc.conf:-
ipv6_ifconfig_fxp0="2001:470:1F00:1979::1/64"
ipv6_ifconfig_fxp1="2001:470:1F00:1979::2/64"

> 
> The workstation inside the LAN has the config shown in [2].  
> 
> Checking via tcpdump on the gateway, I can see pings from the client
> 
> hitting the internal NIC (fxp1) and going out the IPv6 tunnel
> (gif0).
> 
> In case I've missed something about setting up the tunnel, the 
> details are [3].
> 
> Suggestions, comments, thanks.
> 
> [1] Gateway - 
> [2] Client - 
> [3] Tunnel - 



--
Ariff Abdullah
MyBSD

http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


IPv6: routing on the local LAN

2005-12-24 Thread Dan Langille
Gidday folks,

I have an IPv6 routing problem within my LAN behind the gateway.

I have an IPv6 tunnel supplied by Hurricane Electric.  The tunnel is 
setup and working.  From my gateway I can access various IPv6 
websites (e.g http://www.kame.net).  I have enabled rtadvd(8) on my 
gateway.  For the netstat, ifconfig, etc, see [1].

>From a computer inside my gateway, I cannot ping anything, not even 
the gateway.  I suspect it's because the routing tables are not being 
set up on the gateway.  I expected the system to do that 
automatically.  I also expected fxp0 to get an IPv6 address out of 
this.  Did I guess wrong?  I suspect that if I can get fxp0 on the 
gateway, all will be well.  If not, I think Ineed to set up static 
routes.

The workstation inside the LAN has the config shown in [2].  

Checking via tcpdump on the gateway, I can see pings from the client 
hitting the internal NIC (fxp1) and going out the IPv6 tunnel (gif0).

In case I've missed something about setting up the tunnel, the 
details are [3].

Suggestions, comments, thanks.

[1] Gateway - 
[2] Client - 
[3] Tunnel - 
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"