Mailing List Archive

Tunnel IPv6
Anyone know how we can configure a tunnel IPv6 between a Link Service(4) in JUNOS [6.0R1.5] and a FreeBSD 4.8 box?
Any pointer would be appreciated.


JUNOS Configuration:

gr-0/1/0 {
traceoptions {
flag all;
}
unit 0 {
tunnel {
source 200.160.0.130;
destination 200.160.0.9;
}
family inet6 {
address 2001:12ff::1/126;
}
}
}

ge-1/3/0 {
description "GE gw02 <-> gw01 (iBGP)";
speed 1g;
link-mode full-duplex;
unit 0 {
family inet {
no-redirects;
address 200.160.0.130/30;
}
}
}


FreeBSD Interfaces Configuration:

$ ifconfig em1
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<rxcsum,txcsum>
inet 200.160.0.9 netmask 0xffffffc0 broadcast 200.160.0.63
inet6 fe80::20b:dbff:fe90:ea73%em1 prefixlen 64 scopeid 0x2
ether 00:0b:db:90:ea:73
media: Ethernet 100baseTX <full-duplex>
status: active

$ ifconfig gif0
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
tunnel inet 200.160.0.9 --> 200.160.0.137
inet6 2001:12ff::2 prefixlen 64
inet6 fe80::20b:dbff:fe90:ea72%gif0 prefixlen 64 scopeid 0x7



--
Luciano Pereira Gomes
<lgomes@registro.br>
Tunnel IPv6 [ In reply to ]
On Thu, Sep 11, 2003 at 12:16:52PM -0300, Luciano P Gomes wrote:
> Anyone know how we can configure a tunnel IPv6 between a Link Service(4) in JUNOS [6.0R1.5] and a FreeBSD 4.8 box?
> Any pointer would be appreciated.
>
>
> JUNOS Configuration:
>
> gr-0/1/0 {
> traceoptions {
> flag all;
> }
> unit 0 {
> tunnel {
> source 200.160.0.130;
> destination 200.160.0.9;
> }
> family inet6 {
> address 2001:12ff::1/126;
> }
> }
> }
>
> ge-1/3/0 {
> description "GE gw02 <-> gw01 (iBGP)";
> speed 1g;
> link-mode full-duplex;
> unit 0 {
> family inet {
> no-redirects;
> address 200.160.0.130/30;
> }
> }
> }
>
>
> FreeBSD Interfaces Configuration:
>
> $ ifconfig em1
> em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> options=3<rxcsum,txcsum>
> inet 200.160.0.9 netmask 0xffffffc0 broadcast 200.160.0.63
> inet6 fe80::20b:dbff:fe90:ea73%em1 prefixlen 64 scopeid 0x2
> ether 00:0b:db:90:ea:73
> media: Ethernet 100baseTX <full-duplex>
> status: active

Sorry for this information. The correct gif0 Configuration is:


gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
tunnel inet 200.160.0.9 --> 200.160.0.130
-------------
inet6 2001:12ff::2 prefixlen 64
inet6 fe80::20b:dbff:fe90:ea72%gif0 prefixlen 64 scopeid 0x7


>
> $ ifconfig gif0
> gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
> tunnel inet 200.160.0.9 --> 200.160.0.137
> inet6 2001:12ff::2 prefixlen 64
> inet6 fe80::20b:dbff:fe90:ea72%gif0 prefixlen 64 scopeid 0x7
>
>
>
> --
> Luciano Pereira Gomes
> <lgomes@registro.br>
>
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp


Best Regards,


--
Luciano Pereira Gomes
<lgomes@registro.br>
Tunnel IPv6 [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----

Luciano P Gomes wrote:

Juniper side (http://www.sixxs.net/faq/?faq=ossetup&os=juniper)

gr-1/1/0 {
unit 101 {
tunnel {
source [Your IPv4 Endpoint];
destination [POP IPv4 Endpoint];
}
family inet6 {
address [Your IPv6 Endpoint]/[Prefix Length];
}
}
}

routing-options {
rib inet6.0 {
static {
route 0::/0 next-hop [POP IPv6 Endpoint];
}
}
}

FreeBSD side (http://www.sixxs.net/faq/?faq=ossetup&os=freebsd)

# gifconfig gif0 [Your IPv4 Endpoint] [POP IPv4 Endpoint]
# ifconfig gif0 inet6 [Your IPv6 Endpoint] [POP IPv6 Endpoint] prefixlen 128
# route add -inet6 default [POP IPv6 Endpoint]
# sysctl -w net.inet6.ip6.forwarding=1

Check the URL's for other OS's :)

Greets,
Jeroen

-----BEGIN PGP SIGNATURE-----
Version: Unfix PGP for Outlook Alpha 13 Int.
Comment: Jeroen Massar / jeroen@unfix.org / http://unfix.org/~jeroen/

iQA/AwUBP2CX4imqKFIzPnwjEQJ9qQCeLxK6W9m14GY8PfDgBQm8GlrmO4MAnAmw
uXT6Hv2AO+Jlwr3eaWqDgGyN
=6s5r
-----END PGP SIGNATURE-----