Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2010 00:43:32 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        lasse@bitmand.com
Cc:        freebsd-net@FreeBSD.org
Subject:   Re: Default gateway on different net
Message-ID:  <20100924.004332.121072178.hrs@allbsd.org>
In-Reply-To: <6BE964C4-0838-4DA6-9278-12C620CA1EE1@bitmand.com>
References:  <6BE964C4-0838-4DA6-9278-12C620CA1EE1@bitmand.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Sep_24_00_43_32_2010_590)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Lasse Brandt <lasse@bitmand.com> wrote
  in <6BE964C4-0838-4DA6-9278-12C620CA1EE1@bitmand.com>:

la> 1) Is the hosting provider actually forcing me to do something "bad"
la> og plain wrong?

 In that situation normally you get an IP address in the /59 network
 to communicate with the gateway router from ISP.  An IP address in
 your /64 network cannot directly communicate with an address in /59.

 If you do not have the /59 address, I think using link-local address
 is the easiest way.  As long as the gateway works correctly, you can
 get its link-local address by using the following command:

 % ping6 ff02::2%re0
 PING6(56=40+8+8 bytes) fe80::XXXX:XXXX:XXXX:XXXX%re0 --> ff02::2%re0
 16 bytes from fe80::YYYY:YYYY:YYYY:YYYY%re0, icmp_seq=0 hlim=64 time=0.525 ms
 16 bytes from fe80::YYYY:YYYY:YYYY:YYYY%re0, icmp_seq=1 hlim=64 time=0.312 ms
 ^C

 Note that "XXXX:.." is your address on re0, and "YYYY:.." is the
 gateway's.  You do not need any configuration like assigning
 2a01:... address into re0 or static routes before performing this
 ping.  At least one router replies to this and displays its link-local
 address.

 After that, you can add the default route to it:

 # route add -inet6 default fe80::YYYY:YYYY:YYYY:YYYY%re0

 and configure your /64 address (2a01:...) to re0.

-- Hiroki

----Security_Multipart(Fri_Sep_24_00_43_32_2010_590)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkybdaQACgkQTyzT2CeTzy34zACdG8dFeZNIHfkYYES1X6iRi4C/
D4YAnjOg/q2RSlUV1wqaLTX26VBJPJzU
=OFkr
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Sep_24_00_43_32_2010_590)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100924.004332.121072178.hrs>