(usagi-users 03513) Re: How to create an ip6-in-ip6 tunnel and ip4-over-ip6 tunnel in linux ??
Pramendra Singh <[email protected]>
| Newsgroups | gmane.linux.ipv6.usagi.users |
|---|---|
| Message-ID | <OFD98CC9C2.75EDFF51-ON65257092.003D7E06-65257092.003DBEB5@lntinfotech.com> |
Hi kalyani, thanks for your response! What you have mentioned in the mail I think it is for ipv6-over-ipv4 tunnel, that I have already done. the mode you have used in command is sit ip tunnel add tun6to4 mode sit ttl 254 remote 172.16.5.63 local 172.16.5.62 that implements a ipv6-over-ipv4 tunnel with SIT inerface (RFC 2893) but I am looking for ipv6-ipv6 and ipv4-in-ipv6 tunnels (RFC 2473). Thanks and Regards Pramendra Kalyani <[email protected]> 10/06/2005 03:48 PM Please respond to [email protected] To [email protected], [email protected] cc Subject (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 >______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________