IPv4-only networks via IPv6-only network

Ichiro Okajima okajima at mlab.yrp.nttdocomo.co.jp
Wed Dec 3 11:43:12 CET 2003


Hello Guus,

> > I would like to connect two IPv4-only networks through global IPv6-only
> > network with tinc.
> >
> > Could anyone tell me how to configure tinc.conf and the other config files?
>
>There's nothing special about it. Just add IPv4 Subnets and IPv6 Address
>statements to the host config files. You can add AddressFamily = IPv6 to
>tinc.conf so that it will never try to connect to other tinc daemons via
>IPv4, but that should not be necessary.

Thank you very much.

The IPv4-only networks have been connected through the IPv6-only
network with the tinc.conf and host configuration files that you advised me.

But, I run into another problem. The round trip time of tunneled IPv4
packets between two tincnized Redhat9 PCs fluctuates on the order of
0.532 to 10.554 ms, although that of IPv6 packets between them are
very stable. Because I am planning to use a VoIP application between
the two IPv4 network, stable RTTs of IPv4 packets are necessary.

Do you have any idea to improve the RTT?

* Conditions

+-----------------+ +-------------------+ +-----------------+
|     192.168.10.2| |2000::1/64         | |                 |
|               +-+-+-+               +-+-+-+               |
| IPv4-only Net | PC1 | IPv6-only Net | PC2 | IPv4-only Net |
|               +-+-+ +    (small)    +-+-+-+               |
|                 | |         2000::2/64| |192.168.20.2     |
+-----------------+ +-------------------+ +-----------------+
                   <-------- RTTv4 --------->
                      <----- RTTv6 ------>
Mode setting in the tinc.conf is router.
IPv4 addresses above are assigned to tinc interfaces and IPv6 addresses
above are assigned to eth0 interfaces that are attached to the IPv6-only
network.

