config as an exit of IPv6 over IPv4 tunnel

2008-07-21 Thread Hashimoto
Can I configure FreeBSD as an exit of IPv6 over IPv4 tunnel?

Let me explain it in detail.
Both hostA and hostB have global IPv4 address.
And hostA has global IPv6 address.
I have installed FreeBSD 7.0 on both hostA and hostB.
Then, I want to config IPv6 over IPv4 tunnel from hostB to hostA.
Is it possible?

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


Re: config as an exit of IPv6 over IPv4 tunnel

2008-07-21 Thread Wojciech Puchar


Let me explain it in detail.
Both hostA and hostB have global IPv4 address.
And hostA has global IPv6 address.
I have installed FreeBSD 7.0 on both hostA and hostB.
Then, I want to config IPv6 over IPv4 tunnel from hostB to hostA.
Is it possible?

i don't understand why you need single directional tunnel. you need 
bidirectional transmission of IP packets.


man gif


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


Re: config as an exit of IPv6 over IPv4 tunnel

2008-07-21 Thread Matthew Seaman

Hashimoto wrote:

Can I configure FreeBSD as an exit of IPv6 over IPv4 tunnel?

Let me explain it in detail.
Both hostA and hostB have global IPv4 address.
And hostA has global IPv6 address.
I have installed FreeBSD 7.0 on both hostA and hostB.
Then, I want to config IPv6 over IPv4 tunnel from hostB to hostA.
Is it possible?



Yes, absolutely.  I have a similar configuration for my IPv6 connectivity.
There are some alternatives (stf(4), faith(4)), but this is based I what
I have.

This is mostly in terms of what you'ld add to /etc/rc.conf on HostB --
HostA will be similar, but addresses will be reversed in the obvious
places.

i) Create a gif(4) interface and configure the endpoints:

gif_interfaces=gif0
gifconfig_gif0=hostB-ipv4-number hostA-ipv4-number

ii) Enable IPv6 on HostB -- I'm assuming you've assigned a /64 
net block to HostB (perhaps a tad excessive, but pretty much the

default for an allocation of a chunk of IPv6 address space.) Adjust
the prefixlen to suit.

ipv6_enable=YES
ipv6_defaultrouter=-interface gif0
ipv6_default_interface=gif0
ipv6_ifconfig_gif0=1234:5678:9abc:def0::1 prefixlen 64

iii) Settings on HostA are slightly different -- HostA has to be a
router, and it only wants to route the HostB block via the gif(4)
tunnel:

ipv6_enable=YES
ipv6_defaultrouter=hostA-ipv6-gateway-address
ipv6_gateway_enable=YES

ipv6_static_routes=hostB
ipv6_route_hostB=1234:5678:9abc:def0:: -prefixlen 64 -interface gif0

iv) That should be everything you need to get point to point connectivity 
working.  Note: it's pretty easy now to make HostB an IPv6 router and

assign IPv6 addresses to anything on the same local subnet as HostB.
In fact, you can use rtadvd(8) on HostB to make that automatic:

ipv6_network_interfaces=auto
ipv6_prefix_em0=1234:5678:9acb:def0
rtadvd_enable=YES
rtadvd_interfaces=em0

Then just run rtsol(8) on all the other machines that will use HostB as
their IPv6 gateway.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: config as an exit of IPv6 over IPv4 tunnel

2008-07-21 Thread Hashimoto
Thanks, Matthew !
I will try it, and report again.

2008/7/21 Matthew Seaman [EMAIL PROTECTED]:
 Hashimoto wrote:

 Can I configure FreeBSD as an exit of IPv6 over IPv4 tunnel?

 Let me explain it in detail.
 Both hostA and hostB have global IPv4 address.
 And hostA has global IPv6 address.
 I have installed FreeBSD 7.0 on both hostA and hostB.
 Then, I want to config IPv6 over IPv4 tunnel from hostB to hostA.
 Is it possible?


 Yes, absolutely.  I have a similar configuration for my IPv6 connectivity.
 There are some alternatives (stf(4), faith(4)), but this is based I what
 I have.

 This is mostly in terms of what you'ld add to /etc/rc.conf on HostB --
 HostA will be similar, but addresses will be reversed in the obvious
 places.

 i) Create a gif(4) interface and configure the endpoints:

 gif_interfaces=gif0
 gifconfig_gif0=hostB-ipv4-number hostA-ipv4-number

 ii) Enable IPv6 on HostB -- I'm assuming you've assigned a /64 net block to
 HostB (perhaps a tad excessive, but pretty much the
 default for an allocation of a chunk of IPv6 address space.) Adjust
 the prefixlen to suit.

 ipv6_enable=YES
 ipv6_defaultrouter=-interface gif0
 ipv6_default_interface=gif0
 ipv6_ifconfig_gif0=1234:5678:9abc:def0::1 prefixlen 64

 iii) Settings on HostA are slightly different -- HostA has to be a
 router, and it only wants to route the HostB block via the gif(4)
 tunnel:

 ipv6_enable=YES
 ipv6_defaultrouter=hostA-ipv6-gateway-address
 ipv6_gateway_enable=YES

 ipv6_static_routes=hostB
 ipv6_route_hostB=1234:5678:9abc:def0:: -prefixlen 64 -interface gif0

 iv) That should be everything you need to get point to point connectivity
 working.  Note: it's pretty easy now to make HostB an IPv6 router and
 assign IPv6 addresses to anything on the same local subnet as HostB.
 In fact, you can use rtadvd(8) on HostB to make that automatic:

 ipv6_network_interfaces=auto
 ipv6_prefix_em0=1234:5678:9acb:def0
 rtadvd_enable=YES
 rtadvd_interfaces=em0

 Then just run rtsol(8) on all the other machines that will use HostB as
 their IPv6 gateway.

