Huazhong University of Science and Technology IPv6 settings, Linux

Source: Internet
Author: User
Huazhong University of Science and Technology IPv6 settings, Linux

Linux isatap Configuration

 

Note:

(1) take the local IPv4 address 10.0.0.1 as an example. The IPv4 address of isatap.hust.edu.cn is 218.199.111.9;

(2) view the kernel version command uname-

(3) check whether there is a sit or isatap in the mode in the IP Tunnel HELP command.

 

 

Method 1: Use the SIT Tunnel

 

(1) If the IPv6 module is not loaded, the IPv6 module is loaded.

Sudo modprobe IPv6

(2) establish a tunnel. The red is the isatap gateway provided by the school.

Sudo IP Tunnel add sit1 mode sit TTL 128 remote 218.199.111.9 local 10.0.01

(3) Start the device

/Sbin/ifconfig sit1 up

Sudo ifconfig sit1 up

(4) configure the IPv6 address of the Local Machine. Enter your IPv6 address in red.

Sudo ifconfig sit1 add 2001: 250: 4000: 8fff: 0: 5efe: 10.0.0.1

(5) Configure IPv6 routes. The red color indicates your default gateway.

Sudo route-A inet6 add 2000:/3 GW fe80: 5efe: 218.199.111.9 sit1

 

 

Method 2: After the linux-2.6.25 version, the isatap type tunnel is added to the kernel without the SIT type

 

Sudo IP Tunnel Add name is0 mode isatap local 10.0.0.1

Sudo IP link set is0 up

Sudo IP-6 ADDR add 2001: 250: 4000: 8fff: 0: 5efe: 10.0.0.1/64 Dev is0

Sudo route-A inet6 add 2000:/3 GW fe80: 5efe: 218.199.111.9 is0

 

 

Method 3: use independent software

 

If neither of the above methods is available, you can install isatapd and support automatic Address Configuration. You do not need to manually set the address and gateway. Take Ubuntu as an Example

 

Sudo apt-Get install isatapd

Sudo isatapd-r isatap.hust.edu.cn

 

 

Linux dual-stack Configuration

 

# Vi/etc/sysconfig/Network

Add a row

Networking_ipv6 = Yes

 

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Add two rows

Ipv6addr = Your IPv6 address (available automatically)

Ipv6_defaultgw = Your IPv6 Gateway (available automatically)

 

# Service network restart

 

Then ping6 6rank.edu.cn to check whether it is smooth, good luck!

Related Article

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.