* 100 RTTs of tunneled IPv4 packets between PC1 and PC2
PING 192.168.20.2 (192.168.20.2) from 192.168.10.2 : 56(84) bytes of data.
64 bytes from 192.168.20.2: icmp_seq=1 ttl=64 time=0.734 ms
64 bytes from 192.168.20.2: icmp_seq=2 ttl=64 time=2.60 ms
64 bytes from 192.168.20.2: icmp_seq=3 ttl=64 time=0.812 ms
64 bytes from 192.168.20.2: icmp_seq=4 ttl=64 time=2.00 ms
64 bytes from 192.168.20.2: icmp_seq=5 ttl=64 time=1.67 ms
64 bytes from 192.168.20.2: icmp_seq=6 ttl=64 time=0.720 ms
64 bytes from 192.168.20.2: icmp_seq=7 ttl=64 time=0.619 ms
64 bytes from 192.168.20.2: icmp_seq=8 ttl=64 time=7.73 ms
64 bytes from 192.168.20.2: icmp_seq=9 ttl=64 time=0.579 ms
64 bytes from 192.168.20.2: icmp_seq=10 ttl=64 time=5.59 ms
64 bytes from 192.168.20.2: icmp_seq=11 ttl=64 time=2.32 ms
64 bytes from 192.168.20.2: icmp_seq=12 ttl=64 time=0.676 ms
64 bytes from 192.168.20.2: icmp_seq=13 ttl=64 time=0.737 ms
64 bytes from 192.168.20.2: icmp_seq=14 ttl=64 time=0.891 ms
64 bytes from 192.168.20.2: icmp_seq=15 ttl=64 time=5.81 ms
64 bytes from 192.168.20.2: icmp_seq=16 ttl=64 time=5.36 ms
64 bytes from 192.168.20.2: icmp_seq=17 ttl=64 time=3.55 ms
64 bytes from 192.168.20.2: icmp_seq=18 ttl=64 time=0.719 ms
64 bytes from 192.168.20.2: icmp_seq=19 ttl=64 time=0.639 ms
64 bytes from 192.168.20.2: icmp_seq=20 ttl=64 time=0.584 ms
64 bytes from 192.168.20.2: icmp_seq=21 ttl=64 time=2.25 ms
64 bytes from 192.168.20.2: icmp_seq=22 ttl=64 time=1.22 ms
64 bytes from 192.168.20.2: icmp_seq=23 ttl=64 time=8.70 ms
64 bytes from 192.168.20.2: icmp_seq=24 ttl=64 time=0.616 ms
64 bytes from 192.168.20.2: icmp_seq=25 ttl=64 time=7.05 ms
64 bytes from 192.168.20.2: icmp_seq=26 ttl=64 time=0.648 ms
64 bytes from 192.168.20.2: icmp_seq=27 ttl=64 time=0.570 ms
64 bytes from 192.168.20.2: icmp_seq=28 ttl=64 time=0.767 ms
64 bytes from 192.168.20.2: icmp_seq=29 ttl=64 time=0.539 ms
64 bytes from 192.168.20.2: icmp_seq=30 ttl=64 time=0.645 ms
64 bytes from 192.168.20.2: icmp_seq=31 ttl=64 time=6.08 ms
64 bytes from 192.168.20.2: icmp_seq=32 ttl=64 time=4.28 ms
64 bytes from 192.168.20.2: icmp_seq=33 ttl=64 time=0.805 ms
64 bytes from 192.168.20.2: icmp_seq=34 ttl=64 time=0.716 ms
64 bytes from 192.168.20.2: icmp_seq=35 ttl=64 time=2.83 ms
64 bytes from 192.168.20.2: icmp_seq=36 ttl=64 time=1.04 ms
64 bytes from 192.168.20.2: icmp_seq=37 ttl=64 time=0.649 ms
64 bytes from 192.168.20.2: icmp_seq=38 ttl=64 time=9.45 ms
64 bytes from 192.168.20.2: icmp_seq=39 ttl=64 time=7.71 ms
64 bytes from 192.168.20.2: icmp_seq=40 ttl=64 time=3.90 ms
64 bytes from 192.168.20.2: icmp_seq=41 ttl=64 time=0.803 ms
64 bytes from 192.168.20.2: icmp_seq=42 ttl=64 time=0.579 ms
64 bytes from 192.168.20.2: icmp_seq=43 ttl=64 time=0.711 ms
64 bytes from 192.168.20.2: icmp_seq=44 ttl=64 time=2.60 ms
64 bytes from 192.168.20.2: icmp_seq=45 ttl=64 time=0.826 ms
64 bytes from 192.168.20.2: icmp_seq=46 ttl=64 time=0.763 ms
64 bytes from 192.168.20.2: icmp_seq=47 ttl=64 time=1.14 ms
64 bytes from 192.168.20.2: icmp_seq=48 ttl=64 time=9.36 ms
64 bytes from 192.168.20.2: icmp_seq=49 ttl=64 time=0.654 ms
64 bytes from 192.168.20.2: icmp_seq=50 ttl=64 time=7.71 ms
64 bytes from 192.168.20.2: icmp_seq=51 ttl=64 time=3.98 ms
64 bytes from 192.168.20.2: icmp_seq=52 ttl=64 time=3.64 ms
64 bytes from 192.168.20.2: icmp_seq=53 ttl=64 time=0.599 ms
64 bytes from 192.168.20.2: icmp_seq=54 ttl=64 time=10.5 ms
64 bytes from 192.168.20.2: icmp_seq=55 ttl=64 time=8.84 ms
64 bytes from 192.168.20.2: icmp_seq=56 ttl=64 time=6.98 ms
64 bytes from 192.168.20.2: icmp_seq=57 ttl=64 time=5.20 ms
64 bytes from 192.168.20.2: icmp_seq=58 ttl=64 time=3.42 ms
64 bytes from 192.168.20.2: icmp_seq=59 ttl=64 time=0.828 ms
64 bytes from 192.168.20.2: icmp_seq=60 ttl=64 time=0.613 ms
64 bytes from 192.168.20.2: icmp_seq=61 ttl=64 time=1.95 ms
64 bytes from 192.168.20.2: icmp_seq=62 ttl=64 time=10.2 ms
64 bytes from 192.168.20.2: icmp_seq=63 ttl=64 time=8.34 ms
64 bytes from 192.168.20.2: icmp_seq=64 ttl=64 time=6.57 ms
64 bytes from 192.168.20.2: icmp_seq=65 ttl=64 time=4.79 ms
64 bytes from 192.168.20.2: icmp_seq=66 ttl=64 time=0.765 ms
64 bytes from 192.168.20.2: icmp_seq=67 ttl=64 time=0.791 ms
64 bytes from 192.168.20.2: icmp_seq=68 ttl=64 time=1.99 ms
64 bytes from 192.168.20.2: icmp_seq=69 ttl=64 time=0.566 ms
64 bytes from 192.168.20.2: icmp_seq=70 ttl=64 time=1.68 ms
64 bytes from 192.168.20.2: icmp_seq=71 ttl=64 time=10.1 ms
64 bytes from 192.168.20.2: icmp_seq=72 ttl=64 time=8.10 ms
64 bytes from 192.168.20.2: icmp_seq=73 ttl=64 time=6.47 ms
64 bytes from 192.168.20.2: icmp_seq=74 ttl=64 time=5.59 ms
64 bytes from 192.168.20.2: icmp_seq=75 ttl=64 time=2.87 ms
64 bytes from 192.168.20.2: icmp_seq=76 ttl=64 time=0.965 ms
64 bytes from 192.168.20.2: icmp_seq=77 ttl=64 time=9.51 ms
64 bytes from 192.168.20.2: icmp_seq=78 ttl=64 time=0.599 ms
64 bytes from 192.168.20.2: icmp_seq=79 ttl=64 time=7.55 ms
64 bytes from 192.168.20.2: icmp_seq=80 ttl=64 time=0.618 ms
64 bytes from 192.168.20.2: icmp_seq=81 ttl=64 time=5.94 ms
64 bytes from 192.168.20.2: icmp_seq=82 ttl=64 time=0.600 ms
64 bytes from 192.168.20.2: icmp_seq=83 ttl=64 time=4.31 ms
64 bytes from 192.168.20.2: icmp_seq=84 ttl=64 time=0.568 ms
64 bytes from 192.168.20.2: icmp_seq=85 ttl=64 time=2.64 ms
64 bytes from 192.168.20.2: icmp_seq=86 ttl=64 time=0.751 ms
64 bytes from 192.168.20.2: icmp_seq=87 ttl=64 time=9.67 ms
64 bytes from 192.168.20.2: icmp_seq=88 ttl=64 time=7.33 ms
64 bytes from 192.168.20.2: icmp_seq=89 ttl=64 time=0.582 ms
64 bytes from 192.168.20.2: icmp_seq=90 ttl=64 time=5.75 ms
64 bytes from 192.168.20.2: icmp_seq=91 ttl=64 time=0.678 ms
64 bytes from 192.168.20.2: icmp_seq=92 ttl=64 time=0.731 ms
64 bytes from 192.168.20.2: icmp_seq=93 ttl=64 time=0.710 ms
64 bytes from 192.168.20.2: icmp_seq=94 ttl=64 time=2.42 ms
64 bytes from 192.168.20.2: icmp_seq=95 ttl=64 time=0.601 ms
64 bytes from 192.168.20.2: icmp_seq=96 ttl=64 time=0.784 ms
64 bytes from 192.168.20.2: icmp_seq=97 ttl=64 time=0.569 ms
64 bytes from 192.168.20.2: icmp_seq=98 ttl=64 time=0.623 ms
64 bytes from 192.168.20.2: icmp_seq=99 ttl=64 time=0.532 ms
64 bytes from 192.168.20.2: icmp_seq=100 ttl=64 time=0.608 ms

