[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 03511) Re: How to create an ip6-in-ip6 tunnel and ip4-over-ip6 tunnel in linux ??



Hi ,

I have tried a 6-4 tunnel set up

Here are the commands  and configuration

--------
----------------------eth1----------| | eth0--------------------------------------------------------------| PC2|-----------eth1
| PC1 | eth0 |--------|



configure the interfaces with the following addresses ===================================

eth1 on PC1 : fec0::1  ( ifconfig eth1 inet6 add fec0::1 up)
eth1 on PC2 : fec0::2

eth0 on PC1 --172.16.5.62 (ifconfig eth0 172.16.5.62 up)
eth0 on PC2 is 172.16.5.63

configuration on PC1
================

ip tunnel add tun6to4 mode sit ttl 254 remote 172.16.5.63 local 172.16.5.62
ip link set dev tun6to4 up
ip -6 addr add 2002:ac10:053e::1/16 dev tun6to4 ( this is 6to4 prefix address of pc1)
ip -6 route add fec0::2/16 via 2002:ac10:053f::1 dev tun6to4


configuration on PC2
================

ip tunnel add tun6to4 mode sit ttl 254 remote 172.16.5.62 local 172.16.5.63
ip link set dev tun6to4 up
ip -6 addr add 2002:ac10:053f::1/16 dev tun6to4 ( this is 6to4 prefix address of pc2)
ip -6 route add fec0::1/16 via 2002:ac10:053e::1 dev tun6to4


now give ping6 -I eth1 -c 1 fec0::2 on pc1 and also ping6 -I eth1 fec0::1 on pc2 both the pings will be successful

To ensure that the tunnel is actually forming delete the tunnel using the following commands
and give the above ping commands ..they will fail.


ip -6 route flush dev tun6to4
ip link set dev tun6to4 down
ip tunnel del tun6to4

regards,
Kalyani.


At 02:15 PM 10/6/2005, Pramendra Singh wrote:

Hi to all,

can anyone please let me know how to create an ip6-in-ip6 tunnel
and ip4-over-ip6 tunnel in linux. is these tunnels are supported by
iproute2 tool?? please let me know the command or any document
which I should refer , if anyone of you have worked
on this.

thanks and regards

Pramendra Singh
Larsen and Toubro Infotech
______________________________________________________________________