IPV6 Tunnel Configuration

Source: Internet
Author: User

1. IPV6 basic configuration 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = ".. /attachment/201103/161315293 .jpg" border = "0" alt = ""/> Note: PC1 and PC2 are both XP dual-protocol stack systems, but the environment only uses the IPV6 address UTM1, UTM2 is a linux dual-protocol stack system with multiple NICs. In this environment, only IPV6 addresses are used.
The configuration of PC1 is as follows: Use the netsh tool in Xp) netsh interface ipv6> add address 5 2011: 2: 2 netsh interface ipv6> add route:/0 5 2011: 2:: 1PC2 configuration: netsh interface ipv6> add address 5 2011: 3: 2 netsh interface ipv6> add route:/0 5 2011: 3: 1UTM1 Configuration: [UTM-DX] $ ifconfig eth1 2011: 2: 1/64 up [UTM-DX] $ ifconfig eth0 2011: 1: 1/96 up [UTM-DX] $ route-A inet6 add default gw 2011: 1: 2 [UTM-DX] $ echo "1">/proc/sys/net/ipv6/conf/all/ Forwarding pay special attention to the last command to enable the IPV6 forwarding function. UTM2 configuration: [UTM-DX] $ ifconfig eth1 2011: 3: 1/64 up [UTM-DX] $ ifconfig eth0 2011: 1 :: 2/96 up [UTM-DX] $ route-A inet6 add default gw 2011: 1 :: 1 [UTM-DX] $ echo "1">/proc/sys/net/ipv6/conf/all/forwardingPC1 ping PC2 result: C: \ Documents ents and Settings \ Aben. zong> ping 2011: 3: 2
Pinging 2011: 3: 2 with 32 bytes of data:
Reply from 2011: 3: 2: time = 6 msReply from 2011: 3: 2: time = 1 msReply from 2011: 3: 2: time <1 msReply from 2011: 3: 2: time = 1 ms
Ping statistics for 2011: 3: 2: Packets: Sent = 4, stored ED = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: minimum = 0 ms, Maximum = 6 ms, Average = 2ms2. the IPV6 Tunnel Configuration now modifies the network environment above to allow the IPV6 service network to access the IPV6 service network through an IPV4 network, as shown in the following figure: 650) this. width = 650; "onclick = 'window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'src = ".. /attachment/201103/161841432 .jpg" border = "0" alt = ""/> the configurations of PC1 and PC2 are the same as those described above. The UTM1 configuration is as follows: [UTM-DX] $ ifconfig eth0 192.168.1.2 up [UTM-DX] $ route add default gw 192.168.1.1UTM2 configuration: [UTM-DX] $ ifconfig eth0 192.168.2.2 up [UTM-DX] $ route add default gw 192.168.2.1 at this time, the network condition is that PC1 and UTM1 are interconnected, PC2 and UTM2 are interconnected, and UTM1 and UTM2 are interconnected, but PC1 and pc2. The tunnel configuration for UTM1 is as follows: [UTM-DX] $ ip tunnel add sit1 mode sit ttl 64 local 192.168.1.2 remote 192.168.2.2 [UTM-DX] $ ifconfig sit1 up [UTM-DX] $ route-A inet6 add :: /0 dev sit1 [UTM-DX] $ echo "1">/proc/sys/net/ipv6/conf/all/forwarding pay special attention to the last command to enable IPV6 forwarding, the tunnel cannot be connected if it is not enabled.
The tunnel configuration for UTM2 is as follows: [UTM-DX] $ ip tunnel add sit1 mode sit ttl 64 local 192.168.2.2 remote 192.168.1.2 [UTM-DX] $ ifconfig sit1 up [UTM-DX] $ route-A inet6 add :: /0 dev sit1 [UTM-DX] $ echo "1">/proc/sys/net/ipv6/conf/all/forwarding pay special attention to the last command, the result of enabling the IPV6 forwarding function PC1 ping PC2 is as follows: C: \ Documents ents and Settings \ Aben. zong> ping 2011: 3: 2
Pinging 2011: 3: 2 with 32 bytes of data:
Reply from 2011: 3: 2: time = 1 msReply from 2011: 3: 2: time = 1 msReply from 2011: 3: 2: time = 1 msReply from 2011: 3: 2: time = 1 ms
Ping statistics for 2011: 3: 2: Packets: Sent = 4, stored ED = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: minimum = 1 ms, Maximum = 1 ms, Average = 1 ms
If you cannot get through, check the rules of ip6tables.

This article from the "domestic 0 and 1" blog, please be sure to retain this source http://qq164587043.blog.51cto.com/261469/509827

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.