--- 192.168.20.2 ping statistics ---
100 packets transmitted, 100 received, 0% loss, time 99118ms
rtt min/avg/max/mdev = 0.532/3.112/10.554/3.093 ms

*100 RTTs of IPv6 packets between PC1 and PC2
PING 2000::2(2000::2) from 2000::1 : 56 data bytes
64 bytes from 2000::2: icmp_seq=1  ttl=64 time=0.192 ms
64 bytes from 2000::2: icmp_seq=2  ttl=64 time=0.244 ms
64 bytes from 2000::2: icmp_seq=3  ttl=64 time=0.144 ms
64 bytes from 2000::2: icmp_seq=4  ttl=64 time=0.189 ms
64 bytes from 2000::2: icmp_seq=5  ttl=64 time=0.265 ms
64 bytes from 2000::2: icmp_seq=6  ttl=64 time=0.192 ms
64 bytes from 2000::2: icmp_seq=7  ttl=64 time=0.265 ms
64 bytes from 2000::2: icmp_seq=8  ttl=64 time=0.189 ms
64 bytes from 2000::2: icmp_seq=9  ttl=64 time=0.261 ms
64 bytes from 2000::2: icmp_seq=10  ttl=64 time=0.197 ms
64 bytes from 2000::2: icmp_seq=11  ttl=64 time=0.243 ms
64 bytes from 2000::2: icmp_seq=12  ttl=64 time=0.182 ms
64 bytes from 2000::2: icmp_seq=13  ttl=64 time=0.204 ms
64 bytes from 2000::2: icmp_seq=14  ttl=64 time=0.198 ms
64 bytes from 2000::2: icmp_seq=15  ttl=64 time=0.250 ms
64 bytes from 2000::2: icmp_seq=16  ttl=64 time=0.174 ms
64 bytes from 2000::2: icmp_seq=17  ttl=64 time=0.241 ms
64 bytes from 2000::2: icmp_seq=18  ttl=64 time=0.156 ms
64 bytes from 2000::2: icmp_seq=19  ttl=64 time=0.244 ms
64 bytes from 2000::2: icmp_seq=20  ttl=64 time=0.189 ms
64 bytes from 2000::2: icmp_seq=21  ttl=64 time=0.233 ms
64 bytes from 2000::2: icmp_seq=22  ttl=64 time=0.165 ms
64 bytes from 2000::2: icmp_seq=23  ttl=64 time=0.228 ms
64 bytes from 2000::2: icmp_seq=24  ttl=64 time=0.163 ms
64 bytes from 2000::2: icmp_seq=25  ttl=64 time=0.232 ms
64 bytes from 2000::2: icmp_seq=26  ttl=64 time=0.153 ms
64 bytes from 2000::2: icmp_seq=27  ttl=64 time=0.178 ms
64 bytes from 2000::2: icmp_seq=28  ttl=64 time=0.152 ms
64 bytes from 2000::2: icmp_seq=29  ttl=64 time=0.220 ms
64 bytes from 2000::2: icmp_seq=30  ttl=64 time=0.158 ms
64 bytes from 2000::2: icmp_seq=31  ttl=64 time=0.217 ms
64 bytes from 2000::2: icmp_seq=32  ttl=64 time=0.142 ms
64 bytes from 2000::2: icmp_seq=33  ttl=64 time=0.168 ms
64 bytes from 2000::2: icmp_seq=34  ttl=64 time=0.222 ms
64 bytes from 2000::2: icmp_seq=35  ttl=64 time=0.222 ms
64 bytes from 2000::2: icmp_seq=36  ttl=64 time=0.261 ms
64 bytes from 2000::2: icmp_seq=37  ttl=64 time=0.206 ms
64 bytes from 2000::2: icmp_seq=38  ttl=64 time=0.123 ms
64 bytes from 2000::2: icmp_seq=39  ttl=64 time=0.210 ms
64 bytes from 2000::2: icmp_seq=40  ttl=64 time=0.267 ms
64 bytes from 2000::2: icmp_seq=41  ttl=64 time=0.195 ms
64 bytes from 2000::2: icmp_seq=42  ttl=64 time=0.257 ms
64 bytes from 2000::2: icmp_seq=43  ttl=64 time=0.195 ms
64 bytes from 2000::2: icmp_seq=44  ttl=64 time=0.250 ms
64 bytes from 2000::2: icmp_seq=45  ttl=64 time=0.200 ms
64 bytes from 2000::2: icmp_seq=46  ttl=64 time=0.246 ms
64 bytes from 2000::2: icmp_seq=47  ttl=64 time=0.185 ms
64 bytes from 2000::2: icmp_seq=48  ttl=64 time=0.242 ms
64 bytes from 2000::2: icmp_seq=49  ttl=64 time=0.180 ms
64 bytes from 2000::2: icmp_seq=50  ttl=64 time=0.251 ms
64 bytes from 2000::2: icmp_seq=51  ttl=64 time=0.174 ms
64 bytes from 2000::2: icmp_seq=52  ttl=64 time=0.234 ms
64 bytes from 2000::2: icmp_seq=53  ttl=64 time=0.168 ms
64 bytes from 2000::2: icmp_seq=54  ttl=64 time=0.231 ms
64 bytes from 2000::2: icmp_seq=55  ttl=64 time=0.177 ms
64 bytes from 2000::2: icmp_seq=56  ttl=64 time=0.227 ms
64 bytes from 2000::2: icmp_seq=57  ttl=64 time=0.164 ms
64 bytes from 2000::2: icmp_seq=58  ttl=64 time=0.224 ms
64 bytes from 2000::2: icmp_seq=59  ttl=64 time=0.234 ms
64 bytes from 2000::2: icmp_seq=60  ttl=64 time=0.222 ms
64 bytes from 2000::2: icmp_seq=61  ttl=64 time=0.141 ms
64 bytes from 2000::2: icmp_seq=62  ttl=64 time=0.219 ms
64 bytes from 2000::2: icmp_seq=63  ttl=64 time=0.155 ms
64 bytes from 2000::2: icmp_seq=64  ttl=64 time=0.270 ms
64 bytes from 2000::2: icmp_seq=65  ttl=64 time=0.206 ms
64 bytes from 2000::2: icmp_seq=66  ttl=64 time=0.211 ms
64 bytes from 2000::2: icmp_seq=67  ttl=64 time=0.194 ms
64 bytes from 2000::2: icmp_seq=68  ttl=64 time=0.242 ms
64 bytes from 2000::2: icmp_seq=69  ttl=64 time=0.178 ms
64 bytes from 2000::2: icmp_seq=70  ttl=64 time=0.264 ms
64 bytes from 2000::2: icmp_seq=71  ttl=64 time=0.185 ms
64 bytes from 2000::2: icmp_seq=72  ttl=64 time=0.249 ms
64 bytes from 2000::2: icmp_seq=73  ttl=64 time=0.177 ms
64 bytes from 2000::2: icmp_seq=74  ttl=64 time=0.239 ms
64 bytes from 2000::2: icmp_seq=75  ttl=64 time=0.177 ms
64 bytes from 2000::2: icmp_seq=76  ttl=64 time=0.237 ms
64 bytes from 2000::2: icmp_seq=77  ttl=64 time=0.173 ms
64 bytes from 2000::2: icmp_seq=78  ttl=64 time=0.232 ms
64 bytes from 2000::2: icmp_seq=79  ttl=64 time=0.165 ms
64 bytes from 2000::2: icmp_seq=80  ttl=64 time=0.239 ms
64 bytes from 2000::2: icmp_seq=81  ttl=64 time=0.158 ms
64 bytes from 2000::2: icmp_seq=82  ttl=64 time=0.224 ms
64 bytes from 2000::2: icmp_seq=83  ttl=64 time=0.159 ms
64 bytes from 2000::2: icmp_seq=84  ttl=64 time=0.226 ms
64 bytes from 2000::2: icmp_seq=85  ttl=64 time=0.159 ms
64 bytes from 2000::2: icmp_seq=86  ttl=64 time=0.215 ms
64 bytes from 2000::2: icmp_seq=87  ttl=64 time=0.152 ms
64 bytes from 2000::2: icmp_seq=88  ttl=64 time=0.214 ms
64 bytes from 2000::2: icmp_seq=89  ttl=64 time=0.240 ms
64 bytes from 2000::2: icmp_seq=90  ttl=64 time=0.180 ms
64 bytes from 2000::2: icmp_seq=91  ttl=64 time=0.271 ms
64 bytes from 2000::2: icmp_seq=92  ttl=64 time=0.207 ms
64 bytes from 2000::2: icmp_seq=93  ttl=64 time=0.265 ms
64 bytes from 2000::2: icmp_seq=94  ttl=64 time=0.155 ms
64 bytes from 2000::2: icmp_seq=95  ttl=64 time=0.281 ms
64 bytes from 2000::2: icmp_seq=96  ttl=64 time=0.190 ms
64 bytes from 2000::2: icmp_seq=97  ttl=64 time=0.252 ms
64 bytes from 2000::2: icmp_seq=98  ttl=64 time=0.197 ms
64 bytes from 2000::2: icmp_seq=99  ttl=64 time=0.260 ms
64 bytes from 2000::2: icmp_seq=100  ttl=64 time=0.200 ms

--- 2000::2 ping statistics ---
100 packets transmitted, 100 received, 0% loss, time 99000ms
rtt min/avg/max/mdev = 0.123/0.207/0.281/0.040 ms

Thanks in advance,

Ichiro Okajima 

Tinc:         Discussion list about the tinc VPN daemon
Archive:      http://mail.nl.linux.org/lists/
Tinc site:    http://tinc.nl.linux.org/




More information about the Tinc mailing list