Re: IPv6 setup...

2000-03-14 Thread Brian Somers
On Mon, 13 Mar 2000 10:22:08 +0900, Yoshinobu Inoue [EMAIL PROTECTED] said: echo 24.113.25.85 | sed -e s/"\."/" "/g | awk '{$5 = $1*256 + $2; $6 = $3*256 + $4; printf "2002:%x:%x:\n", $5, $6}' Or, without only one extra process: myaddr=24.113.25.85 OIFS="$IFS" IFS=".$IFS" set

Re: IPv6 setup...

2000-03-13 Thread Garrett Wollman
On Mon, 13 Mar 2000 10:22:08 +0900, Yoshinobu Inoue [EMAIL PROTECTED] said: echo 24.113.25.85 | sed -e s/"\."/" "/g | awk '{$5 = $1*256 + $2; $6 = $3*256 + $4; printf "2002:%x:%x:\n", $5, $6}' Or, without only one extra process: myaddr=24.113.25.85 OIFS="$IFS" IFS=".$IFS" set $myaddr

Re: IPv6 setup...

2000-03-13 Thread Yoshinobu Inoue
echo 24.113.25.85 | sed -e s/"\."/" "/g | awk '{$5 = $1*256 + $2; $6 = $3*256 + $4; printf "2002:%x:%x:\n", $5, $6}' Or, without only one extra process: myaddr=24.113.25.85 OIFS="$IFS" IFS=".$IFS" set $myaddr IFS="$OIFS" printf "2002:%x:%x:\n" $(($1 * 256 + $2)) $(($3 * 256 + $4))

Re: IPv6 setup...

2000-03-12 Thread Shaun (UNIX)
OK, What is the correct one?? How do I calulate the IP from IPv6, what is the formula? Shaun On Mon, 13 Mar 2000, Daniel C. Sobral wrote: Yoshinobu Inoue wrote: Shouldn't this be 2002:e071:8253: instead? Ah, if real IPv4 addr is 240:113:130:083, then I think it will be,

Re: IPv6 setup...

2000-03-12 Thread Shaun (UNIX)
oh The IPv4 I want to use is 24.113.25.85 and 24.113.130.83 Thanks.. On Mon, 13 Mar 2000, Daniel C. Sobral wrote: Yoshinobu Inoue wrote: Shouldn't this be 2002:e071:8253: instead? Ah, if real IPv4 addr is 240:113:130:083, then I think it will be, 2002:f071:8253: Err, f0,

Re: IPv6 setup...

2000-03-12 Thread Yoshinobu Inoue
OK, What is the correct one?? How do I calulate the IP from IPv6, what is the formula? oh The IPv4 I want to use is 24.113.25.85 and 24.113.130.83 Are you tring to do multihoming? Then things might be more complicated. Let's forget the 2nd IPv4 addr for simplicity, now. If your addr is

Re: IPv6 setup...

2000-03-12 Thread Yoshinobu Inoue
(Now I am comfirming a new rc.conf entry which automate above IPv6 prefix calucuration, and etc, for 6to4 interface configuration.) As I also said in my previous mail with this subject, this is committed. If anyone intersted, please try it. If you have IPv4 1.2.3.4 for your 6to4 interface,

Re: IPv6 setup...

2000-03-12 Thread Jun-ichiro itojun Hagino
And if you want to check 6to4 prefix for some IPv4 addr without doing 6to4 interface configuration, please try following command. echo 24.113.25.85 | sed -e s/"\."/" "/g | awk '{$5 = $1*256 + $2; $6 = $3*256 + $4; printf "2002:%x:%x:\n", $5, $6}' Then it will print out first 6byte for your

Re: IPv6 setup...

2000-03-12 Thread Yoshinobu Inoue
echo 24.113.25.85 | sed -e s/"\."/" "/g | awk '{$5 = $1*256 + $2; $6 = $3*256 + $4; printf "2002:%x:%x:\n", $5, $6}' Then it will print out first 6byte for your 6to4 prefix. just checking. from code inspection on cvsweb, - rc.network6 is called before performing nfs

Re: IPv6 setup...

2000-03-12 Thread Daniel C. Sobral
Yoshinobu Inoue wrote: So my IPv4 address is 24.113.130.83 that in IPv6 would be 2002:240:113:130:083 ?? No, no, because IPv6 address is printed in hex format each 2bytes separated by collon, so the 1st 6bytes will be, 2002:1871:8253: Shouldn't this be 2002:e071:8253: instead? --

Re: IPv6 setup...

2000-03-12 Thread Yoshinobu Inoue
So my IPv4 address is 24.113.130.83 that in IPv6 would be 2002:240:113:130:083 ?? No, no, because IPv6 address is printed in hex format each 2bytes separated by collon, so the 1st 6bytes will be, 2002:1871:8253: Shouldn't this be 2002:e071:8253: instead? Ah, if real IPv4

Re: IPv6 setup...

2000-03-12 Thread Daniel C. Sobral
Yoshinobu Inoue wrote: Shouldn't this be 2002:e071:8253: instead? Ah, if real IPv4 addr is 240:113:130:083, then I think it will be, 2002:f071:8253: Err, f0, of course... :-) (Now I am comfirming a new rc.conf entry which automate above IPv6 prefix calucuration, and etc, for 6to4

Re: IPv6 setup...

2000-03-11 Thread Yoshinobu Inoue
How/Where is the setup for the IPv6? Shaun If you have recent tree or Freebsd4.0 RC3, then there will be IPv6 specific configuration examples in /etc/defaults/rc.conf. The lines which start from "ipv6_..." are them. At least you need to set ipv6_enable to YES. You need to add the follwing

Re: IPv6 setup...

2000-03-11 Thread Shaun (UNIX)
Ok, now I would like to get some good info on IPv6 and how it is structured. Mainly looking for how it works in regards to setting up IP's and how the IP formatting works. Eg. IPv4 has special blocks of IPs that are only used for internal networks with there own subnet masks etc. That kind of

Re: IPv6 setup...

2000-03-11 Thread Shaun (UNIX)
I believe I'm looking for a public IPv6 address to use for testing purposes. So where/what addresses can I use is my question. then how I intergrate that into my setup. Hope that makes the question more clearer. Thanks On Sat, 11 Mar 2000, Shaun (UNIX) wrote: Ok, now I would like to get some

Re: IPv6 setup...

2000-03-11 Thread Yoshinobu Inoue
I believe I'm looking for a public IPv6 address to use for testing purposes. So where/what addresses can I use is my question. then how I intergrate that into my setup. Hope that makes the question more clearer. Thanks OK, then I think you should try 6to4 addr. The format is like below.

Re: IPv6 setup...

2000-03-11 Thread Shaun (UNIX)
So my IPv4 address is 24.113.130.83 that in IPv6 would be 2002:240:113:130:083 ?? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: IPv6 setup...

2000-03-11 Thread Yoshinobu Inoue
Hi, So my IPv4 address is 24.113.130.83 that in IPv6 would be 2002:240:113:130:083 ?? No, no, because IPv6 address is printed in hex format each 2bytes separated by collon, so the 1st 6bytes will be, 2002:1871:8253: and if printed in full 16bytes,