Cheers,

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW




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


FreeBSD 4.11 IPv6-over-IPv4 tunnel problem

2005-07-04 Thread Leon Messner
Hi List,

I want to establish an IPv6-over-IPv4 tunnel to my ISP. After some
hours trying i got myself acounts at HE and XS26 for testing and they
work. My Setup is FreeBSD 4.11-STABLE with ip(6)fw (stateful) and natd running.
My ISP gave the appended setup information which is for Debian Linux
(which i've never used). The IPv4 endpoints are 217.197.85.214(me) and
192.109.42.23(ISP) the IPv6 endpoints are 2001:bf0:c00c::c00c:0002:2(me)
and 2001:bf0:c00c::c00c:0002:1(ISP). I asked my ISP for support but
they don't know the way for FreeBSD and they tell me the tunnel is
definitely working. 

I tried doing the following but this and several other approaches did
not yield anything :

zwelf:~# ifconfig gif0 create tunnel 217.197.85.214 192.109.42.23 up 
zwelf:~# ifconfig gif0 inet6 alias 2001:bf0:c00c::c00c:0002:2
zwelf:~# ping6 ff02::1%gif0
PING6(56=40+8+8 bytes) fe80::250:bfff:fe58:6c75%gif0 -- ff02::1%gif0
16 bytes from fe80::250:bfff:fe58:6c75%gif0, icmp_seq=0 hlim=64 time=0.746 ms
16 bytes from fe80::250:bfff:fe58:6c75%gif0, icmp_seq=1 hlim=64 time=0.422 ms
16 bytes from fe80::250:bfff:fe58:6c75%gif0, icmp_seq=2 hlim=64 time=0.427 ms
^C
--- ff02::1%gif0 ping6 statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 0.422/0.532/0.746/0.152 ms

Thanks for reading, any comments appreciated

Leon 


/* /etc/network/interfaces for a Debian system */

auto zwelf6
iface zwelf6 inet6 v4tunnel
  address   2001:bf0:c00c::c00c:0002:2
  netmask   112
  local 217.197.85.214
  endpoint  192.109.42.23
  ttl   64
  up ip tunnel change zwelf6 ttl 64
  up echo 1  /proc/sys/net/ipv6/conf/all/forwarding
  up   ip -6 route add2001::/3 dev zwelf6
  down ip -6 route delete 2001::/3 dev zwelf6

/* full ifconfig */

rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=40POLLING
inet 192.168.10.1 netmask 0xff00 broadcast 192.168.10.255
inet6 fe80::250:bfff:fe58:6c75%rl0 prefixlen 64 scopeid 0x1 
ether 00:50:bf:58:6c:75
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=40POLLING
inet6 fe80::230:84ff:fe0b:15d4%rl1 prefixlen 64 scopeid 0x2 
ether 00:30:84:0b:15:d4
media: Ethernet 10baseT/UTP
status: active
lp0: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet 127.0.0.1 netmask 0xff00 
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
inet 217.197.85.214 -- 192.109.42.172 netmask 0x 
inet6 fe80::250:bfff:fe58:6c75%tun0 prefixlen 64 scopeid 0x7 
Opened by PID 70
gif0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1280
tunnel inet 217.197.85.214 -- 192.109.42.23
inet6 fe80::250:bfff:fe58:6c75%gif0 prefixlen 64 scopeid 0x8 
inet6 2001:bf0:c00c::c00c:2:2 prefixlen 64 

-- 

gnupg key ID: 9B820836  Fingerprint:

6081 8F41 8FEC 0D69 DB98  F014 0FD4 B47D 9B82 0836
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPv6 and IPv4

2002-09-17 Thread Miguel Mendez

On Tue, 17 Sep 2002 16:58:52 +0530
Gautham Ganapathy [EMAIL PROTECTED] wrote:

Hi
 
 Since it is possible to run IPv6 and IPv4 on the same network, and
 most routers supposedly support IPv6, why is there a need to have the
 IPv6

That's not really true, I'm sure most (deployed) routers actually do not
support IPv6 yet.

 network seperate from the internet ? as long as the client and the
 server are both IPv6 enabled (and the routers in b/w), shouldn't this
 work properly?

Since most ISPs are still IPv4 only you have to resort to tricks like
the IPv6-IPv4 tunnels to access the 6bone. It will not 'work properly',
until all the equipment IPSs use is upgraded to IPv6.

In the meantime you can play with IPv6 by getting a tunnel like those
freenet6, Hurricane Electric and others provide.

Cheers,
-- 
Miguel Mendez - [EMAIL PROTECTED]
GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
EnergyHQ :: http://www.energyhq.tk
NetBSD :: Unix without hype

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: IPv6 and IPv4

2002-09-17 Thread Daniel Bye

On Tue, Sep 17, 2002 at 04:58:52PM +0530, Gautham Ganapathy wrote:
 Hi
 
 Since it is possible to run IPv6 and IPv4 on the same network, and most
 routers supposedly support IPv6, why is there a need to have the IPv6
 network seperate from the internet ? as long as the client and the
 server are both IPv6 enabled (and the routers in b/w), shouldn't this
 work properly?

The key point here is that the backbone needs to support IPv6 for it to
work.  If your ISP's backbone doesn't know IPv6, then it won't get 
routed, even if the kit they use is capable of handling it.

You can tunnel IPv6 between widely distributed sites using the gif(4)
and faith(4) pseudo-interfaces.

 
 Gautham
 

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message